At 00:01 2002-11-14 -0500, you wrote:
OK Ben.  Thank you for the information.  That white paper came in handy;
although, I do have another question as a result of reading it.

I turned on the "PC-Relative Constant Data" switch in the settings panel and
made certain that all of my globals that I was concerned about were declared
as const and I even got rid of the pointers inside of these const structs
just as the white paper informed.  Well, the number on the data side went
down to 0, so I thought it had worked.  Well, upon rebuilding the project, I
get the following warnings (which sound serious):

"Segment 'Data Segment 2' is greater than 64K, it will generate an invalid
PRC file."
AND
"PalmRez Warning: Output resource size is greater than ~64K size limit:
'code 3'"
This doesn't have anything to do with data, this has to do with code size. You actually named your second segment "Data Segment 2" -- you can rename it by double clicking on its name in the Segments view. That's misleading you.

To get a real feel for the size, you need to look at the MAP file. In the 68K Linker panel, theres a checkbox to output a MAP file. Turn that on, then look at the MAP file, and you'll see how functions and data got allocated to your code segment.

See http://www.hhcenterprise.com/Developer/Issue2/Secret_World_PalmOS.htm for some discussion of how Palm OS apps startup and how the code and data segments come together.

Like I mentioned in the previous email, I split my project into 5 segments.
"Data Segment 2" used have 29K of data and 0K of code.  Now, after the
PC-Relative Constant Data switch, both the code and data are listed as 0K.
The funny thing is that it is not complaining about Data Segment 1, which is
basically the same as Data Segment 2 - it just has fewer files.
Code shouldn't be listed as 0K -- this seems really suspect, and I'd want you to check the MAP file to really see what's happening.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


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

Reply via email to