9 ms·
This is a fairly common technique in compiler construction and programming language research: Don't try to emit some machine code, instead emit C or an IR for c
by tetha 1y ago
This is a fairly common technique in compiler construction and programming language research: Don't try to emit some machine code, instead emit C or an IR for clang or GCC. And suddenly your little research language (not that rust is one) is executable on many, many platforms, can rely on optimizations the compilers can do, has potential access to debug handling, ..
- kvemkon 1y agoVala [1] is, perhaps, the most prominent example of practically used programming language with such compiler. [1] https://en.wikipedia.org/wiki/Vala_(programming_language) https://en.wikipedia.org/wiki/Vala_(programming_language)