same code run in ifort and f77 produced different file size

  • Follow


Hi all,

actually it's not a problem, I just wandering why the same code run by
ifort and f77 produced files of different size. I use
write(fileunit, *) to output free format ansic file which only
includes integer and floating numbers.

BTW: the one generated by ifort is much bigger...285M compared to
230M.....

curious about it.
0
Reply zuying (37) 10/18/2008 3:34:22 AM

zuying@gmail.com wrote:
> 
> Hi all,
> 
> actually it's not a problem, I just wandering why the same code run by
> ifort and f77 produced files of different size. I use
> write(fileunit, *) to output free format ansic file which only
> includes integer and floating numbers.
> 
> BTW: the one generated by ifort is much bigger...285M compared to
> 230M.....
> 
> curious about it.

Different compilers have different ideas about how many significant
digits and leading and trailing spaces to print with * format.  It's not
standardized.

If you switched to hard formatting (i10, f12.4, etc.) I expect you would
immediately get files of identical size.

--Dave
0
Reply nospam21 (11322) 10/18/2008 5:48:50 AM


1 Replies
80 Views

(page loaded in 0.099 seconds)

Similiar Articles:










7/16/2012 10:09:06 PM


Reply: