Hello,
I'm developing a project for Palm OS using package called prc tools (I think it is gcc based coz its compiler commands look like m68k-palmos-gcc, m68k-palmos-gdb etc). I'm using IDE Palm OS Developer Suite (Eclipse).

Problem: Palm OS applications cannot have any segment larger than 64-kb. Also, only code written in main segment (1st segment) will be available in background mode. So, how do I manage (instruct the compiler, linker etc) about what code I want in which segment. Or does prc-tools (gcc) handle it implicitly?

I tried on Palm forums... but everybody seems to be using Codewarrior, which gives a direct interface to manage segments. Didn't receive any help for gcc based tools. Don't want to do it in Codewarrior.

Hope I've expressed my problem clearly enough.