start up code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,926件の閲覧回数
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,170件の閲覧回数
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,171件の閲覧回数
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,171件の閲覧回数
Vijays
Contributor I
Thanks for your reply stanish.
0 件の賞賛
返信