Editing, Compiling, Linking, and Running XL Fortran Programs

Partial Table-of-Contents

  • Editing XL Fortran Source Files
  • Compiling XL Fortran Programs
  • Compiling Fortran 90 or Fortran 95 Programs
  • Compiling XL Fortran SMP Programs
  • POSIX pthreads API Support
  • Compilation Order for Fortran Programs
  • Canceling a Compilation
  • XL Fortran Input Files
  • XL Fortran Output Files
  • Scope and Precedence of Option Settings
  • Specifying Options on the Command Line
  • Specifying Options in the Source File
  • Passing Command-Line Options to the "ld" or "as" Commands
  • Displaying Information inside Binary Files (strings)
  • Compiling for Specific Architectures
  • Passing Fortran Files through the C Preprocessor
  • cpp Directives for XL Fortran Programs
  • Passing Options to the C Preprocessor
  • Avoiding Preprocessing Problems
  • Linking XL Fortran Programs
  • Compiling and Linking in Separate Steps
  • Passing Options to the ld Command
  • Dynamic and Static Linking
  • Avoiding Naming Conflicts during Linking
  • Running XL Fortran Programs
  • Canceling Execution
  • Compiling and Executing on Different Systems
  • Run-Time Libraries for POSIX Pthreads Support
  • Selecting the Language for Run-Time Messages
  • Setting Run-Time Options
  • The XLFRTEOPTS Environment Variable
  • The XLSMPOPTS Environment Variable
  • OpenMP Environment Variables
  • OMP_DYNAMIC Environment Variable
  • OMP_NESTED Environment Variable
  • OMP_NUM_THREADS Environment Variable
  • OMP_SCHEDULE Environment Variable
  • Other Environment Variables That Affect Run-Time Behavior
  • XL Fortran Run-Time Exceptions
  • Most Fortran program development consists of a repeating cycle of editing, compiling and linking (which is by default a single step), and running. If you encounter problems at some part of this cycle, you may need to refer to the sections that follow this one for help with optimizing, debugging, and so on.

    Prerequisite Information:

    1. Before you can use the compiler, all the required Linux settings (for example, certain environment variables and storage limits) must be correct for your user ID; for details, see Correct Settings for Environment Variables.
    2. To learn more about writing Fortran programs, refer to the XL Fortran Language Reference.
    IBM Copyright 2003