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,40c8d1d2d927ffd9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-20 05:46:05 PST Path: archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!tar-atanamir.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Interoperability: differing storage units and/or endianess Date: Fri, 20 Feb 2004 14:55:26 +0100 Message-ID: References: <9fb7e8e1.0402190429.49b37b16@posting.google.com> NNTP-Posting-Host: tar-atanamir.cbb-automation.de (212.79.194.116) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1077284764 47423562 I 212.79.194.116 ([77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:5689 Date: 2004-02-20T14:55:26+01:00 List-Id: On Fri, 20 Feb 2004 11:54:02 +0100, Michael Paus wrote: >Stephen Leake wrote: > >> Michael Paus writes: >> >>>Bibb Latting wrote: >>> >>>>Hi, I am working on a distributed application where the processors >>>>have differing storage unit sizes and/or endianess. My problem is how >>>>to handle the specification of memory contents and the delivery of >>>>data to applications with minimal variation between implementations. >>>>I'd like to know what solutions have worked well for others. >>> >>>And I'd like to know which currently used processors have a storage >>>unit size other than 8. >> >> Many DSPs use 16 bit words. > >Interesting! I haven't worked with DSPs for a very long time. Could >you tell me how they map, e.g. a character. Does it always have >16 bits or don't they have the type character at all anymore? Do you mean Ada or C? In Ada the type Character need not to be aliased. As for C, I remotely remember a DSP compiler that used 32 bits per char. It is allowed in ANSI C, AFAIK. -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de