Related articles |
---|
Implementation of C++ exceptions ? mmc@wagner.imada.ou.dk (1994-04-05) |
Re: Implementation of C++ exceptions ? vinoski@srv.ch.apollo.hp.com (Steve Vinoski) (1994-04-05) |
Re: Implementation of C++ exceptions ? mw@ipx2.rz.uni-mannheim.de (1994-04-05) |
Re: Implementation of C++ exceptions ? chase@Think.COM (1994-04-05) |
Re: Implementation of C++ exceptions ? schmidt@tango.ICS.UCI.EDU (Douglas C. Schmidt) (1994-04-06) |
Re: Implementation of C++ exceptions ? mmc@wagner.imada.ou.dk (1994-04-07) |
Implementation of C++ exceptions ? ssimmons@convex.com (1994-04-08) |
Re: Implementation of C++ exceptions ? davis@ilog.ilog.fr (1994-04-11) |
Re: Implementation of C++ exceptions ? chase@Think.COM (1994-04-11) |
[1 later articles] |
Newsgroups: | comp.compilers |
From: | mw@ipx2.rz.uni-mannheim.de (Marc Wachowitz) |
Keywords: | C++, design |
Organization: | Compilers Central |
References: | 94-04-019 |
Date: | Tue, 5 Apr 1994 20:12:33 GMT |
> Where can I get information about implementaion details of C++ exceptions?
I don't have any info, but my guess would be that the compiler could build
static tables, which allow the runtime code to find handlers just by
backtracing the runtime stack. All "good run"-overhead would be
assumptions of the exception handling code about stack layout and a few
registers (stack and instruction pointer should be sufficient), and the
requirement that an exception handler must find its local environment in
the stack (similar to the problems of setjmp/longjmp in C). Particularly
on architectures having "enough" registers ("throw undefinedValue" :-)
this should be little overhead.
Asking in comp.lang.modula3 may also yield some results, since M3 is now
implemented as direct compiler, rather than via C, and might contain a
better technique for exceptions than setjmp/longjmp (just guessing, didn't
look at the new compiler yet). If you get some other ideas from elsewhere,
please post it here, too.
------------------------------------------------------------------------------
Marc Wachowitz <mw@ipx2.rz.uni-mannheim.de>
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.