search for: phello

Displaying 6 results from an estimated 6 matches for "phello".

Did you mean: hello
2009 Nov 18
2
[LLVMdev] lli -force-interpreter complains about external function
...ting 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 in the interpreter? ii) how do I specify the dynamic library (where the external function is implemented), when I call the interpreter? Thanks Xu hellosin.c ======================= #include <stdio.h> #include <math.h&gt...
2009 Nov 18
0
[LLVMdev] lli -force-interpreter complains about external function
...Nick: The first problem have been solved by calling llvm-ld: $ llvm-ld -o hellosin.llvm hellosin.bc -lm $ lli -force-interpreter=true -load=/usr/lib/libm.so hellosin.llvm.bc hello sin: 0.50 The pthread problem remains after llvm-ld: $ lli -force-interpreter=true -load=/lib/libpthread.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 g...
2009 Nov 18
3
[LLVMdev] lli -force-interpreter complains about external function
...ant) and folded it away. The entire program became 'print constant string'. There is certainly a bug calling sinf() from the interpreter but I don't know what it is yet. > The pthread problem remains after llvm-ld: > > $ lli -force-interpreter=true -load=/lib/libpthread.so.0 phello.llvm.bc > 0 lli 0x08796bf8 > Segmentation fault I don't expect this to work at all. Unlike the JIT, I don't know of any work having been done to make the interpreter thread-safe. By the way, the interpreter can't support many more things, such as qsort() or any method which...
2009 Nov 18
0
[LLVMdev] lli -force-interpreter complains about external function
...he entire > program became 'print constant string'. There is certainly a bug calling > sinf() from the interpreter but I don't know what it is yet. > > > The pthread problem remains after llvm-ld: >> >> $ lli -force-interpreter=true -load=/lib/libpthread.so.0 phello.llvm.bc >> 0 lli 0x08796bf8 >> Segmentation fault >> > > I don't expect this to work at all. Unlike the JIT, I don't know of any > work having been done to make the interpreter thread-safe. > > By the way, the interpreter can't support many more things...
2009 Nov 17
0
[LLVMdev] lli -force-interpreter complains about external function
Timo Juhani Lindfors wrote: > Nick Lewycky<nicholas at mxc.ca> writes: >> The interpreter uses libffi to make external function calls. However, it >> needs to be detected at LLVM's compile time. If you're using the >> released packages, we disabled that because we were worried about users >> who don't have libffi installed. > > This seems to be
2009 Nov 16
3
[LLVMdev] lli -force-interpreter complains about external function
Nick Lewycky <nicholas at mxc.ca> writes: > The interpreter uses libffi to make external function calls. However, it > needs to be detected at LLVM's compile time. If you're using the > released packages, we disabled that because we were worried about users > who don't have libffi installed. This seems to be quite a common problem (I too hit it once, thought it