Re: c++ exceptions

Kaz Kylheku <>
Fri, 13 Nov 2009 21:22:02 +0000 (UTC)

          From comp.compilers

Related articles
c++ exceptions (allstars) (2009-11-09)
Re: c++ exceptions (Kaz Kylheku) (2009-11-13)
Re: c++ exceptions (Kaz Kylheku) (2009-11-13)
| List of all articles for this month |

From: Kaz Kylheku <>
Newsgroups: comp.compilers
Date: Fri, 13 Nov 2009 21:22:02 +0000 (UTC)
Organization: A noiseless patient Spider
References: 09-11-032
Keywords: C++, performance
Posted-Date: 15 Nov 2009 17:46:20 EST

On 2009-11-10, allstars <> wrote:
> hello
> i've seen a post in other group (android-ndk)
> and i have a couple questions
> 1. How would c++ exception support slow down C applications?

In my previous posting I also wanted to mention that unwinding support
in C can bring in some additional costs. The exceutable may have to have
an additional section which contains records that help the unwinder do its
job. So that is an increase in the executable size. On a VM system, you
may be able to avoid loading that into memory until it is needed; however,
it may be the case that these records contain address references that
need to be subject to relocation (e.g. for shared libraries which don't
have a fixed address). In that case, not only are they loaded, but due to the
modification, the pages have to be a process-private mapping (consumes
non-shared memory).

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.