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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID 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: dennison@telepath.com Subject: Re: Storage space question Date: 1998/12/11 Message-ID: <74rcq9$n19$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 421195698 References: <36704ADB.73FA308D@pwfl.com> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Dec 11 15:13:15 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1998-12-11T00:00:00+00:00 List-Id: In article , stt@houdini.camb.inmet.com (Tucker Taft) wrote: > Marin David Condic (condicma@bogon.pwfl.com) wrote: > > : ... > : 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# ; > > Actually, rather than using named numbers, I would recommend > using named constants of a derived integer type devoted to this Technicly, such constants are considered objects. Thus 'address is valid on them, which means the compiler allocates runtime storage (which was his problem with enumerations). In practice, the embedded compilers I have used would treat such constants the same as named numbers, as long as you are willing to declare them in a certian way, and not try a 'address on them. But if he doesn't want *any* allocations for these things, it would be best to check the compiler docs before using anthing other than named-numbers. BTW: In order to get around the "namespace problems", you could declare each register in its own package spec (and not use "use" clauses on them, of course). -- T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own