Displaying 1 result from an estimated 1 matches for "padtest".
Did you mean:
adtest
2010 Jul 13
2
[LLVMdev] different layout of structs for llc vs. llvm-gcc
...VM 2.7, Linux x86_64):
typedef struct {
unsigned txnal;
char padding[64];
unsigned nontxnal;
} Data;
Data data;
I thought that the layout of structs was supposed to be preserved (wrong
assumption?). Otherwise, any ideas why this happens?
Thanks,
Torvald
(1)
llvm-gcc -emit-llvm -c -o padtest.bc padtest.c; llvm-ld -link-as-library
padtest.bc -o padtest2.bc; llc padtest2.bc -o padtest.s; gcc padtest.s -
lpthread -o padtestllc
0000000000400640 <updater>:
400640: 89 3d 9a 04 20 00 mov %edi,0x20049a(%rip) #
600ae0 <data.0>
400646: 89 3d 98 04...