UITS

UA Home UITS Home UA Search

Fortran on the U-System

Modified: May 22 2002
  • PATH to executables and man pages are set in system files
  • Make sure that fortran executables are in your path:
      set path=($path /opt/SUNWspro/bin)
  • Man pages for fortran are located in /opt/SUNWspro/man so make sure that your MANPATH variable points to this place.
  • The command to compile Fortran 77 programs is f77. Some of the most used options strongly suggested are:
    1. -C Check array references for out of range subscripts.
    2. -fast To optimize the code
    3. -O, -O2, -O3, -O4, -O5 Options to optimize codes. Be carefull with -O5 because it may slow the execution of the whole code.
    4. -g compile for debugging
    5. -xtarget=ultra... specify the system for optimization
  • Here is an example:
      f77 -xtarget=ultra -xarch=v9 -fns -xO4 -fsimple=2 -stackvar -c agtrnx.f

    In this example the options used are:

    • -xtarget indicates that the system being used is an Ultra
    • -xarch specifies the target architecture instruction set.
    • v9 indicates that the code is compiled using 64 bit architecture.
    • -fns uses the Sparc nonstandard floating-point mode rather thann the standard.
    • -xO4 Level of optimization. This option is suggested for all codes. Same as -O4
    • -fsimple select floating-point optimization preference
    • -stackvar Force all local variables to be allocated on the stack.
    • -c do not link or produce an executable
Please do not use any of the parallel options.

Take a look at the f77 and f95/f90 manual pages.

No parallel processing will be allowed on the U-System machines. If your application needs parallel processing please use Super .


U-System Information
UA Homepage      UITS Homepage
The Center for Computing & Information Technology (UITS)
UITS Knowledgebase
Telephone: 621-HELP
Email: Consult@listserv.arizona.edu

Website maintained by:
UITS Computing Services