FUNCTION CALLS
DAVID MEGGINSON
david.megginson at canremote.uucp
Sat Mar 17 11:45:00 AEST 1990
Turbo C on the Atari ST (M68000) passes the first three numeric
arguments in D0, D1 and D2, and the first two address arguments in A0
and A1. You can override this with the cdecl keyword. All floats and
doubles get passed on the stack. You can buy a lot of speed this way,
with a reasonably intelligent compiler. The moral: worry about logic and
readability, and let your compiler do the optimizing.
David Megginson, Centre for Medieval Studies
BITNET: meggin at vm.epas.utoronto.ca
PS. I know this is stupid, but in case anyone doesn't understand, D0-D7
are the 32 bit data registers in a 68k chip, and A0-A7 are the address
registers, also 32 bit. (A7 is the stack pointer).
---
* Via ProDoor 3.1R
More information about the Comp.lang.c
mailing list