This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Converting to ISO C89
- From: Joe Buck <jbuck at synopsys dot com>
- To: tm_gccmail at mail dot kloo dot net
- Cc: Raja R Harinath <harinath at cs dot umn dot edu>, Zack Weinberg <zack at codesourcery dot com>, "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, mark at codesourcery dot com, gcc at gcc dot gnu dot org, gdr at integrable-solutions dot net
- Date: Tue, 25 Mar 2003 14:22:23 -0800
- Subject: Re: Converting to ISO C89
- References: <d9llz36rdq.fsf@bose.cs.umn.edu> <Pine.LNX.4.21.0303251501170.27137-100000@mail.kloo.net>
On Tue, Mar 25, 2003 at 03:03:39PM -0800, tm_gccmail at mail dot kloo dot net wrote:
> > I was thinking more about optimization: ensure that there's no
> > abstraction penalty for using a C++ compiler on C code, and that both
> > the C and C++ compilers exploit the same optimization opportunities.
> >
> > - Hari
>
> IIRC, C code compiled as C++ needs to carry around stack unwinding
> information whereas C code compiled as C does not.
With GCC, this is an option: we can enable the stack unwinding information for C,
or disable it for C++.