Collection Contents Previous Next PDF

UltraLite C/C++ User's Guide

Developing UltraLite Applications for the Palm Computing Platform

Building multi-segment applications

Enabling multi-segment code generation


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

  1. 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.

Notes 

When multi-segment code generation is enabled, the default behavior of the UltraLite Analyzer is as follows:


Collection Contents Previous Next PDF