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 "ulpalmos.h"
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.
SQL Anywhere Studio 9.0.2
Copyright © 1989–2004 Sybase, Inc. Portions copyright © 2001–2004 iAnywhere Solutions, Inc. All rights reserved.