Win32 vs CentOS5
RadSurfer
RadSurfer@yahoo.com
Sun Aug 19 20:09:00 GMT 2007
Sun Aug/19/07 231 07:53:17
Comparison of Win32 Console version of `gfortran` to CentOS 5 linux:
(if you view this article within 24 hours of its posting, the following
pastebin should be valid, if you wish to view the actual source:
http://rafb.net/p/MDDhWI90.html)
e:\gfortran\test>gfortran uc.f95
e:\gfortran\test>dir
Directory of E:\gfortran\test\*
8-19-2007 7:45 <DIR> .
8-19-2007 7:45 <DIR> ..
8-19-2007 7:48 1,213,085 a.exe [a.out is 13,474 bytes under linux]
8-18-2007 17:33 1,440 uc.f95 [identical source code ]
8-19-2007 7:46 56 uconv.log
1,214,581 bytes in 3 files and 2 dirs 1,224,704 bytes allocated
1,189,318,656 bytes free
e:\gfortran\test>strip a.exe
e:\gfortran\test>dir a.exe
8-19-2007 7:50 114,688 a.exe [ouch!]
e:\gfortran\test>strip -v -s a.exe
copy from `a.exe' [pei-i386] to `sta80975' [pei-i386]
e:\gfortran\test>dir a.exe
8-19-2007 7:55 114,688 a.exe
[nothing is gained by using `stripall` option with strip]
e:\gfortran\test>strip -v -s -x a.exe
copy from `a.exe' [pei-i386] to `sta81079' [pei-i386]
[nothing is gained by using `-s -x` option with strip]
SAMPLE RUNS:
e:\gfortran\test>a.exe
At line 14 of file uc.f95
Fortran runtime error: End of file
e:\gfortran\test>a.exe 212
*** Measurement Conversion Menu ***
1 SM-KM 3 SM-NM 5 KM-NM
2 KM-SM 4 NM-SM 6 NM-KM
Enter Measurement Conversion Code: 1
SM-KM: 212.000 = 341.108
e:\gfortran\test>a.exe 212 1
SM-KM: 212.000 = 341.108
e:\gfortran\test>
Program appears to run as it does under Linux, identical Input/Output
behavior.
Except for the executable file size being considerably larger than the
identical linux equivalent, everything else appears similar.
More information about the Fortran
mailing list