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

标签 signal-processing qualcomm hexagonal-architecture hexagon-dsp

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

Qualcomm/Hexagon_SDK/3.5.3/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-sim --timing --profile binary.hexagon

二进制文件是使用 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 various simulator options. A switch consists of one or two dash characters followed by a switch name and optional parameter. Note that switch names are case-sensitive. Switches must be separated by at least one space. The command switch (--) when delimited by spaces on either side is used to separate the command arguments of the target application 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/

相关文章:

matlab - 基本矩阵错误?

exception-handling - 我的域异常应该从应用层抛出吗?

java - 使用加速度计进行运动跟踪的算法建议

android - 如何将设备驱动程序集成到 MIPI-LVDS 桥的 MDSS (MIPI-DSI) 子系统中?

c - Hexagon 编译器遇到 `typedef struct mystruct *mystruct` 问题

augmented-reality - 如何在定制的 Snapdragon 板上运行 ARcore?

domain-driven-design - DDD 存储库可以是有状态的吗?

interface - 六边形体系结构和交易概念

c++ - 捕获自定义 UART 类信号

R dplyr 链基团 by into 函数