palm-os68000garnet-oscodewarrior

How can I segment my Palm OS 68K application?


If you have an 68K application written using CodeWarrior for Palm OS, how do you assign individual functions to different segments without manually moving files around in the segment tab in the IDE?


Solution

  • I use #pragma segment. Much easier than CodeWarrior's segment tab.

    #pragma segment Foo
    some code
    
    #pragma segment Bar
    some code
    

    Now your code gets put in two different segments automagically.