I don't use PODS, so anything I tell you about my setup may not apply.

In general, you would declare segment names in your header files, and assign the individual functions to those segments. Any function not assigned to a segment is left in the Code0 segment. My makefile uses the "multigen" command to create the multiple segments, and I have a "projectname.def" file to declare all of the segment names, and pass them to the build command.

I always imagined that PODS would have a simple way of bringing all this together, but I'm not sure. I've been meaning to give PODS a look, but just haven't gotten around to it yet. Soon, perhaps.

Bob.

Kamal wrote

Please suggest how to write multiple segment code an how to compile it.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Moynihan
Sent: Wednesday, December 01, 2004 7:39 PM
To: Palm Developer Forum
Subject: Re: Compile Errors

From a practical standpoint, your code sections are really limited to 32k, because the addressing within each section is done with an Int16 reference, which allows +/- 32k. There are techniques to allow you to use the full 64k, but it seems to be generally easier to break the project up into multiple segments, each less than 32k. Bob.

Kamal Sharma wrote:



I am using Palm OS Developer Suite for making Palm Application.
The compiler is giving the following error:-
"/usr/m68k-palmos/bin/ld region coderes is full (Debug/GameP section
.text)"

Here GameP is name of the project.
Probably this is the linker error. It might be possible that code size
has increased too much. Though my .PRC is 46KB and compiler supports
68K.
Please help me out if there is any modification that is to be made in
compiler or makefile
Settings.

Or how to optimize the code.

Please suggest its urgent.

Kamal














--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to