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 470071
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: C++
by AnyoneEB on Thu 14th Apr 2011 01:00 UTC in reply to "RE: C++"
AnyoneEB
Member since:
2008-10-26

C++ was originally implemented via translation to C using a compiler called Cfront. See Wikipedia for more information: https://secure.wikimedia.org/wikipedia/en/wiki/Cfront . 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