(second attempt, this time text-only, sorry)

I consider using libgccjit as a backend for my forthcoming Micron compiler. The 
compiler is supposed to be able to generate code for different bare-metal 
targets like Raspi Pico, Raspi Zero, ESP32 Xtensa or Risc-V etc.

>From what I understand so far I would have to build a separate instance of 
>libgccjit for each target. This results in quite a lot of large binaries with 
>a lot of redundancy. 

Is it possible to build libgccjit with all the mentioned targets included and 
then select via API for which target code should be generated? Assume there is 
already a separate assembler and linker für each target available.

Is it possible to build a version of libgccjit which includes all required GCC 
libraries so that only one shared library has to be deployed?

Are there already projects where libgccjit is used like this?

Thanks

R.K.

Reply via email to