Displaying 4 results from an estimated 4 matches for "td7769793".
2010 Apr 05
3
[LLVMdev] Linking with C Library
...fputs
0000000000c43044 T puts
However, LLVM *still* gives me:
LLVM ERROR: Tried to execute an unknown external function: i32 (i8*)* puts
Something really wrong is happening. The following thread seems to indicate
that this should all work easily:
http://old.nabble.com/jit-with-external-functions-td7769793.html
--
View this message in context: http://old.nabble.com/Linking-with-C-Library-tp28133460p28145523.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Apr 06
0
[LLVMdev] Linking with C Library
...t;
> However, LLVM *still* gives me:
> LLVM ERROR: Tried to execute an unknown external function: i32 (i8*)* puts
>
> Something really wrong is happening. The following thread seems to indicate
> that this should all work easily:
> http://old.nabble.com/jit-with-external-functions-td7769793.html
>
Ok, you've passed my expertise. Maybe you have to link with -lc?
Hopefully one of the ocaml experts will chime in.
2010 Apr 05
0
[LLVMdev] Linking with C Library
On Sun, Apr 4, 2010 at 5:24 PM, Maxime Chevalier-Boisvert
<mcheva at cs.mcgill.ca> wrote:
> I tried running nm - D | grep "puts" on the binary compiled by the OCaml
> compiler. It outputs the following:
>
> 08161b00 T camlRuntime__rt_fputs_208
> 08161a20 T camlRuntime__rt_puts_198
> U fputs
>
> I'm assuming this means that fputs is linked
2010 Apr 05
2
[LLVMdev] Linking with C Library
I tried running nm - D | grep "puts" on the binary compiled by the OCaml
compiler. It outputs the following:
08161b00 T camlRuntime__rt_fputs_208
08161a20 T camlRuntime__rt_puts_198
U fputs
I'm assuming this means that fputs is linked dynamically, and puts is
not. I tried modifying my code to use fputs instead of puts instead, but
had no success, however, I still get: