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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,43ad9ab56ebde91c,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.213.71 with SMTP id nq7mr8652710pbc.2.1323680255716; Mon, 12 Dec 2011 00:57:35 -0800 (PST) Path: lh20ni13386pbb.0!nntp.google.com!news2.google.com!postnews.google.com!r6g2000yqr.googlegroups.com!not-for-mail From: Gerd Newsgroups: comp.lang.ada Subject: Does Ada support endiannes? Date: Mon, 12 Dec 2011 00:57:32 -0800 (PST) Organization: http://groups.google.com Message-ID: <23835087-313f-427c-b37e-4ff1bdef9d57@r6g2000yqr.googlegroups.com> NNTP-Posting-Host: 192.109.190.88 Mime-Version: 1.0 X-Trace: posting.google.com 1323680255 30918 127.0.0.1 (12 Dec 2011 08:57:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 12 Dec 2011 08:57:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r6g2000yqr.googlegroups.com; posting-host=192.109.190.88; posting-account=XDglRgoAAAAB2wikSHYkYcjK-5hIYGIR User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLEUHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2),gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-12-12T00:57:32-08:00 List-Id: Hello, 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? Regards, Gerd