Linked by lucas_maximus on Tue 12th Apr 2011 23:37 UTC
General Development No April Foolery: The Portable C Compiler version 1.0 was released on April 1st! As with so many things BSD, this project proves that good code is timeless and can benefit from literally generations of review. It can build the majority of the BSD base systems (C++ code aside) and is undergoing continuous improvement.
Thread beginning with comment 470025
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: C++
by reduz on Wed 13th Apr 2011 16:11 UTC in reply to "C++"
Member since:

that's something that always intrigued me..
there are many C++ compilers, but all just compile down to intermediate code, not C. Given the difficulty of making a C++ compiler, i'm surprised that there isn't a "generic" C++ -> C frontend that can be used with the plenty of C compilers available.

Reply Parent Score: 2

RE[2]: C++
by AnyoneEB on Thu 14th Apr 2011 01:00 in reply to "RE: C++"
AnyoneEB Member since:

C++ was originally implemented via translation to C using a compiler called Cfront. See Wikipedia for more information: . That article references a proprietary compiler project that I had not heard of before called Comeau C/C++ which apparently does still use the strategy of compiling C++ by going through C.

I think the problem is that it is useful for the compiler to know about C++'s features later on in the compiler pipeline. Converting them all to C probably makes the compiler harder to write and loses optimization opportunities.

Reply Parent Score: 1