This is the mail archive of the
mailing list for the GCC project.
Re: g++ compiler
- From: Joe Buck <jbuck at synopsys dot COM>
- To: mrs at windriver dot com (mike stump)
- Cc: gcc at gcc dot gnu dot org, thomascanny at yahoo dot co dot nz
- Date: Thu, 24 Jan 2002 10:11:27 -0800 (PST)
- Subject: Re: g++ compiler
> > I have a small question about gcc. I have a port which is aimed at
> > producing code for C Language. I want to extend it to support C++
> > also. So, what are all my work items ?
Mike Stump writes:
> Pragmatic answer:
> Run the C++ testsuite. Review the results of the testsuite, fix
> all that you can. Compile up `real' C++ code, test it out, fix
> any bugs found.
> > 1) TARGET_MACROS in tm.h
> > 2) Standard libray for C++ (Need to compile it with the port.)
> Not much, if any.
There is some processor-specific and OS-specific code needed, mainly
for thread safety and for dealing with clashes between the C++ library
and your OS's C library. Look in libstdc++-v3/config/os and
libstdc++-v3/config/cpu. If it's not provided, there is generic code
that gets used, which probably won't be quite right especially for