C++ exception code size / recommended practice
Jason Merrill
jason@redhat.com
Thu Apr 10 15:03:00 GMT 2003
On Thu, 10 Apr 2003 01:20:32 +0200, Tim Jansen <ml@tjansen.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
More information about the Gcc
mailing list