UltraLite Embedded SQL User's Guide
Developing UltraLite Applications for the Palm Computing Platform
Building multi-segment applications
This section describes how to instruct the UltraLite Analyzer to generate multi-segment code using its default scheme. If you wish to customize the assignment of code to segments by explicitly assigning functions to segments, you can do so. For more information, see Explicitly assigning segments.
You enable generated code segments by defining macros.
To enable multi-segment code generation
Define a prefix file for your CodeWarrior project with the following contents:
#define UL_ENABLE_SEGMENTS #include "ulpalmXX.h"
where XX=30, 31, 35, or 40.
For more information, see UL_ENABLE_SEGMENTS macro.
When multi-segment code generation is enabled, the default behavior of the UltraLite Analyzer is as follows:
The generated schema code fits into a single segment and is assigned to a segment named ULSEGDB.
For the C++ API, the generated statement code is assigned to a segment named ULSEGDEF.
For embedded SQL, the generated statement code is assigned to a segment with a generated name based on the .sqc file. All the code for a single .sqc file goes into a single segment.