Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: gfortran pr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 17 Topic 8181 of 8775
Post > Topic >>

Re: gfortran produces huge executables

by "Anony" <invalid-email@[EMAIL PROTECTED] > Apr 26, 2008 at 08:34 PM

<hermantobin@[EMAIL PROTECTED]
> wrote in message
news:370068ea-415b-40a8-a330-3d3c8011819c@[EMAIL PROTECTED]
> I'm new to Fortran (typically use Java and C++).   I'm have compiled
> some F90 molecular dynamics code that has been passed down.  gfortran
> produces huge (700 megabyte) executable files, while a trial version
> of ifort produces an executable file under 1 meg.  The executable runs
> in either case, but the large file size and compile+link times are a
> nuisance. The large executable is likely related to a single large
> object file, which is associated with a source file that defines a
> large dynamically allocated (I believe) array.  Maybe this is some
> flag that I have failed to set?
>
> gfortran version: GNU Fortran (GCC) 4.3.0 20070810 (experimental)
> OS: Intel OS X 10.5.2
> Processor: 2.16 GHz Intel Core 2 Duo


"gFortran executable size" depends on how gfortran is built. It could be
small, and could be huge as you experienced. It totally depends on where
you
download the compiler. If you are on Windows, you can download gfortran
and
c++ at www.Equation.com. The compiler built by Equation.com will produce a
small-sized executable.

As compared to ifort, gFortran may produce a smaller executable. I post an
example in the following

04/26/08  04:01p               293,376 bench1_gfortran.exe
04/25/08  07:14a               667,648 bench1_intel.exe

Both EXEs are from the same source code, and static link. It can be seen
gfortran produces a smaller executable in this example. ifort has a better
optimization. For example, EXE from gfortran takes 105 seconds on one
processor, and EXE from ifort can finish it about 51 seconds (on a baby
200
MHZ dual pentium pro). The EXEs have classic pentium instructions. In this
example, ifort shows 2X faster. (On some applications, ifort can be up to
6X)



**** EXE by gfortran ****

C:\TEMP>bench1_gfortran
 number of equations:      2000000
 Half bandwidth:            8

 Processor:  1
 Elapsed Time (Seconds):   105.05
 CPU Time in User Mode (Seconds):   104.05
 CPU Time in Kernel Mode (Seconds):     1.00
 Total CPU Time (Seconds):   105.05

 Processors:  2
 Elapsed Time (Seconds):    52.55
 CPU Time in User Mode (Seconds):   104.19
 CPU Time in Kernel Mode (Seconds):     0.89
 Total CPU Time (Seconds):   105.08



*** EXE by ifot ***

C:\TEMP>bench1_intel
 number of equations:      2000000
 Half bandwidth:            8

 Processor:  1
 Elapsed Time (Seconds):    51.51
 CPU Time in User Mode (Seconds):    50.42
 CPU Time in Kernel Mode (Seconds):     1.09
 Total CPU Time (Seconds):    51.52

 Processors:  2
 Elapsed Time (Seconds):    26.28
 CPU Time in User Mode (Seconds):    51.80
 CPU Time in Kernel Mode (Seconds):     0.69
 Total CPU Time (Seconds):    52.48
 




 17 Posts in Topic:
gfortran produces huge executables
hermantobin@[EMAIL PROTEC  2008-04-26 10:28:07 
Re: gfortran produces huge executables
"Anony" <inv  2008-04-26 20:34:59 
Re: gfortran produces huge executables
Terence <tbwright@[EMA  2008-04-26 18:54:02 
Re: gfortran produces huge executables
"FX" <couder  2008-04-27 18:33:04 
Re: gfortran produces huge executables
hermantobin@[EMAIL PROTEC  2008-04-27 19:08:41 
Re: gfortran produces huge executables
glen herrmannsfeldt <g  2008-04-27 18:40:15 
Re: gfortran produces huge executables
nospam@[EMAIL PROTECTED]   2008-04-28 19:59:30 
Re: gfortran produces huge executables
hermantobin@[EMAIL PROTEC  2008-04-27 19:09:23 
Re: gfortran produces huge executables
hermantobin@[EMAIL PROTEC  2008-04-27 19:47:26 
Re: gfortran produces huge executables
glen herrmannsfeldt <g  2008-04-27 21:30:27 
Re: gfortran produces huge executables
hermantobin@[EMAIL PROTEC  2008-04-27 20:16:47 
Re: gfortran produces huge executables
hermantobin@[EMAIL PROTEC  2008-04-27 20:33:15 
Re: gfortran produces huge executables
Walter Spector <w6ws_x  2008-04-27 21:37:44 
Re: gfortran produces huge executables
Charles Coldwell <cold  2008-04-28 11:42:48 
Re: gfortran produces huge executables
e p chandler <epc8@[EM  2008-04-29 08:10:32 
Re: gfortran produces huge executables
"Anony" <no-  2008-05-02 14:04:46 
Re: gfortran produces huge executables
Terence <tbwright@[EMA  2008-04-29 15:17:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 3:24:33 CDT 2008.