r3 - 23 Mar 2006 - 08:17:05 - DavidWarrenYou are here: TWiki >  CompSup Web > ComputerSupportDocuments > CompilerInformation
Life was easy back when we used DEC and Sun equipment. The C compiler was cc the FORTRAN compiler was f77 or f90 and all the options were rather obvious. -fast was highly optimized, -g inserted debugging info, etc.

Now we have added Linux.

The C compilers we have are:

  • gcc aka. cc and c++
  • icc - the Intel C compiler.

The FORTRAN compilers are:

  • g77 - really bad
  • g90 - not much better
  • i2c aka. f77 - even worse
  • pgf77 and pgf90 - the Portland Group compiler
  • ifort - the Intel compiler

ifort is the recomended compiler. We have a limited licence for the Portland Group compiler, and we do not have the newest version. Also the intel compiler tends to be the fastest of them.

Useful options for these are:
ifort -

  • -Idir add dir to include search path
  • -O2 enable optimizations
  • -axW generate code specialized Intel Pentium 4 and compatible Intel processors with Streaming SIMD
  • -reentrancy [threaded, async] threaded or recursive code
  • -parallel enable the auto-parallelizer
  • Debugging and special options
    • -g produce symbolic debug information
    • -print-multi-lib print information about libraries being used
    • -qp set up for profiling with gprof tool
    • -mp maintain floating point precision (slows down, but fixes some sensitive code)

icc - same as ifort

pgf77 (and pgf90) -

  • This needs filling in

gcc -

  • This needs filling in

r3 - 23 Mar 2006 - 08:17:05 - DavidWarren

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback