3 ms·
WebKit’s B3 compiler is easy to extract and not at all specific to any language. I’ve heard good things about cranelift and I believe it’s sort of meant to ful
by pizlonator 4y ago
WebKit’s B3 compiler is easy to extract and not at all specific to any language.
I’ve heard good things about cranelift and I believe it’s sort of meant to fulfill the same role as B3. Might be worth checking out.
Most likely though, you should start by writing a template jit before you try to optimize. WebKit’s “assembler” and “jit” directories will show you how and you can probably extract most of the relevant code as it’s not WebKit specific. In particular the cross platform machine code gen.
Lastly I would advise against trying to reuse a C compiler backend like llvm unless your language is very close to C.
- orbifold 4y agoHave you seen a project that actually extracted it?