libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libjit] Libjit: Generate executable output (ELF)


From: Basile Starynkevitch
Subject: Re: [Libjit] Libjit: Generate executable output (ELF)
Date: Tue, 4 Jul 2017 20:54:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1



On 07/04/2017 06:14 PM, Mahdi Mohammadinasab wrote:
Hello,

Can libjit be used in an AOT compiler to generate native executables?

It is not designed for this. You could use libjit to generate in memory and write an ELF file, but that is not as simple as that (because notably of relocations and external calls to low level libraries including libc)

For that particular purpose, did you consider using other "JIT-compiling" libraries, notably libjccgit https://gcc.gnu.org/onlinedocs/jit/ (whose usage is almost as simple as libjit)

Cheers

--
Basile STARYNKEVITCH   == http://starynkevitch.net/Basile
opinions are mine only - les opinions sont seulement miennes
Bourg La Reine, France




reply via email to

[Prev in Thread] Current Thread [Next in Thread]