dworkin / lpc-ext

Extension modules for Hydra and DGD
The Unlicense
9 stars 5 forks source link

Alternate JIT compiler based on cc? #5

Open dworkin opened 3 years ago

dworkin commented 3 years ago

The current JIT compiler, as of version 1.2.5, runs clang as an independent program with IR input. As an alternative, it could instead produce C source code, to be compiled by the host's C compiler. This would make JIT compilation possible on platforms where clang is not supported.

All it would take is a replacement for jit/genclang.cpp.