comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Performance issue
Date: 1996/04/03
Date: 1996-04-03T00:00:00+00:00	[thread overview]
Message-ID: <dewar.828579988@schonberg> (raw)
In-Reply-To: 4xrau69js6.fsf@leibniz.enst-bretagne.fr

Laurent said

"--  Simple test to measure the speed improvement between GNAT 3.03 and GNAT
--  3.04 for "zero cost exception handling" (no more setjmps).
"

That's not quite right, we do not yet have true zero cost exception 
handling. What we *did* do is to eliminate the use of the standard
setjmp/longjmp, and replace it with an inernal implementation of
these primitives.

The gain will vary from machine to machine. On some machines there will
be very little gain, but on the Sparc the gain is huge. The Sun folks
seem to think that they have to do a system call (gasp!!!) to do a
setjmp, and in fact this is quite unnecessry, as this fix shows.

We still intend to do true zero cost exception handling in the future
(this is hard to do in a target independent manner), but meanwhile,
at least GNAT 3.04 eliminates the quite ludicrous overhead of defining
exception handlers on SunOS and Solaris.





      reply	other threads:[~1996-04-03  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-03  0:00 Performance issue Laurent Guerby
1996-04-03  0:00 ` Robert Dewar [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox