mspgcc: A port of the GNU tools to the Texas Instruments MSP430 microcontrollers | ||
---|---|---|
<<< Previous | MSP430 specific extensions to the GNU toolchain | Next >>> |
From the example above you can see, that main jumps to "__stop_progExec__", which can be redefined the same way in the user code. However, it is possible to save some space, by specifying the return point as "main()". If you compile with
you will get
$ msp430-gcc -mendup-at=main ...
and "__stop_progExec__" will not be linked....
0000fc08 <main>:
fc08: 31 40 80 02 mov #640, SP ; #0x0280
fc0c: 30 40 10 fc br #0xfc08
...
<<< Previous | Home | Next >>> |
Redefining the startup procedure | Up | Initializing the stack |