Displaying 1 result from an estimated 1 matches for "my_add1".
Did you mean:
my_addr
2010 Jan 18
1
[LLVMdev] JIT on ARM
...n: main: 40 bytes of text, 1 relocations
JIT: Binary code:
JIT: 00000000: e92d4800 e24dd008 e3a00014 e58d0004
JIT: 00000010: e28d0004 eb5047f7 e59d0004 e280000a
JIT: 00000020: e28dd008 e8bd8800
****
Just to be sure I inform LLVM about add1 function with following code:
extern "C" void my_add1(int* x)
{
LOG("in add1, x=%i\n", *x);
*x = *x + 1;
}
sys::DynamicLibrary::AddSymbol("add1", (void*)&my_add1);
Is there something wrong with generated code? Same code, using same test program, runs fine using JIT on x86 under Windows.
I have successfuly run program...