This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fexceptions and C: Performance penalties?
- To: Andi Kleen <ak at muc dot de>
- Subject: Re: -fexceptions and C: Performance penalties?
- From: Andreas Schwab <schwab at issan dot cs dot uni-dortmund dot de>
- Date: 14 May 1999 13:40:54 +0200
- Cc: george at phat dot com, egcs at egcs dot cygnus dot com, law at cygnus dot com
- References: <99May14.131126met_dst.140550-2@colin.muc.de>
Andi Kleen <ak@muc.de> writes:
|> The only cost in compiling with -fexceptions is that the binary image gets
|> bigger because of the unwind tables generated. egcs 1.1 is clever enough
|> to put them into a separate ELF section which puts them into separate pages,
|> so if you never throw a exception the tables will most likely be never loaded
|> by the kernel. Therefore except for some wasted disk space -fexceptions
|> for the C library should be free.
The last time I checked the .eh_frame must be relocated, so that there is
a non-negligible startup overhead.
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org