comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Ada checks suppression thanks to compilation options and Ada conformity
Date: Thu, 08 Nov 2007 16:25:28 -0800
Date: 2007-11-08T16:25:28-08:00	[thread overview]
Message-ID: <1194567928.824273.246830@e9g2000prf.googlegroups.com> (raw)
In-Reply-To: <4733972C.C7E7BCE@free.fr>

On Nov 8, 3:09 pm, Christophe TRAVERS <christophe.trave...@free.fr>
wrote:
> I send this message in order to get your opinion on the following
> subject :
>
> An Ada program was supposed to take into account the Ada exceptions :
> CONSTRAINT_ERROR, NUMERIC_ERROR, ...
> The pragma SUPPRESS was forbidden. So, it was not used in the Ada source
> code.
> Everybody was convinced that the exception mechanism was fully
> operational in the embedded object executable.
>
> Nevertheless,  the object code was compiled thanks to the Ada TARTAN
> compiler with some compilation options  have suppressed all the "checks"
> in the entire object code.
>
> From my point of view, these compilation options that can suppress the
> checks are a way to get around the Ada language norm.
>
> What it you opinion on this suject?.

The compilation options are there for a reason---customers want them.
Generally, the idea is to leave checking on while you're testing a
program, and then when you're confident it works, you can compile the
program with checking off so that it runs faster.  Although you could
view this as "getting around the Ada language norm", there's nothing
wrong with it; the language designers wouldn't have added Suppress in
the first place if they intended for Ada to be a language for
"purists", rather than a language to be used in the real world.  I
doubt that there's any Ada compiler that doesn't have command-line
options to turn off checking.

If there's some sort of policy that forbids Suppress, but the code is
being compiled with options that achieve the same effect, it sounds
like there's a management problem.  Either the policy is too rigid to
be practical, or the programmers are too lazy to work within the
policy, or the programmers haven't been properly educated as to the
reason for the policy; or someone just doesn't know what they're
doing.

                                -- Adam





  parent reply	other threads:[~2007-11-09  0:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-08 23:09 Ada checks suppression thanks to compilation options and Ada conformity Christophe TRAVERS
2007-11-08 23:52 ` Ludovic Brenta
2007-11-09  0:15 ` Jeffrey Creem
2007-11-09  0:25 ` Adam Beneschan [this message]
2007-11-09  6:07 ` anon
     [not found]   ` <13j8b1pjln94ce@corp.supernews.com>
2007-11-10 20:21     ` Christophe TRAVERS
     [not found] ` <13j8b1oon6rvncd@corp.supernews.com>
2007-11-10 20:54   ` Christophe TRAVERS
2007-11-10 22:00   ` Keith Thompson
replies disabled

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