[LLVMdev] Problems with custom calling convention on Mac OS X
davidterei at gmail.com
Fri Feb 12 20:22:12 PST 2010
On 12 February 2010 14:01, Charles Davis <cdavis at mymail.mines.edu> wrote:
> Something I'm doing right now may be of interest to you.
> Just today I added support for a new 'alignstack' function attribute.
> With it, you can force the stack to be 16-byte aligned (or n-byte
> aligned, if you so desire) in your functions. This way, you can make
> calls to dylibs on Mac OS X without triggering the misaligned stack error.
> Of course, it's a no-op right now (I still have to do the backend work).
> But if you add this attribute to the emitted LLVM functions, when I do
> finish this, the stack will be properly aligned and you won't get this
> error anymore. It will cost you, though, in terms of code size and
Sounds great. I'd appreciate if you would ping me or the list when
this lands. Do you think it will make the 2.7 release?
I was hoping to fix this up now though and solve the actual issue are
you or anyone else aware of how to do this?
More information about the llvm-dev