armada wrote:
If a line code is 10 bytes(get the data from the .map file),I delete the
code.How do I let the address of all functions invariable?
For example,please see the original function:
Int16 Function1(char* buff)
{
MemSet(,,0); //if the size if 10 bytes
}
I delete the function,but I must let all address is invariable.
Int16 Function1(char* buff)
{
__asm("nop"); //its size is 4 bytes
}
How do I do?
It is not possible to guarantee the size or offset of compiled code, in
any compiler. If you must keep functions at the same offsets, you must
work at the assembly level. Because of optimizations, the effect of any
change is highly unpredictable.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/