comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Ada and embedded applications
Date: Wed, 6 Jun 2001 11:42:23 -0400
Date: 2001-06-06T15:42:24+00:00	[thread overview]
Message-ID: <9flj10$4nh$1@nh.pace.co.uk> (raw)
In-Reply-To: JBgT6.1923$E6.322615411@newssvr16.news.prodigy.com

I think a more prudent answer would be "It Depends". Considering that it is
possible to generate programs that will need lots of constraint checking at
runtime & constraint errors are sort of part of exception handling, one
might conclude that exception handling can cost a significant part of the
budget due to code bloat & runtime inefficiencies. (This may be from whence
the original "rubbish" came from - a misunderstanding of the *necessity* of
doing all this checking.)

The other side of exception processing is that you can easily turn off
checking & run without a net. At that point, exception processing should be
at or near 0 as part of the memory/CPU budget.

I've done embedded stuff where leaving in runtime error checking would have
killed the project. In a sense this is "inherent in the language" because
Ada requires that the checks be done for validation. In another sense it is
not inherent because the language provides means of disabling the checks
when speed/space is an issue. So it is fair to say that exception processing
*can* impose a significant overhead, but *need not*, provided you understand
what you are doing.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Ken Garlington" <Ken.Garlington@computer.org> wrote in message
news:JBgT6.1923$E6.322615411@newssvr16.news.prodigy.com...
> : Also does exception handling in Ada really
> : have a large overhead?  (This is probably an implementation issue but is
> their
> : anything in the language that makes exception handling bulky?).
>
> Not for most of the embedded Ada code I've written.
>
>





      parent reply	other threads:[~2001-06-06 15:42 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-04 18:59 Ada and embedded applications Chris Campbell
2001-06-04 19:34 ` Marin David Condic
2001-06-04 21:12   ` Chris Campbell
2001-06-04 21:33     ` Matthew Woodcraft
2001-06-04 21:33     ` Ted Dennison
2001-06-04 22:33       ` Chris Campbell
2001-06-05  7:55         ` Chris Campbell
2001-06-05 15:03           ` Ted Dennison
2001-06-04 22:09     ` Marin David Condic
2001-06-05  2:18       ` tmoran
2001-06-05 13:38         ` Marin David Condic
2001-06-06  4:09           ` Jeffrey Carter
2001-06-05 18:23         ` Randy Brukardt
2001-06-05 18:25         ` Randy Brukardt
2001-06-05 20:18           ` Marin David Condic
2001-06-05  7:45     ` Martin Dowie
2001-06-05 13:49       ` Marin David Condic
2001-06-05 20:47         ` Martin Dowie
2001-06-05 10:15     ` Rod Chapman
2001-06-04 21:02 ` Larry Kilgallen
2001-06-04 20:06   ` Ehud Lamm
2001-06-04 21:18     ` Ted Dennison
2001-06-05 12:35     ` Marc A. Criley
2001-06-05 19:00       ` Pascal Obry
2001-06-04 21:15 ` Robert A Duff
2001-06-04 21:30   ` Chris Campbell
2001-06-05  2:06     ` Jeffrey Carter
2001-06-05 14:04     ` Marin David Condic
2001-06-05  7:50 ` Martin Dowie
2001-06-05 14:24   ` John English
2001-06-08 23:55     ` Robert A Duff
2001-06-09 12:47       ` Ehud Lamm
2001-06-14 16:27       ` Pat Rogers
2001-06-06  2:31 ` Ken Garlington
2001-06-06 11:14   ` Chris Campbell
2001-06-06 15:47     ` Marin David Condic
2001-06-06 17:57     ` Jerry van Dijk
2001-06-06 22:32       ` Chris Campbell
2001-06-06 22:37         ` Chris Campbell
2001-06-06 15:42   ` Marin David Condic [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