13 long double a1,
char b1,
14 long double a2,
char b2,
15 long double a3,
char b3,
16 long double a4,
char b4)
18 return a1 + b1 + a2 + b2 + a3 + b3 + a4 + b4;
24 char trample2 = ((
char*)&a1)[0] + ((
char*)&a2)[0];
26 char trample4 = trample2 + ((
char*)&a1)[1];
28 char trample6 = trample4 + ((
char*)&a2)[1];
30 char trample8 = trample6 + trample2;
33 dummyVar =
dummy_func(trample1, trample2, trample3, trample4,
34 trample5, trample6, trample7, trample8);
38 printf(
"0x%08x 0x%08x: 0x%08x\n",
49 char trample2 = ((
char*)&a1)[0] + ((
char*)&a2)[0];
51 char trample4 = trample2 + ((
char*)&a1)[1];
53 char trample6 = trample4 + ((
char*)&a2)[1];
55 char trample8 = trample6 + trample2;
58 dummyVar =
dummy_func(trample1, trample2, trample3, trample4,
59 trample5, trample6, trample7, trample8);
63 printf(
"0x%08x 0x%08x: 0x%08x\n",
74 cls_pointer_gn(ffi_cif* cif
__UNUSED__,
void* resp,
77 void* a1 = *(
void**)(args[0]);
78 void* a2 = *(
void**)(args[1]);
81 char trample2 = ((
char*)&a1)[0] + ((
char*)&a2)[0];
83 char trample4 = trample2 + ((
char*)&a1)[1];
85 char trample6 = trample4 + ((
char*)&a2)[1];
87 char trample8 = trample6 + trample2;
89 dummyVar =
dummy_func(trample1, trample2, trample3, trample4,
90 trample5, trample6, trample7, trample8);
99 ffi_closure* pcl = ffi_closure_alloc(
sizeof(ffi_closure), &code);
102 ffi_type* arg_types[3];
109 void* arg1 = (
void*)0x01234567;
110 void* arg2 = (
void*)0x89abcdef;
113 arg_types[0] = &ffi_type_pointer;
114 arg_types[1] = &ffi_type_pointer;
118 arg_types) == FFI_OK);
127 printf(
"res: 0x%08x\n", (
unsigned int) res);
136 printf(
"res: 0x%08x\n", (
unsigned int) res);