[LLVMdev] fast way to have jit produce executables

Eli Friedman eli.friedman at gmail.com
Wed Jul 28 16:07:20 PDT 2010


On Wed, Jul 28, 2010 at 3:44 PM, Bill O'Hara <billtohara at gmail.com> wrote:
> Hi,
>
> I have my simple jit'd language working to my satisfaction. Next, I'd
> like to add the ability to compile to standard ELF executables on
> Linux (and whatever is appropriate on the other platforms).
>
> Rather than printing assembly language to files and invoking the
> assembler and linker, is there a fast way I can convert my JIT to a
> static compiler?

An ELF object emitter is in progress, which will allow you to skip
calling the assembler, but either way you still need an ELF linker,
which means you need GNU binutils.  There are no plans at the moment
to add an ELF linker to LLVM.

-Eli



More information about the llvm-dev mailing list