llvm on x86 barebone?

Does anyone know of any project involving running LLVm without an OS, i.e. directly on x86 hardware?


LLVM can statically compile code which can run directly on x86 hardware. However, the LLVM JIT relies on most of the LLVM libraries. It is not possible to compile these for a bare-bones x86 target.

In order to base an OS on LLVM IR and have it be JITed I see two options:

  1. Write a new JIT engine designed to be run directly on x86 hardware. This would require re-writing all of the optimization passes if you wanted it to have any benefit over static compilation.

  2. Take the smallest kernel you can that is easy to target LLVM for, then run the JIT on that. This means that the core of your OS won't be JITed, but a large part of it could be.

Need Your Help

Import and use android wheel as number picker

android import numbers picker

I have a question with this project https://github.com/sephiroth74/AndroidWheel .. I have found more questions like this but its answers were not that i expected. The thing is that I cloned it to E...

Specialize static template function of base class

templates c++11 static typedef template-specialization

I'm trying to specialize a static template function from a base class, and figured this was a good use case for a typedef/using statement. I can't seem to get it to work, though. Is this illegal, o...