Read/Write of unformatted files usin g77

Memo García ggarcia@mineduc.cl
Fri Sep 27 07:26:00 GMT 2002


Hi,

I´m not sure if this is a bug or a feature :-)

The problem that I have porting Absoft F77 code to g77 is with the way that 
unformatted files are read/written.

Using the Absoft compiler, the unformatted files does not require the the 
record size, I presume, that g77 put as trailing and leading information in 
every record.

I have a lot of programas that read binary information generated by other 
non Fortran applications that don´t include the size of the record.

Is thera a way to tell the compiler to not use this feature?

I'm including a little program with an octal dump of the file generated in 
both g77 and Absoft f77.

thanks in advance and best regards,


_____________________________
Memo García
<mailto:ggarcia@mineduc.cl>ggarcia@mineduc.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binfile.zip
Type: application/zip
Size: 516 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020927/d9b377fd/attachment.zip>


More information about the Gcc-bugs mailing list