At 10:17 PM 1/12/2006, you wrote:
Yes I'm using CodeWarrior for Palm os, and PC-relative strings is
turned on, as well as PC-Relative-Constant Data.
The map file shows that the function length is 12 bytes which I know
isn't large enough to hold the data, so I don't think it's working
the way you think it is.
The assembler for the code is
0004B7A6: 4E560000 link a6,#0
0004B7AA: 41EDBEE4 lea -16668(a5),a0
0004B7AE: 4E5E unlk a6
0004B7B0: 4E75 rts
BTW this is a multi segment program, if that makes a difference.
Yes, it's definitely pulling the string from the global data segment
instead of from code. Can you provide the actual source code you
compiled here? I know literal strings will be stuck in the data
segment in some cases, like being used in an inline function.
-- Ben Combee, Senior Software Engineer, Palm, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/