JIT compiler for C, C++, and the likes
Posted
by
Ebrahim
on Programmers
See other posts from Programmers
or by Ebrahim
Published on 2010-12-23T00:47:12Z
Indexed on
2010/12/27
0:58 UTC
Read the original article
Hit count: 673
Is there any just-in-time compiler out there for compiled languages, such as C and C++? (The first names that come to mind are Clang and LLVM! But I don't think they currently support it.)
Explanation:
I think the software could benefit from runtime profiling feedback and aggressively optimized recompilation of hotspots at runtime, even for compiled-to-machine languages like C and C++.
Profile-guided optimization does a similar job, but with the difference a JIT would be more flexible in different environments. In PGO you run your binary prior to releasing it. After you released it, it would use no environment/input feedbacks collected at runtime. So if the input pattern is changed, it is probe to performance penalty. But JIT works well even in that conditions.
However I think it is controversial wether the JIT compiling performance benefit outweights its own overhead.
Edit: Grammar
© Programmers or respective owner