From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id F3B212F13D for ; Fri, 15 Dec 2000 10:56:34 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eBFFuYT25948 for axp-list@listman.redhat.com; Fri, 15 Dec 2000 10:56:34 -0500 Received: from alpha-gw.alpha-processor.com (alpha-gw.alpha-processor.com [192.233.59.9]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id eBFFuYD25943 for ; Fri, 15 Dec 2000 10:56:34 -0500 Received: from barracuda.alpha-processor.com by alpha-gw.alpha-processor.com via smtpd (for mail.redhat.com [199.183.24.239]) with SMTP; 15 Dec 2000 15:57:01 UT Received: by barracuda.alpha-processor.com with Internet Mail Service (5.5.2650.21) id ; Fri, 15 Dec 2000 10:53:59 -0500 Message-ID: <051DFF3BBA73D3119A5800A0C95BD0219BEA9E@barracuda.alpha-processor.com> From: Rick Gorton To: "'axp-list@redhat.com'" Subject: RE: lam_mpi change fortran compiler to pgi Date: Fri, 15 Dec 2000 10:53:58 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Too many misconceptions to let go by: Building all the software to be big endian is insufficient, I believe. There may be hardware assumptions make by systems designers as well (motherboard hard-wired to be little-endian) But that's _completely_ irrelevant in this particular case. If you have big-endian data you want to use on a little-endian machine, you do NOT have to do byte swapping on every single access, unless you are actually trying to run a big-endian program (for example, binary translated SPARC or mips executables) Even then, there is a theoretical trick (called "the Martin maneuver" after the guy who thought it up) to avoid a bunch of swapping. All you really have to do is to swap the data at file I/O time if you want to preserve the endian-ness of the data. Some compilers (the compaq fortran compiler) have switches which will make this behavior happen transparently. The switch for that compiler is '-convert big_endian', and it has other conversion switches for cray data as well. If the problem is that there are big-endian assumptions in the source code, then those would need to be corrected as well. (C code knowing to access byte 3 instead of byte 0 of an int, etc) Regards, Rick