UltraLite Static C++ User's Guide
Developing UltraLite Applications for the Palm Computing Platform
Application code for the Palm Computing Platform must be divided into segments. For CodeWarrior, these segments are at most 64 kb in size. This section describes how to manage the assignment of code into segments.
UltraLite applications include the following types of code:
User-defined code Application code, including the .cpp file generated by the SQL Preprocessor.
Generated code for SQL statements Code generated by the UltraLite Analyzer to execute SQL statements.
Generated code for the database schema Code generated by the UltraLite Analyzer to represent the database tables.
Runtime library The UltraLite runtime library is compiled as multi-segment code. Segment names of the form ULRTn and ULRTnn are reserved for the UltraLite runtime libraries.
Building multi-segment applications is a general feature of application development for the Palm Computing Platform, whether or not you are using UltraLite. Some familiarity with building multi-segment applications using your development tool is assumed. User-defined code is no different to other standard Palm applications. For a reminder about assigning user-defined code to segments, see Assigning user-defined code to segments.
You can partition generated code into segments in the following ways:
Enable multi-segment code generation, but let the UltraLite Analyzer assign segments in a default manner.
For more information, see Enabling multi-segment code generation.
Enable multi-segment code-generation and explicitly assign segments yourself.
For more information, see Explicitly assigning segments.
Enabling multi-segment code generation
Explicitly assigning segments
Assigning user-defined code to segments