start08.c

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

start08.c

Jump to solution
1,445 Views
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!
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
557 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
558 Views
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 Kudos
Reply