start up code

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

start up code

跳至解决方案
2,921 次查看
Vijays
Contributor I
hello
     I'm beginning freescale with flexis mc9s08qe128.i want to know what the start-up code contains in code warrior.do i have to set anything in that or code warrior generate itself. please reply with good answer for the beginner and what i have to know about the code warrior

Thanks in advance
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,165 次查看
stanish
NXP Employee
NXP Employee
Hi Vijay s,

The default C project startup code is mainly responsible for :

* Stack Pointer initialization
* zero out RAM areas where data is allocated
* copy initialization data from ROM to RAM (e.g. Initialization of global and static variables)
* jump to the main() function

CodeWarrior generates entire project including startup code, selected MCU's header files, ANSI C library,... if you create new project by default.

There is the options "minimal startup code" vs. "ANSI startup code"  available that influence startup code when new C project is created. The "ANSI startup code" is the default option and causes that all the actions above are executed during startup whereas "minimal startup code" initializes just Stack Pointer and calls main().

Stanish

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,166 次查看
stanish
NXP Employee
NXP Employee
Hi Vijay s,

The default C project startup code is mainly responsible for :

* Stack Pointer initialization
* zero out RAM areas where data is allocated
* copy initialization data from ROM to RAM (e.g. Initialization of global and static variables)
* jump to the main() function

CodeWarrior generates entire project including startup code, selected MCU's header files, ANSI C library,... if you create new project by default.

There is the options "minimal startup code" vs. "ANSI startup code"  available that influence startup code when new C project is created. The "ANSI startup code" is the default option and causes that all the actions above are executed during startup whereas "minimal startup code" initializes just Stack Pointer and calls main().

Stanish
0 项奖励
回复
1,166 次查看
Vijays
Contributor I
Thanks for your reply stanish.
0 项奖励
回复