[LLVMdev] How does JIT/lli work with bc file?

Heming Cui heming at cs.columbia.edu
Thu Dec 31 21:03:40 PST 2009

Hi Eli,
    I think the llvm configure has already configured with ffi.

../llvm-2.6/configure -help | grep ffi
  --enable-libffi         Check for the presence of libffi (default is YES)

    In addition, the printf() can work in program, reflecting that libffi is
working, right?
    How can I make Interpreter work with getpid(), fork(), and clone()?

On Thu, Dec 31, 2009 at 2:33 AM, Eli Friedman <eli.friedman at gmail.com>wrote:

> On Thu, Dec 31, 2009 at 2:26 AM, Heming Cui <heming at cs.columbia.edu>
> wrote:
> > Hi Eli,
> >     Thanks for your reply. If I add -force-interpreter to lli, then it
> seems
> > that it can not run external function like printf or malloc. Is there any
> > easy way to solve this problem?
> Does the LLVM configure find libffi?
> -Eli

Heming Cui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091231/0e149b81/attachment.html>

More information about the llvm-dev mailing list