Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!tmsoft!masnet!canremote!david.megginson From: david.megginson@canremote.uucp (DAVID MEGGINSON) Newsgroups: comp.lang.c Subject: Re: FUNCTION CALLS Message-ID: <90031700353846@masnet.uucp> Date: 17 Mar 90 01:45:00 GMT Organization: Canada Remote Systems Limited, Mississauga, ON, Canada Lines: 15 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@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