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,a883dc07df0d6bb1 X-Google-Attributes: gid103376,public From: lutz@iks-jena.de (Lutz Donnerhacke) Subject: Re: Decoding an octet stream Date: 1999/12/02 Message-ID: #1/1 X-Deja-AN: 555701745 Distribution: world Content-Transfer-Encoding: 8bit References: <877lj2q36g.fsf@deneb.cygnus.argh.org> <81u247$kc3$1@hobbes2.crc.com> <821rc5$bim$1@nnrp1.deja.com> <822o4d$ehh$1@birch.prod.itd.earthlink.net> <8233fm$ngf$1@nntp3.atl.mindspring.net> <87bt8a2uvr.fsf@deneb.cygnus.argh.org> <38460ECE.27216603@research.canon.com.au> Content-Type: text/plain; charset=ISO-8859-1 Organization: IKS GmbH Jena Mime-Version: 1.0 User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: comp.lang.ada Date: 1999-12-02T00:00:00+00:00 List-Id: * Geoff Bull wrote: >Florian Weimer wrote: >> Perhaps I may ask again: Is it reasonable to assume that >> Storage_Element'Size equals 8 (although the standard doesn't >> require this, of course)? > >I would think this is the equivalent of assuming that a >C char is 8 bits. Not strictly true, but a perfectly >reasonable thing to do, so long as you are aware of the >consequences. A DSP in the next labor has Storage_Element'Size = 32. sizeof(char) is required by the C standard to be equal to one every time. So we have (for this compiler) sizeof(char) == sizeof(short) == sizeof(int) == sizeof(long) == 1.