4 ms·
> Has any C compiler closed the loop on that by shipping the full compiler with the program to do runtime optimization? - The truffleruby "cext" project demons
by ihnorton 9y ago
> Has any C compiler closed the loop on that by shipping the full compiler with the program to do runtime optimization?
- The truffleruby "cext" project demonstrated something like this. They interpret and then JIT C on the JVM, and do cross-language inlining and other optimizations.
http://chrisseaton.com/rubytruffle/cext/ http://chrisseaton.com/rubytruffle/cext/
The same group is working on compiling LLVM IR on the JVM. Presumably the JVM's tiered runtime optimizations would apply to both of these.
https://github.com/graalvm/sulong https://github.com/graalvm/sulong
- There are also interactive C(++) "JITs" from CERN and the Julia project. However, as far as I know, they are both method JITs and don't do any trace-based re-JIT/OSR.
https://root.cern.ch/cling https://root.cern.ch/cling and https://github.com/Keno/Cxx.jl https://github.com/Keno/Cxx.jl