C ++ implemented in simple C

I read several times that the early C ++ compilers converted the first C ++ code to regular C before compiling it (or perhaps a third-party C compiler was needed).

Playing with the fields of grammar / language / compilation, I am curious to see how C ++ was implemented in simple C, especially since it can be one way to implement class inheritance and call the [virtual] method.

Could you point me to a compiler that will still be available at the moment?

I know that OO code can be modeled / emulated in simple C with pointers to structures and functions, but I would like to see the actual implementation of the C ++ language in C.

+5
source share
5 answers

cfront. . ++. , , .

Update: , setjmp/longjmp. , ++. .

+5

, ++ C, , , ++ FAQ , . , - , , .

+2

Comau . Comeau , .

EDGE . , Intel ++ Comeau.

+2

Microsoft ++ , , , , . , 7 C. 1992 (/ 2 ).

: . http://en.wikipedia.org/wiki/Visual_C%2B%2B, , , 1992 "C/++ 7.0"

+1

, ++, cfront. C. , EDG ++ C-, C-. , , , . , C. ++, Dinkumware, Java EDG, Java-. C , LISP: .

0

All Articles