Next: 4.5.6 Header Files
Up: 4.5 The PIC16 port
Previous: 4.5.4 Directories
Contents
Index
PIC16 port currently supports the following pragmas:
- [stack]pragma stack forces the code generator to initialize the stack
& frame pointers at a specific address. This is an adhoc solution
since gplink does not support yet stack. When the gplink issue is
resolved the pragma will be deprecated4.1.
The stack pragma should be used only once in a project. Multiple pragmas
may result in indeterminate behaviour of the program.
If you omit setting the pragma the port emits a warning message before
linking. If not initializing the stack is desired ignore the message.
-
- Example:
/* initializes stack at RAM address 0x5ff*/
#pragma stack 0x5ff
Bernhard Held
2004-02-21