XL Fortran for AIX 8.1

User's Guide


Part 3. Appendixes


Appendix A. Sample Fortran Programs

Partial Table-of-Contents

  • Example 1 - XL Fortran Source File
  • Execution Results
  • Example 2 - Valid C Routine Source File
  • Example 3 - Valid Fortran SMP Source File
  • Example 4 - Invalid Fortran SMP Source File
  • Programming Examples Using the Pthreads Library Module
  • The following programs are provided as coding examples for XL Fortran. A number of these samples illustrate various aspects of SMP programming that may be new to many users. If you are new to SMP programming, you should examine these samples to gain a better understanding of the SMP coding style. Every attempt has been made to internally document key areas of the source to assist you in this effort.

    You can compile and execute the first program to verify that the compiler is installed correctly and your user ID is set up to execute Fortran programs.


    [ Top of Page | Previous Page | Next Page | Table of Contents | Index ]