comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@NOclasswideSPAM.com>
Subject: Re: Storage space question
Date: 1998/12/10
Date: 1998-12-10T00:00:00+00:00	[thread overview]
Message-ID: <74or0g$lgt$1@remarQ.com> (raw)
In-Reply-To: 366FE278.FAF73497@pwfl.com

Marin David Condic wrote in message <366FE278.FAF73497@pwfl.com>...
>Craig Allen wrote:
>>
>> Hello!
>>
>> the short version of my question is this:  If I'm using
enumerations
>> to define names that will represent specific bit patterns that my
program
>> may wish to use, do *all* these bit patterns allocate space? e.g.
with
>> this:


<snip>

>In general, a type does not require any space. Only when you
declare
>objects of the type is memory allocated. However, the rules of Ada
>require that certain information be available at run time
concerning a
>type, which means the compiler has to keep that information
somewhere -
>hence memory utilization. Remember that for a given enumeration
type T,
>Ada has a function T'Image which has to return the character string
>associated with the given value (id est, "CARRIER_DETECT",
>"SYNC_DETECT", etc.) I don't think that the representation clauses
would
>have any impact on storage, but maybe one of the compiler-writers
in the
>crowd can fill us in.


See RM C.5(1) re: pragma Discard_Names

>"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

:-)






  parent 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 ` Marin David Condic
1998-12-10  0:00   ` Tucker Taft
1998-12-10  0:00     ` callen
1998-12-10  0:00       ` Marin David Condic
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 [this message]
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
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