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,start X-Google-Attributes: gid103376,public From: cpallen@nospam.com (Craig Allen) Subject: Storage space question Date: 1998/12/10 Message-ID: <9v6hGdgMLuwN-pn2-v5sq1RxFJ1z1@dt182n2f.tampabay.rr.com>#1/1 X-Deja-AN: 420792832 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" X-Complaints-To: abuse@tampabay.rr.com X-Trace: newse2.tampabay.rr.com 913295912 24.92.210.47 (Thu, 10 Dec 1998 08:18:32 EDT) MIME-Version: 1.0 NNTP-Posting-Date: Thu, 10 Dec 1998 08:18:32 EDT Newsgroups: comp.lang.ada Date: 1998-12-10T00:00:00+00:00 List-Id: 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: type DCD_Mode_Type is (CARRIER_DETECT, SYNC_DETECT, LOW, HIGH); for DCD_Mode_Type'Size use 2; for DCD_Mode_Type use (CARRIER_DETECT => 2#00#, SYNC_DETECT => 2#01#, LOW => 2#10#, HIGH => 2#11# ); is space allocated for each of these definitions? I ask because I added many of these types to a package I'm writing, and my memory map seems to have grown even without using these types yet. I'd like to have these names available for use, but taking no more space than what is necessary (like #define in C...) (I would only be using 1 definition per application, no need for space declared for all definitions...) I'm using Ada 83, but I don't think that matters. Thanks. -Craig