Related articles |
---|
Implementation and Optimization of exceptions ( static analysis possi sdm7g@elvis.med.virginia.edu (Steven D. Majewski) (1995-07-21) |
Re: Implementation and Optimization of exceptions ( static analysis p bobduff@world.std.com (1995-07-26) |
Re: exceptions ( static analysis possible? ) simmons@bnr.ca (steve (s.s.) simmons) (1995-07-31) |
Re: exceptions ( static analysis possible? ) bill@amber.ssd.hcsc.com (1995-08-13) |
Newsgroups: | comp.compilers |
From: | "steve (s.s.) simmons" <simmons@bnr.ca> |
Keywords: | errors, optimize |
Organization: | Bell-Northern Research Ltd. |
References: | 95-07-142 95-07-161 |
Date: | Mon, 31 Jul 1995 13:30:15 GMT |
> The usual technique in Ada compilers has near-zero overhead for entering
> a procedure/block with a handler, and lots of overhead for actually
> raising an exception. This is good if exceptions are used for truly
> exceptional situations. The technique is to keep a static table for
> each procedure, which maps ranges of code addresses to the corresponding
> exception handler.
Certainly, you are right in the case with no optimizations. However,
Ada's exception blocks do have a subtle. That is, you can't optimize
across a exception block boundary in Ada when doing any global
optimizations. It is a subtle, but important issue...
Thank you.
Steve Simmons
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.