[LLVMdev] Structure alignment
Duncan Sands
baldrick at free.fr
Tue Jun 9 00:14:10 PDT 2009
Manoel Teixeira wrote:
> %FIRSTSTRU = type { i32, double, i32, i8* }
>
> struct {
> int var1;
> double var2;
> int var3;
> char *var4;
> }firstStru ;
>
> Could someone help?
> If, running a application in windows with MSVC, I allocate a memmory buffer and call a LLVM
> function with such buffer, there's a structure alignment problem.
> If the LLVM function call a C function using the same buffer, it runs fine.
> Any ideas?
I think it's best if you send the bitcode produced by llvm-gcc/clang.
Ciao,
Duncan.
More information about the llvm-dev
mailing list