Re:What Challenges and Trade-Offs Do Optimising Compilers Face?
by ihnorton on Thursday June 22, 2017 @11:43AM
(#14613017)
> 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.
- 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.
- 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/
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
- 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 and https://github.com/Keno/Cxx.jl