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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b5b40006550b942 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-05 04:01:43 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!adsl-213-200-246-247.cybernet.CH!not-for-mail From: Vinzent 'Gadget' Hoefler Newsgroups: comp.lang.ada Subject: Re: data types & efficiency Date: Fri, 05 Mar 2004 13:00:53 +0100 Organization: JeLlyFish software Message-ID: References: <5ohg40ls073v1b5d8idail4t365f57l8os@jellix.jlfencey.com> NNTP-Posting-Host: adsl-213-200-246-247.cybernet.ch (213.200.246.247) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 1078488101 60819870 I 213.200.246.247 ([175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:6076 Date: 2004-03-05T13:00:53+01:00 List-Id: Davide wrote: >"Vinzent 'Gadget' Hoefler" wrote: > >>3) Declare the type by specifying its range and let the compiler >>figure out what could be more efficient on the hardware. > >unfortunately I *must* specify the 'SIZE of each data type or subtype. Why? If you're interfacing to some external (hardware) interface you have to specify a certain size independent from the target-architecture, but if you don't need this I don't see why you should *have* to specify some size at all. Vinzent.