3 ms·
Depends on what you mean by hoops (ala clang), but there is Graal which can run LLVM bitcode [0] but I am unsure if it can compile it. I have personally compile
by kodablah 8y ago
Depends on what you mean by hoops (ala clang), but there is Graal which can run LLVM bitcode [0] but I am unsure if it can compile it. I have personally compiled C code to WASM and then to the JVM via [1]. C/C++ are complex (and/or have complex optimizations) so a compiler should be used, but doesn't necessarily have to target a specific CPU but still have to have a bit-preference and what not. And of course once you interact with the system, some abstraction has to occur somewhere.
0 - http://www.graalvm.org/docs/getting-started/#running-llvm-interpreter http://www.graalvm.org/docs/getting-started/#running-llvm-in...
1 - https://github.com/cretz/asmble https://github.com/cretz/asmble