gpt4 book ai didi

signal-processing - 高通 DSP : hexagon-sim with command line arguments

转载 作者:行者123 更新时间:2023-12-04 07:26:28 25 4
gpt4 key购买 nike

我正在使用以下工具在六边形模拟器上分析 c 代码:

Qualcomm/Hexagon_SDK/3.5.3/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-sim --timing --profile binary.hexagon
二进制文件是用六边形clang构建的:
Qualcomm/Hexagon_SDK/3.5.3/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-clang
但是,我无法在运行时将命令行参数传递给我的二进制文件
六边形-sim
有人知道怎么做吗?
我试过:
Qualcomm/Hexagon_SDK/3.5.3/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-sim --timing --profile binary.hexagon argument1 argument2
Qualcomm/Hexagon_SDK/3.5.3/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-sim --timing --profile binary.hexagon 'argument1 argument2'
Qualcomm/Hexagon_SDK/3.5.3/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-sim --timing --profile 'binary.hexagon argument1 argument2'
但这一切只是给出了错误:
More than one non-option on command line!
(binary.hexagon)
(argument1)
Cannot determine executable - aborting.

最佳答案

您应该使用 --为了那个原因。
像这样:

hexagon-sim --timing --profile binary.hexagon -- argument1 argument2
来自“Hexagon Simulator 用户指南”,Qualcomm 文档 80-N2040-17 P :

Running the simulator...Command switches are used to control varioussimulator options. A switch consists of one or two dash charactersfollowed by a switch name and optional parameter. Note that switchnames are case-sensitive. Switches must be separated by at least onespace. The command switch (--) when delimited by spaces on eitherside is used to separate the command arguments of the targetapplication from those of the simulator. For example:

hexagon-sim --rtos q.cfg a.out -- 10 // 10 is target app arg
hexagon-sim --rtos q.cfg -- a.out 10 // alternate form

关于signal-processing - 高通 DSP : hexagon-sim with command line arguments,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68194488/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com