This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: AMD64 ABI compatibility
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Nicolas Alt'" <nalt at apple dot com>, <gcc at gcc dot gnu dot org>
- Date: Mon, 9 Jul 2007 20:58:24 +0100
- Subject: RE: AMD64 ABI compatibility
- References: <C1EA6B18-05DB-4FF4-B137-B8806410EA37@apple.com>
On 09 July 2007 20:48, Nicolas Alt wrote:
> Hi!
>
> On the AMD64 / x86-64Bit architecture, some arguments of a functions
> are passed using registers, but there seem to be two different
> conventions out there. The standard ABI uses 6 registers, but
> Microsoft compilers use only 4. Because of that, code compiled with
> gcc cannot call code compiled with a MS compiler without an ugly
> wrapper.
>
> Have there been any efforts to make gcc do function calls the MS way?
> I guess this would be an important feature for mingw on AMD64.
Does -mregparm=4 do what you want?
cheers,
DaveK
--
Can't think of a witty .sigline today....