top | item 43645202

(no title)

Tpt | 10 months ago

There is now libgccjit that aims at allowing to embed gcc https://gcc.gnu.org/onlinedocs/jit/

There is an alternative backend to rustc that relies on it.

discuss

order

aengelke|10 months ago

libgccjit is, despite its name, just another front-end for GIMPLE. The JIT-part is realized through compiling the object file to a shared library and using dlopen on this.

One big problem with libgccjit, despite its fairly bad compile-time performance, is that it's GPL-licensed and thereby makes the entire application GPL, which makes it impossible to use not just in proprietary use-cases but also in cases where incompatible licenses are involved.