>>> "Daniel" == Daniel Morais <[EMAIL PROTECTED]> writes:

[...]

 Daniel> 1) I would like to know which registers are assumed to
 Daniel> be modified between function calls and which in fact
 Daniel> did not need to be saved.  By looking at the generated
 Daniel> code, it seems than D0, D1 and D2 does not need to be
 Daniel> saved if we use them in some inline ASM code.

%a0, %a1, %d0, %d1, %d2 are not assumed to be preserved accross
function calls.  In others words, you need to restore any
*other* register used in your function before you exit it.  The
file where you can found this infornation is
gcc-2.95.2/gcc/config/m68k/m68kpalmos.h in your gcc source tree.
(See gcc's Texinfo manual for the details of each definition).

[...]

-- 
Alexandre Duret-Lutz

-- 
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