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]

Re: -fexceptions and C: Performance penalties?


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


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