This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Endianess and Fortran
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Hassan Aurag <aurag at cae dot com>
- Cc: GCC Help Mailing List <gcc-help at gcc dot gnu dot org>
- Date: Fri, 16 Nov 2001 21:18:50 +0100
- Subject: Re: Endianess and Fortran
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <1005925116.21445.6.camel@l0553lnx>
Hassan Aurag wrote:
> This is new to me. What are the things to watch when dealing with
> porting Fortran programs from old big-endian machines to Linux on Intel?
>
> I heard EQUIVALENCE statements are a problem. What are the other things
> to watch for?
>
> Any help or pointer to Fortran related issues is welcome.
Well, it's hard to enumerate all the possible problems with switching to
a system with a different endianness than your original one.
There's one problem we *always* hear about: It is not possible to read
unformatted files produced on your old system on your new system.
So transfer any needed data by writing it out as formatted data.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)