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 470060
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: C++
by Stratoukos on Wed 13th Apr 2011 23:46 UTC in reply to "C++"
Stratoukos
Member since:
2009-02-11

"Just a preprocessor" doesn't really mean anything.

A preprocessor is, to quote wikipedia, "a program that processes its input data to produce output that is used as input to another program". You still have to do all the hard work of parsing the code and generating the appropriate IR. At this point you'll have written a compiler frontent, so you might as well stick LLVM at the backend and emit machine code (instead of generating C and then compiling that with PCC). C++ especially is notoriously difficult to parse, so it doesn't really make sense to write a C++ to C compiler.

Reply Parent Score: 2