jhc vs ghc and the surprising result involving ghc generated
assembly.
skaller
skaller at users.sourceforge.net
Thu Oct 27 04:39:13 EDT 2005
On Wed, 2005-10-26 at 12:24 -0400, Jan-Willem Maessen wrote:
> Does x86-64 use a register-based calling convention by default?
Yes. And the algorithm is NASTY :)
See 3.2.3 of 'AMD64 ABI Draft 0.96 June 14 2005'
(which can be downloaded from somewhere on the AMD website).
For integers, rdi, rsi,rdx,rcx,r8,r9 are used (in that order),
for floats, xmm0-xmm7
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
More information about the Glasgow-haskell-users
mailing list