Posted on 2004-06-20 22:30:36 by Mecurius
hmm, interesting read.
i hope AMD64 will become the standard, ia64 is so unconventional.
Posted on 2004-06-21 11:43:52 by Drocon
I use the "Rickey calling convention": basically, use flags, registers, and stack as needed for the function.

Instead of doing:

invoke Func1, val1, val2, etc...
push eax ; result

...every time Func1 is used, I'll have Func1 put the return value on the stack instead of in EAX. It is hairy to work around, but I find that kind of stuff real fun. :)
Posted on 2004-06-21 19:44:44 by bitRAKE
Why would a processor define its own calling convention? has nothing to do with it
Posted on 2004-06-21 20:17:32 by comrade

Why would a processor define its own calling convention? has nothing to do with it


Perhaps the chip company defines the calling convention as the "most optimal" for their hardware and the software makers go along with it.
Posted on 2004-06-22 16:07:55 by Mecurius
The calling conventions mentioned are used in the HLLs mentioned in Windows. The blog deals with Windows programming.
Posted on 2004-06-22 16:25:17 by death