RE: R: exception handling

"Jon Watte" <[email protected]> Tue, 19 Oct 2004 14:44:17 -0700
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
> Exception handling code can significantly increase the size of the stack
> frame and lead to quite some increase in executable size so you really
> don't want to do it for inlined functions that get called a lot.

I know that very old implementations of C++ would add to the stack (to
store basically a jmp_buf) when doing a try. However, I'm under the
impression that all modern compilers use zero overhead exceptions, where
the only overhead happens if you actually throw -- plus, as we agree, the
tables in the executable on disk. If you don't have a goof VM system,
those can hurt a lot :-)

Hmm. Everything I know about exception implementation actually comes from
my CodeWarrior days plus a bit of GCC. Could it be that MSDEV has
specialness in this area?

I just disassembled a MSDEV 7.1 compiled program, and it appears that it
actually puts all functions with exception information into a special list,
so they don't actually implement zero-overhead exceptions. Curious. Thanks
for the heads up!

Cheers,

			/ h+




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555