[LLVMdev] Stack alignment in JIT compiled code
Anton Korobeynikov
anton at korobeynikov.info
Fri May 1 07:43:35 PDT 2009
Hello, Corrado
> The end of the input argument area shall be aligned on a 16 byte boundary.
> In other words, the value (%rsp - 8) is always a multiple of 16 when control is
> transferred to the function entry point. The stack pointer, %rsp,
> always points to
> the end of the latest allocated stack frame.
That's correct. x86-64/linux has stack alignment specified as 16 in
ABI. That's why no stack realignment is needed at all. As was already
mentioned - without extra information about particular subtarget it's
hard to say something definite here.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list