comp.lang.ada
 help / color / mirror / Atom feed
From: Marin David Condic <condicma@bogon.pwfl.com>
Subject: Re: Storage space question
Date: 1998/12/10
Date: 1998-12-10T00:00:00+00:00	[thread overview]
Message-ID: <36704ADB.73FA308D@pwfl.com> (raw)
In-Reply-To: 74pfg4$3s6$1@nnrp1.dejanews.com

<snip>
> 
> Again, I'm using Ada83, and don't see a pragma that will help me.  I
> understand and agree with the dislike of preprocessors, but is what I'm
> trying to do (which textual subst would work for...) such a bad thing to ask
> for?
<snip>

I've done exactly this in any number of situations. Enumerations are
definitely "The Ada Way" of solving this problem, so naturally you want
to try to do this. However, if you're suffering a memory penalty - and
using Ada83 - there is no "conventional" way I know of to turn off
storage of all the stuff you don't want. But most embedded compilers
give you some means of doing this anyway - you need to tell us what
particular compiler you are using.

If you can't find an answer in the compiler-specific documentation, you
can always get there through the
less-desirable-but-no-worse-than-C-does-it method of declaring a bunch
of named numbers:

Some_Name : constant := 2#0101# ;

It does, as you observe, have name-space problems, but it will get you
there. I'd still urge you to check the compiler documentation (and let
us know the Manufacturer, Host, Target and Version - if possible because
someone else has probably been there already) because this is hardly a
new problem and is something most vendors accounted for in some way.

MDC
-- 
Marin David Condic
Real Time & Embedded Systems, Propulsion Systems Analysis
United Technologies, Pratt & Whitney, Large Military Engines
M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600
Ph: 561.796.8997         Fx: 561.796.4669
***To reply, remove "bogon" from the domain name.***

"Transported to a surreal landscape, a young girl kills the first woman
she meets and then teams up with three complete strangers to kill
again."

        -- TV listing for the Wizard of Oz




  reply	other threads:[~1998-12-10  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-10  0:00 Storage space question Craig Allen
1998-12-10  0:00 ` dennison
1998-12-10  0:00 ` Marin David Condic
1998-12-10  0:00   ` Tucker Taft
1998-12-10  0:00     ` callen
1998-12-10  0:00       ` Marin David Condic [this message]
1998-12-10  0:00         ` Tucker Taft
1998-12-11  0:00           ` dennison
1998-12-11  0:00         ` Matthew Heaney
1998-12-11  0:00           ` Marin David Condic
1998-12-12  0:00             ` Matthew Heaney
1998-12-12  0:00               ` David C. Hoos, Sr.
1998-12-12  0:00                 ` Matthew Heaney
1998-12-14  0:00                 ` dennison
1998-12-10  0:00       ` dennison
1998-12-11  0:00       ` Matthew Heaney
1998-12-10  0:00   ` Pat Rogers
1998-12-10  0:00     ` dennison
1998-12-10  0:00       ` Pat Rogers
1998-12-10  0:00   ` Matthew Heaney
1998-12-10  0:00     ` dennison
replies disabled

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