start08.c

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

start08.c

跳至解决方案
1,853 次查看
admin
Specialist II
Hello,
Can anyone explain the purpose of the file start08.c in Code Warrior? and why is it that when I debug my code  the source window uses the start08.c instead of my program?

Thanks!
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
965 次查看
CompilerGuru
NXP Employee
NXP Employee
The purpose of start08.c is to initialize the stack pointer, all global variables and once this is done, to call main.
So the reset vector points to _Startup in start08.c and once all those things did happen, main, say your code, gets started. One of the questions when creating a new project is also to skip most of the code in start08.c (the variable initialization).

Daniel

在原帖中查看解决方案

0 项奖励
回复
1 回复
966 次查看
CompilerGuru
NXP Employee
NXP Employee
The purpose of start08.c is to initialize the stack pointer, all global variables and once this is done, to call main.
So the reset vector points to _Startup in start08.c and once all those things did happen, main, say your code, gets started. One of the questions when creating a new project is also to skip most of the code in start08.c (the variable initialization).

Daniel
0 项奖励
回复