Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Time and Run time 1

Status
Not open for further replies.

javijerome

Programmer
Jun 26, 2010
25
PH
Hi! anyone knows how fast does a fortran95 compiler compile a source code? how about its run time?
 
Which compiler/platform are you thinking of? I can build a program on a 120MHz 32Mb machine and it could take 2 minutes. Put it on a Core I7 and it probably takes 5 seconds. Fast is just a relative term.

Run time - again, which platform and what sort of application? MPIs perform better with MPI architectures. Single threaded - depends on compiler/platform/application.
 
the fortran95 compilers distributed by silverfrost.com.
do you think it's faster compared to C programming language?
 
C and Fortran are about the same since they both generate native code. I don't know if Silverfrost make a C compiler. By faster, do you mean faster in running time or faster in writing time? Writing time depends on your familiarity with the language.

If you want to compare compilers from the same base, try gcc and gfortran. If you want something fast, go for the Intel compilers - they also support MPI.

Coding wise they both have their drawbacks. Not everyone is 100% happy with the language they use. It also depends on your coding style: you do not need an OO language to write OO code.


 

here's the compiler from silverfrost, it has its own ide just like visual basic 2008 and can be included into the visual studio shell.

i just noticed that this compiler is slow compared to C (Turbo C, as we like to call it). i haven't tried g-fortran yet that was recommended by gerritgroot and mikrom.
 
Were you running Silverfrost from Plato and C from a DOS prompt? For a proper test, you need to run both in the same environment.

I'm still using a version from 5 years back. That is slow compared to PowerStation, IVF, lahey, g95 or gfortran. But then again, I seldom run it outside Plato so it may be Plato that is slowing things down. I don't know about the current version.

Powerstation is MS last version of Fortran 90(produced in the 90s). You may be able to get it if you are on an MSDN subscription. That's where I found it. A bit quirky in that it open only works with 8.3 file and directory names.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top