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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,43ad9ab56ebde91c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.191.2 with SMTP id gu2mr9059299pbc.0.1323689220986; Mon, 12 Dec 2011 03:27:00 -0800 (PST) Path: lh20ni13762pbb.0!nntp.google.com!news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Does Ada support endiannes? Date: Mon, 12 Dec 2011 12:27:09 +0100 Organization: cbb software GmbH Message-ID: References: <23835087-313f-427c-b37e-4ff1bdef9d57@r6g2000yqr.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-12-12T12:27:09+01:00 List-Id: On Mon, 12 Dec 2011 00:57:32 -0800 (PST), Gerd wrote: > a while ago, I worked at Siemens company, with a (CHILL-)compiler that > supports endianess similar to this: > > litte : Integer; pragma Datalayout(Little_Endian); > big : Integer; pragma Dtalayout(Big_Endian); > > little := big; -- compiler generates code for converting big endian to > little endian > > if little = big -- compiler converts the variables to machines nativ > format before testing > > > Is there something similar available with Ada? Or has someone any > suggestions how to rewrite it in ada? You simply convert all inputs when reading them and keep everything in the native format. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de