Excuse me if I'm wrong, but isn't compiling to C instead of e.g. LLVM IR generally considered bad practice unless you have a very good reason due to all of C's undefined behavior?
Compilers targeting C - a list of open source compilers that can generate C code
11–14 of 14 posts
Re: Compilers targeting C - a list of open source compilers that can generate C code
#12Excuse me if I'm wrong, but isn't compiling to C instead of e.g. LLVM IR generally considered bad practice unless you have a very good reason due to all of C's undefined behavior?
there are certainly arguments to be made about UB (though i don't think llvm ir is free of it). on the other hand, llvm is ostensibly less portable and it's infrastructure is a rather massive beast to work with.
Re: Compilers targeting C - a list of open source compilers that can generate C code
#13~If I recall correctly~ The Ur/Web compiler also targets C: http://impredicative.com/ur/manual.pdf#subsection.12.24
Re: Compilers targeting C - a list of open source compilers that can generate C code
#14Excuse me if I'm wrong, but isn't compiling to C instead of e.g. LLVM IR generally considered bad practice unless you have a very good reason due to all of C's undefined behavior?
Why do you want to generate code with undefined behaviours ?