View Single Post
  #34 (permalink)  
Old 09-07-2009, 07:04 AM
David Abrahams
Guest
 
Posts: n/a
Default Re: How do you exception in your daily C++ programming? - test.cpp (0/1)


on Sun Sep 06 2009, Mathias Gaunard <loufoque-AT-gmail.com> wrote:

> On 5 sep, 07:01, George Neuner <gneun...@comcast.net> wrote:
>
>> >Unless you're targeting 64-bit windows, you're not testing a
>> >particularly good EH implementation.

>>
>> ??? 64-bit Windows uses the same SEH implementation as 32-bit.
>>
>> C++ EH is slightly faster than Windows SEH. In VS2008 you can choose
>> which to use. If you mean the 64-bit compiler has a better C++ EH
>> implementation, then I have to plead ignorance ... I'll have to look
>> into it.

>
> I found a fairly interesting presentation on exception-handling with
> Visual C++ (it's for 2005 though):
> www.nwcpp.org/Downloads/2006/ehc.ppt


Unless they made VS2008-compiled code link-incompatible with
VS2005-compiled code, it would be hard for them to have changed much
about how this works.

> explains differences between SEH and C++ exception handling, on x86 or
> x86-64, with examples and their generated assembly.


Wow, that's slide set is fantastic. They really go into the details of
the MS implementation.

Note: Their C++ EH for x64 seems to have a few (probably negligible)
overheads, but it's not at all obvious to me why those overheads
should be needed.

--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Reply With Quote