Re: [AD] More AMD64 stuff |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On the i386, the normal convention is to pass arguments on the stack and set up a stackframe to read them in (but I think you can also specify that you want to use registers). On the AMD64, at least when interfacing with a higher level language, the convention seems to be that the arguments themselves are passed in registers: %rdi (the 64 bit version of the %edi register) holds the first argument, %rsi holds the second argument, etc.
oh yeah, now i remember reading a bit about that, coz the amd64 has so many more registers, is that what a __fastcall does?
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |