This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: modified x86 ABI
- From: Andi Kleen <andi at firstfloor dot org>
- To: Mark Shinwell <shinwell at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 23 Oct 2007 12:17:21 +0200
- Subject: Re: modified x86 ABI
- References: <5787cf470710230107m38d910cal42a140897d65d6f1@mail.gmail.com.suse.lists.egcs-patches> <471DBD9B.2020600@codesourcery.com.suse.lists.egcs-patches> <hoir4ytbh6.fsf@reger.suse.de.suse.lists.egcs-patches> <471DC5E9.6060908@codesourcery.com.suse.lists.egcs-patches>
Mark Shinwell <shinwell@codesourcery.com> writes:
> - 64-bit arguments are aligned on 64-bit boundaries -- which may mean
> that padding is inserted beneath them (for example if there is a
> 32-bit argument aligned to a 64-bit boundary beneath the 64-bit
> argument). No more padding than is required is inserted.
If you want to make it usable for Linux kernel based system you would
need to change alignof(long long) to 4 matching i386.
Otherwise you cannot use the existing 32bit emulation layer and would
need a new one (this is much more than just a standard C library; it
also covers all ioctls and all system calls)
Same is likely true for the BSDs and Solaris at least.
-Andi