[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help regarding Building a small C++ to C compiler (Translator)

From: Dyreatnews
Subject: Re: Help regarding Building a small C++ to C compiler (Translator)
Date: Tue, 07 Mar 2006 18:48:33 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (usg-unix-v)

"Studnet" <> writes:

> Hi All,
> I have an assignment for my Programming language project to create a
> compiler that takes a C++ file as input and translate it into the C
> file. 

Wow, you have my sympathy, how much time do you have for the project?

> Here I have to take care of inheritance and operator overloading
> and virtual functions. I mean it should not hamper the C++ meaning. In
> frank and simple terms i need to implement a small C++ compiler in C++,
> and i want the intermediate representation to be C. Please help me in
> this. 

I've been told that the first versions of CFront did this. Maybe the
source for them is available on the net somewhere...


However, experience shows that for many people and many applications a
dose of paranoia is reasonable - Bjarne Stroustrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]