Hacker News new | past | comments | ask | show | jobs | submit login

You could compile to C in the first revision of the compiler, but write it so that you could change to a LLVM back-end in the future. That is, unless your language does something that isn't a good fit for C, such as exceptions or continuations.

But do also look into other parts of the LLVM frameworks, especially MLIR.

Historically, there have been many compilers that produced C code, but some may have done so because of lack of compiler frameworks. The first C++ compilers compiled to C. Eiffel compiled to C. Nim compiles to C. I've also used a compiler framework that compiled to Java.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: