This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ exception code size / recommended practice


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]