PR fortran/23815: Add byte-swapping to gfortran
Thomas Koenig
Thomas.Koenig@online.de
Mon Nov 14 18:18:00 GMT 2005
On Mon, Nov 14, 2005 at 02:02:14PM +0100, François-Xavier Coudert wrote:
> Sorry, but being ignorant, I can only repeat that question. Are there
> other compilers with a CONVERT keyword for the OPEN statement?
ifort has the 'LITTLE_ENDIAN', 'BIG_ENDIAN' and 'NATIVE' keywords
for CONVERT= . I added 'SWAP' because of orthogonality with 'NATIVE'
(if the consensus is to take it out, I have no problem with that :-)
Googling around, I find HP fortran also supports that syntax, as
did CVF and DEC Fortran previously.
I'd say that this is fairly standard, as extensions go :-)
> Either per-unit or a environment variable that contains a list of
> units: GFORTRAN_SWAPBYT_UNITS=10,15,17. Although I'm not much in
> favour of environment variables in general, in that case it seems the
> best way to go.
I was thinking of adding this possibility, too. If possible, I would
like to follow somebody's lead in this, if it is not too ugly.
Thomas
More information about the Fortran
mailing list