On 24 November 2014 at 06:35, Markus Wichmann <nullp...@gmx.net> wrote: > Well, there's always clang. It's completely written in C++, but is way > better organized than GCC and it is contained entirely in a lib, so it > can be easily integrated into IDEs and other programs. If you need a C > parser, have a look at libclang.
clang might be better organized, but I'd prefer a compiler that only focusses on C, is written in C and thus can be bootstraped with a plain C compiler. The monstrosity of gcc or clang (even be it better organized) is related from the fact that they target the fully feature C/C++[/ObjC] audience. A compiler that would only focus on C as a language could be much simpler, and its capabilities to produce highly optimised code for the target arch could be based on this simplicity instead. I guess the output would kickass all C++ binaries produced by either msvc/g++/clang... I see a lot of opportunity in a decent C-only compiler. Not sure if OpenBSD achieved anything wrt its pcc porting efforts that Uriel once pushed for. BR, Anselm