start up code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

start up code

Jump to solution
3,012 Views
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
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,256 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,257 Views
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 Kudos
Reply
1,257 Views
Vijays
Contributor I
Thanks for your reply stanish.
0 Kudos
Reply