This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ front end
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Ben Woodhead <ben at echotech dot ca>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 25 Jun 2002 09:29:48 -0400
- Subject: Re: C++ front end
On Tuesday, June 25, 2002, at 09:15 AM, Ben Woodhead wrote:
Hello Everybody
I was wondering if its possible to write a front end in c++ instead of c..
Yes, it is.
It takes a little work at first to clean up a few headers and add some
#ifdef __cplusplus
extern "C" {
#endif
....
#ifdef __cplusplus
}
#endif
but other than that, it works fine.
Also if its possible would it be difficult.. Or would it be best to rewrite
the code to c..
Depends.
How much code?
Thanks, Ben