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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4ac6504560f5ef27,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-25 01:38:47 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: jamesamor@hotmail.com (James Amor) Newsgroups: comp.lang.ada Subject: Little Endian -> Big Endian (Ada95 / GNAT) Date: 25 Feb 2004 01:38:47 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 20.138.254.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1077701927 18291 127.0.0.1 (25 Feb 2004 09:38:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Feb 2004 09:38:47 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:5786 Date: 2004-02-25T01:38:47-08:00 List-Id: Hi, At present I am writing a tool to create a file which contains various extracted ELF symbols. The output data structure, a list of unsigned 32's, is to be used as part of an image on a PowerPC target. Problem: As it is compiled on Wintel the tool is producing an output in little endian and PowerPC is big endian! Question: How do I modify my code to write the output in big endian format? Thanks in advance for any help offerred, James