This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ exception code size / recommended practice
- From: Jason Merrill <jason at redhat dot com>
- To: tim at tjansen dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 10 Apr 2003 11:52:32 +0100
- Subject: Re: C++ exception code size / recommended practice
- References: <200304100120.32821.ml@tjansen.de>
On Thu, 10 Apr 2003 01:20:32 +0200, Tim Jansen <ml at tjansen dot de> wrote:
> Are there any hopes to make the overhead smaller on 3.x gccs? Is a throws()
> clause in the declaration recommended or not? It would be desirable for API
> documentation purposes and a paper claimed that empty throws() decreases the
> code size in VisualC++, but with gcc I noticed another small increase.
> Or, possibly, could the reason for the increase be that the app uses a
> -fno-exceptions library (Qt) extensively?
The -fno-enforce-exception-specs flag should improve the code size with
throw() specs.
Jason