From: Pascal MALAISE <malaise@magic.fr>
Subject: Re: PRECOMPILATION
Date: 1999/02/10
Date: 1999-02-10T20:19:52+00:00 [thread overview]
Message-ID: <36C1E9E8.EE698090@magic.fr> (raw)
In-Reply-To: 36c0b3ad.367441@news.pacbell.net
Tom Moran wrote:
>
> >Are there precompilation instructions in Ada95,
> >like in C (#ifdef,...etc) ? In other words, how can
> >I set compilation conditions ?
> Most compilers are smart enough to delete code in a situation like:
> Sometimes : constant Boolean := False;
> ....
> if Sometimes then
> stuff;
> end if;
> ie, if the optimizer knows "stuff" can never be executed, it will
> simply drop it and the if-test.
> Having worked on well known shrinkwrap software coded with the C
> preprocessor, I would STRONGLY recommend against going that route.
> Yes, it's just a tool, and judiciously used can be useful. So's a
> hydrogen bomb.
Is it legal Ada to write
Sometimes : constant Boolean := False;
if Sometimes then
-- representation clause
else
-- another representation caluse of the same type
end if;
I think the error will be detected far before the optimizer is involved.
--
Pascal MALAISE
(priv) mailto:malaise@magic.fr
(prof) mailto:malaise@fr.airsysatm.thomson-csf.com
next prev parent reply other threads:[~1999-02-10 0:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-09 0:00 PRECOMPILATION =:-) Vincent
1999-02-09 0:00 ` PRECOMPILATION Larry Kilgallen
1999-02-09 0:00 ` PRECOMPILATION Pascal MALAISE
1999-02-09 0:00 ` PRECOMPILATION Tom Moran
1999-02-10 0:00 ` PRECOMPILATION robert_dewar
1999-02-10 0:00 ` PRECOMPILATION Corey Ashford
1999-02-10 0:00 ` PRECOMPILATION dennison
1999-02-09 0:00 ` PRECOMPILATION Tucker Taft
1999-02-09 0:00 ` PRECOMPILATION Tom Moran
1999-02-10 0:00 ` PRECOMPILATION Pascal MALAISE
1999-02-10 0:00 ` PRECOMPILATION Tom Moran
1999-02-11 0:00 ` PRECOMPILATION Pascal MALAISE
1999-02-12 0:00 ` PRECOMPILATION robert_dewar
1999-02-14 0:00 ` PRECOMPILATION Pascal MALAISE
1999-02-09 0:00 ` PRECOMPILATION Tucker Taft
1999-02-10 0:00 ` PRECOMPILATION Fraser Wilson
1999-02-18 0:00 ` PRECOMPILATION Samuel Mize
1999-02-18 0:00 ` PRECOMPILATION Rakesh Malhotra
1999-02-19 0:00 ` PRECOMPILATION Samuel Mize
1999-02-18 0:00 ` PRECOMPILATION robert_dewar
1999-02-28 0:00 ` PRECOMPILATION Robert A Duff
1999-02-09 0:00 ` PRECOMPILATION Marin David Condic
1999-02-09 0:00 ` PRECOMPILATION Tom Moran
1999-02-10 0:00 ` Pascal MALAISE [this message]
1999-02-10 0:00 ` PRECOMPILATION Tom Moran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox