To those having created languages, should I target LLVM or is transpiling to C a viable way (like I intend to) ?
Transpilers to C seem rare, maybe for a reason..
Transpilers to C seem rare, maybe for a reason..
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.
That said C transpilation is certainly a viable root (e.g. Idris does this)
It is interesting to consider the trade-offs even if you go with C or LLVM: