2 ms·
Is there an easy to use C/C++ toolchain which targets the JVM? That may be the answer, because essentially that was what gave us WASM. Getting C/C++ code runni
by flohofwoe 3y ago
Is there an easy to use C/C++ toolchain which targets the JVM? That may be the answer, because essentially that was what gave us WASM.
Getting C/C++ code running in the browser was the motivation for Emscripten, and eventually this evolutionary branch gave us WASM (via asm.js).
(and at the time there was plenty of competition: Adobe's Alchemy/Flascc which targeted Flash, and Google's (P)NaCl which compiled to native instructions and later (a subset of) LLVM bitcode, but notably, there was no similar attempt (that I know of) of a C/C++ compiler which targeted the JVM)
- pjmlp 3y agoHere you go, http://nestedvm.ibex.org/ http://nestedvm.ibex.org/
- kaba0 3y agoAlso, GraalVM has support for every LLVM language.
- ianopolous 3y agoI once wrote a Linux process emulator in java for static x86 binaries. It could run 80% native speed on x86 and 240% native speed on arm compared to gcc -o3. (I think gcc wasn't very good on arm at the time) Sadly it was proprietary.