search for: yangx2000

Displaying 5 results from an estimated 5 matches for "yangx2000".

2009 Nov 18
3
[LLVMdev] lli -force-interpreter complains about external function
...working JIT. Nick > For those who are getting "invalid ELF header" error when calling > llvm-ld with -lpthread, > please change the load module from /usr/lib/pthread.a to > /lib/libpthread.so.0. > > Thanks > Xu > > On Wed, Nov 18, 2009 at 12:02 AM, Xu Yang <yangx2000 at gmail.com > <mailto:yangx2000 at gmail.com>> wrote: > > Hi Nick: > > Thanks for pointing me to libffi. > Recompile LLVM with libffi does solve the problem of printf. > But it still has other problems: > 1) sinf() returns 0 in the interpreter,...
2009 Nov 18
0
[LLVMdev] lli -force-interpreter complains about external function
...se who are getting "invalid ELF header" error when calling >> llvm-ld with -lpthread, >> please change the load module from /usr/lib/pthread.a to >> /lib/libpthread.so.0. >> >> Thanks >> Xu >> >> On Wed, Nov 18, 2009 at 12:02 AM, Xu Yang <yangx2000 at gmail.com >> <mailto:yangx2000 at gmail.com>> wrote: >> >> Hi Nick: >> >> Thanks for pointing me to libffi. >> Recompile LLVM with libffi does solve the problem of printf. >> But it still has other problems: >> 1) sinf() ret...
2009 Nov 18
0
[LLVMdev] lli -force-interpreter complains about external function
...ad.so.0 phello.llvm.bc 0 lli 0x08796bf8 Segmentation fault For those who are getting "invalid ELF header" error when calling llvm-ld with -lpthread, please change the load module from /usr/lib/pthread.a to /lib/libpthread.so.0. Thanks Xu On Wed, Nov 18, 2009 at 12:02 AM, Xu Yang <yangx2000 at gmail.com> wrote: > Hi Nick: > > Thanks for pointing me to libffi. > Recompile LLVM with libffi does solve the problem of printf. > But it still has other problems: > 1) sinf() returns 0 in the interpreter, but returns correct value in JIT > (see hellosin.c) > 2) call...
2009 Nov 18
2
[LLVMdev] lli -force-interpreter complains about external function
Hi Nick: Thanks for pointing me to libffi. Recompile LLVM with libffi does solve the problem of printf. But it still has other problems: 1) sinf() returns 0 in the interpreter, but returns correct value in JIT (see hellosin.c) 2) calling pthread_create cause lli to crash in the interpreter mode, but no problem in JIT (see phello.c). My questions are: i) can I call any arbitrary external function
2009 Nov 16
2
[LLVMdev] lli -force-interpreter complains about external function
Hi: When I try to execute lli -force-interpreter=true hello.bc, it gave the following error: LLVM ERROR: Tried to execute an unknown external function: i32 (i8*)* puts I think the error is because C library is not being linked with the byte code, but I was not able to find any helpful instruction in lli's document. Can you please teach me how to do it? Thanks Xu The hello.bc is