Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 STM8 应用程序的代码中有一行
extern void __iar_program_start(void);
现在我已经搜索过了,这个功能无处可寻。这是什么,在哪里??
谢谢
cstartup_M.o 在作为 IAR 工具安装的一部分的库内调用的模块中找到它。
cstartup_M.o
在我的情况下,该库被称为rt7M_tl.a,但它可能取决于您的目标 CPU。
rt7M_tl.a
这些函数可能会为 C 版本的代码生成,导致您可以在汇编中找到此类指令。
__iar_program_start: LDW X, #CSTACK$$Limit-1 ; Set stackpointer LDW SP, X