News for hackers. Stuff that matters.
Re:Usability Improvements in GCC 15 by Tpt on Thursday April 10, 2025 @11:56AM (#43645202)
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.

Re:Usability Improvements in GCC 15 by aengelke on Thursday April 10, 2025 @12:38PM (#43645635)
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.