armcc基本命令 试一试

拜拜、爱过 提交于 2020-08-14 15:10:28

(1)还有.S文件怎么编译?

armasm --cpu Cortex-M3 -g --apcs=interwork startup.s -o startup.o

(2)关于sct文件?

armlink --cpu Cortex-M3 *.o --strict --scatter "demo.sct" -o demo.axf

另外经测试.O也能变成.HEX,如下:

$ fromelf --i32 --output xxx.hex main.o
 

于是:

如果 armlink的时候输入:

armlink --cpu Cortex-M3 *.o --strict --scatter "demo.sct" --summary_stderr --info summarysizes --map -                               -xref --callgraph --symbols --info sizes --info totals --info unused --info veneers --list ".\demo.map"            

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!