Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2011 21:46:08 +0100
From:      Roman Divacky <rdivacky@freebsd.org>
To:        Yuri <yuri@rawbw.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD ABI?
Message-ID:  <20110221204608.GA29656@freebsd.org>
In-Reply-To: <4D62B0B7.1060604@rawbw.com>
References:  <4D62B0B7.1060604@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 21, 2011 at 10:36:39AM -0800, Yuri wrote:
> Where is it documented?
> Are there differences with the linux ABI?
> 
> Particularly I am interested in stack alignment requirement. For example 
> i386 Solaris, Linux and MacOS have 16 bit stack alignment for procedure 
> calls. This is reflected in LLVM sources:
> 
>   if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() || Is64Bit)
>     stackAlignment = 16;
> 
> 
> But FreeBSD is excluded there. Is this a bug in LLVM which magically 
> doesn't cause crashes or this is correct and FreeBSD doesn't have 16 bit 
> alignment?

the alignment is specified in bytes but yes, I wonder too, what is the
stack alignment on freebsd on amd64/i386? 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110221204608.GA29656>