I keep hearing about LLVM all the time. It's in Perl, then it's in Haskell, then someone uses it in some other language? What is it?
I couldn't understand what it was from it. :(
bodacydo
2010-03-01 09:14:14
+8
A:
LLVM is a library that used to construct, optimize and produce intermediate and/or binary machine code.
LLVM can be used as a compiler framework, where you provide the "front end" (parser and lexer) and the "back end" (code that converts LLVM's representation to actual machine code).
LLVM can also act as a JIT compiler - it has support for x86/x86_64 and PPC/PPC64 assembly generation with fast code optimizations aimed for compilation speed.
If you're interested, you can play with LLVM's machine code that is generated from C or C++ code in their demo page.
LiraNuna
2010-03-01 09:13:04