Re: c++ exceptions

Kaz Kylheku <kkylheku@gmail.com>
Fri, 13 Nov 2009 21:22:02 +0000 (UTC)

          From comp.compilers

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

From: Kaz Kylheku <kkylheku@gmail.com>
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 <allstars.chh@gmail.com> wrote:
> hello
> i've seen a post in other group (android-ndk)
>
> http://groups.google.com/group/android-ndk/browse_thread/thread/89db67ed1fbf6450?hl=en
>
>
> 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.