search for: xfirststru

Displaying 2 results from an estimated 2 matches for "xfirststru".

Did you mean: firststru
2009 Jun 04
1
[LLVMdev] Structure Alignment
struct xfirstStru { int var1; double var2; int var3; char *var4; }; %FIRSTSTRU_PLUSPLUS_TOTVS. = type { i32, double, i32, i8* } Hi, I had not applied the layout at run time, only during the emission of the .bc. Now it's running ok when I allocate the...
2009 Jun 04
0
[LLVMdev] Structure Alignment
...l call should use the #pragma directive. If I change the llvm layout f64:64:64, the LLVM calls C functions and the struct is OK, in the C side, but the getelemntptr fails in LLVM side. Is there on way to ensure that the LLVM reads the correct memory position in this case? //#pragma pack(4) struct xfirstStru { int var1; double var2; int var3; char *var4; }; typedef struct xfirstStru osX ; typedef struct xfirstStru* PosX ; //#pragma pack() // extern "C" int testOSX( PosX osx ) { printf("\nChamada C %d %f %d %s",++o...