-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 19 December 2001 3:47 AM
To: Palm Developer Forum
Subject: Re: Reference to function address

If MyFunc is in a different segment, the address is retrieved from the
global jumptable, again using a constant offset, but now from the global
register (usually A5).  The jumptable is structured as a series of JMP
instructions, but the opcode can be skipped to get the actual address.

You can get a relative value after compilation by looking at the linker
map file, but that will only tell you how far into a segment the
function is.  You can't determine the true location until runtime,
because when your application isn't running, its segments are unlocked
and may move around memory.



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

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

Reply via email to