From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ca15935e4fb21334 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Storage space question Date: 1998/12/10 Message-ID: <36704ADB.73FA308D@pwfl.com>#1/1 X-Deja-AN: 420961455 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <366FE278.FAF73497@pwfl.com> <74pfg4$3s6$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1998-12-10T00:00:00+00:00 List-Id: > > 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? 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