[cfe-dev] ILP32, -arch i386 and x86_64 Apple systems

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Tue Dec 1 15:01:14 PST 2015

On Tue, Dec 01, 2015 at 01:36:03PM -0500, Jeffrey Walton via cfe-dev wrote:
> When the i386 code is run on an x86_64 system (i.e., "arch i386
> myprog.exe"), then we must interact with the stack using 64-bit values
> and registers. Its an ABI requirement.

Ignoring for a moment that there is a pretty much standard header
covering cpuid, the 64bit alignment of the stack is a non-issue. Like
the compiler, just push two registers and pop two registers.


More information about the cfe-dev mailing list