|
|||||||||||
|
Technical Support On-Line Manuals Libraries and Floating Point Support Guide |
Libraries and Floating Point Support GuideCreating an initial stack pointer for use with microlib
To use microlib, you must specify an initial pointer for the stack. You can use either of the following methods to do this:
The scatter file method uses Otherwise, specify the initial stack pointer by defining a
symbol, Example 15 shows how to set up the initial stack pointer using assembly language. Example 15. Assembly language EXPORT __initial_sp __initial_sp EQU 0x100000 ; equal to the top of the stack Example 16 shows how to set up the initial stack pointer using embedded assembler in C. Example 16. Embedded Assembler in C
__asm void dummy_function(void)
{
EXPORT __initial_sp
__initial_sp EQU 0x100000 ; equal to the top of the stack
}
| ||||||||||
|
|||||||||||