This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AMD64 ABI compatibility
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Kai Tietz <Kai dot Tietz at onevision dot com>
- Cc: Jan Hubicka <jh at suse dot cz>, Dave Korn <dave dot korn at artimi dot com>, gcc at gcc dot gnu dot org, Jan Hubicka <hubicka at ucw dot cz>, 'Nicolas Alt' <nalt at apple dot com>
- Date: Tue, 10 Jul 2007 17:03:25 +0200
- Subject: Re: AMD64 ABI compatibility
- References: <OF1CFA2F6C.EB7A7340-ONC1257314.0047A88C-C1257314.0047B670@onevision.de>
> >
> > For MS I would probably suggest ms_abi (it makes it cleaner that the
> > attribute is affecting calling convetion). For our abi I am not sure, we
> > can sysv_abi or something else...
>
> I will prepare an patch for it. For me "ms_abi" and "sysv_abi" is fine.
I would say that it is in general very desirable feature for wine
programmers and similar projects (I would preffer to have
confirmation that they are going to need it however ;).
The implementation will be moderately tricky - you will need to keep
track of functions calling foreign functions and adjust behaviour of
ix86_function_arg_regno_p and friends accordingly.
Also the set of call clobbered registers differs. Since MS ABI has fewer
of them, calling from SYSV ABI is OK, but in the other direction I guess
the call pattern will need to have variants with clobbers of SI/DI.
But if you are interested to implement it, you are definitly welcome ;)
Honza
>
> Cheers,
> i.A. Kai Tietz
>
> | (\_/) This is Bunny. Copy and paste Bunny
> | (='.'=) into your signature to help him gain
> | (")_(") world domination.
>
> ------------------------------------------------------------------------------------------
> OneVision Software Entwicklungs GmbH & Co. KG
> Dr.-Leo-Ritter-Straße 9 - 93049 Regensburg
> Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
> Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
> Handelsregister: HRA 6744, Amtsgericht Regensburg
> Komplementärin: OneVision Software Entwicklungs Verwaltungs GmbH
> Dr.-Leo-Ritter-Straße 9 ??? 93049 Regensburg
> Handelsregister: HRB 8932, Amtsgericht Regensburg - Geschäftsführer:
> Ulrike Döhler, Manuela Kluger
>