TI中文支持网
TI专业的中文技术问题搜集分享网站

请教一个关于PRU编译器的问题

请问PRU的编译器有支持COFF格式输出的吗?有的话,是哪个版本呢?谢谢!

Shine:

没有,只有elf格式输出。

user4755476:

回复 Shine:

这样子的话,如果我把PRU工程输出的.out格式的可执行文件转换成一个.obj文件,那么这个ELF格式的.obj文件,能够和我的COFF格式的.out文件相链接吗?

我是参考技术文档的以下说明做的:

12.3 Linking with an ARM ExecutableThe hexpru tool can be used to convert a PRU executable into an ARM object file that can be linked inwith an ARM project. The PRU code and data are converted to ARM data. The ARM application canreference symbols in the PRU file. This is useful for bare metal projects that are not running a high leveloperating system like Linux.The files for this example are provided in the PRU compiler's "example" directory. The resultingexecutable exposes the shared_buf and local_data symbols.clpru -o3 test.c -z AM3359_PRU.cmd -o pru.outTo convert the executable to an ARM object file, use the PRU_to_ARM.cmd file as follows:hexpru pru.out -o pru.obj PRU_to_ARM.cmdThe resulting pru.obj file can be linked with the dummy ARM application as follows:armcl arm.c pru0.obj -z dummy_ARM.cmd -o arm.out

赞(0)
未经允许不得转载:TI中文支持网 » 请教一个关于PRU编译器的问题
分享到: 更多 (0)