UltraLite Static C++ User's Guide
Developing UltraLite Applications for the Palm Computing Platform
Building multi-segment applications
Assigning user-defined code to segments is a standard part of programming applications for the Palm Computing Platform. This section is intended as a reminder for Palm programmers.
To assign user-defined code to segments (CodeWarrior)
Add the following line at various places in your .sqc file or .cpp file:
#pragma segment segment-name
where segment-name is a unique name for the segment This forces code after each #pragma
line to be in a separate segment.
You must ensure that PilotMain and all functions called in PilotMain are in the first segment.
If necessary, you can add a line of the following form before your startup code:
#pragma segment segment-name
where segment-name is the name of your first segment.
For more information on prefix files and segments, see your Palm developer documentation.