- Joined
- Oct 19, 2023
it has been partially designed to serve as an ir since a very long time ago, with special features like the #line preprocessor directiveC is also at its best when it's the target language for various compilers
this has been exploited for many classic tools like yacc
writing c may or may not be based, but the language itself is quite neat
don't forget that at least 93 scheme implementations and 2 common lisp implementations compile to c(e.g., f2c compiled Fortran 77 into C, p2c compiled Pascal into C, Squeak's VM is written in a subset of Smalltalk and automatically compiled into C, Eiffel compiled into C and maybe still does, and I don't think any of the Modula-3 compilers ever generated anything but C)
when are we going to see a soylang that compiles to gcc irI think we should go back to this sort of thing, because I really don't like the modern practice of putting every egg on the planet into LLVM's basket.