[LLVMdev] Vector troubles

Evan Cheng evan.cheng at apple.com
Fri Sep 28 22:54:26 PDT 2007


What is gcc's caller stack alignment assumption on Linux? Unless it's  
16 byte or more, the callee will have to dynamically align the stack.

Evan

On Sep 28, 2007, at 5:49 PM, Daniel Berlin <dberlin at dberlin.org> wrote:

> On 9/28/07, Anton Korobeynikov <asl at math.spbu.ru> wrote:
>> Chuck,
>>
>>> It is dying trying to store a our working vector into one of the  
>>> LLVM
>>> vectors created on the stack.  Despite the align-16 directive on the
>>> alloca instruction, it is not always aligning to a 16-byte boundary.
>> The stack is not necessary 16 bytes aligned on linux/windows.
>
> On recent versions of linux (anything in the past 2 years), the stack
> will be aligned by gcc, the kernel, and glibc, in all the right
> functions.
>
> So unless you misalign it, ...
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list