List of Examples
| Table of Contents | List of Figures | List of Examples | List of Tables |
- Example 1-1. Compiling and Linking a Multiple-File Program
- Example 1-2. Compiling and Linking a DSO
- Example 1-3. Program That Uses a Module
- Example 1-4. Program That Lists Command Arguments
- Example 1-5. Subroutine With Large Local Variable Space
- Example 1-6. Function Taking a Large Argument
- Example 2-1. Displaying a Message on Allocation Failure
- Example 2-2. Test of RANDOM_NUMBER
- Example 3-1. Example Subroutine Call
- Example 3-2. Example Function Call
- Example 3-3. Example Fortran Subroutine With COMPLEX Parameters
- Example 3-4. C Declaration and Call With COMPLEX Parameters
- Example 3-5. Example Fortran Subroutine With String Parameters
- Example 3-6. C Program that Passes String Parameters
- Example 3-7. C Program That Passes Different String Lengths
- Example 3-8. Fortran Function Returning COMPLEX(8)
- Example 3-9. C Program That Receives COMPLEX Return Value
- Example 3-10. Fortran Function Returning CHARACTER(16)
- Example 3-11. C Program That Receives CHARACTER(16) Return
- Example 3-12. C Function Written to be Called from Fortran
- Example 3-13. Fortran Program to Call a C Function
- Example 3-14. Common Block Usage in Fortran and C
- Example 3-15. Fortran Program Sharing an Array in Common with C
- Example 3-16. C Subroutine to Modify a Common Array
- Example 3-17. Fortran Call Using %VAL
- Example 3-18. C Function Using varargs
- Example 3-19. C Code to Retrieve Hidden Parameters
- Example 3-20. Source File for Use With extcentry
- Example 4-1. Skeleton of a Loop Containing an Invariant IF
- Example 4-2. Skeleton of Code With Invariant IF Floated Out
- Example 4-3. Code Fragment With Summation
- Example 4-4. Code Fragment Distributed
- Example 4-5. Code Fragment Transformed with -roundoff=2
- Example 4-6. Code Fragment With REAL Induction Variable
- Example 4-7. Transformed Loop With REAL Induction Variable
- Example 5-1. Skeleton of Nested Loops
- Example 6-1. Using Invariant-IF Directives
- Example 6-2. Using Directives to Control Inlining
- Example 6-3. Loop Containing Only Forward Dependence
- Example 6-4. Loop Containing Forward and Assumed Dependence
- Example 6-5. Asserting a Relationship
- Example 6-6. Loop with Dependences Denied
- Example 6-7. Asserting Nonequivalence
- Example 6-8. Result of Asserting Nonequivalence
- Example 6-9. Two Kinds of Argument Aliasing
- Example 6-10. Asserting Array Bounds Safety
- Example 6-11. Result of Asserting Array Bounds Safety
- Example 6-12. Code Using Intrinsic Equivalent
- Example 6-13. IF-to-Intrinsic Conversion
- Example 7-1. Simple Parallel Loop
- Example 7-2. Simple Parallel Loop With LOCAL, SHARE
- Example 7-3. Parallel Loop With LOCAL and Function Call
- Example 7-4. Parallel Loop With LASTLOCAL
- Example 7-5. Use of “C$” Conditional Code
- Example 7-6. Loop Using Random Numbers
- Example 7-7. Loop With Data Independence
- Example 7-8. Loop With Stride-1 Dependence
- Example 7-9. Loop With Stride-2 Dependence
- Example 7-10. Loop With Apparent Dependence
- Example 7-11. Loop With Inconsequential Dependence
- Example 7-12. Loop With Local Variable Use
- Example 7-13. Loop With Dependence
- Example 7-14. Loop With Exit Branch
- Example 7-15. Loop With Local Array Use
- Example 7-16. Loop With Dependence
- Example 7-17. Loop With Dependence Removed
- Example 7-18. Loop With Indirect Indexing
- Example 7-19. Loop With Dependency Split to Other Loop
- Example 7-20. Loop With Recurrence Relation
- Example 7-21. Loop With a Sum Reduction
- Example 7-22. Loop With Partitioned Sum Reduction
- Example 7-23. Loop With Automatic Partitioned Reduction
- Example 7-24. Loop With Four Reductions
- Example 7-25. Reduction Nested in Outer Loop
- Example 7-26. Parallel Outer Loop With Inner Reduction
- Example 7-27. Nested Loops
- Example 7-28. Nested Loops, Interchanged
- Example 7-29. Loop Not Worth Parallelizing
- Example 7-30. Loop With Conditional Parallelization
- Example 7-31. Nested Loops, Interchanged
- Example 7-32. Nested Loops Interchanged for Cache Performance
- Example 7-33. Vector Reduction
- Example 7-34. Parallelized Vector Reduction
- Example 7-35. Vector Reduction With Parallel Inner Loop
- Example 7-36. Loop With Iterations of Different Lengths
- Example 7-37. Loop With Balanced Iterations
- Example 7-38. Subroutine With Parallel Loop
- Example 7-39. Generated “pregion” Subroutine
- Example 7-40. Subroutine With Parallel Region
- Example 7-41. Simple PDO Structure
- Example 7-42. Parallel Sections
- Example 8-1. Erroneous C$DOACROSS
- Example 8-2. Corrected use of C$DOACROSS
- Example B-1. Syntax of Numeric Precision
- Example B-2. Program to Convert Asterisk Notation
- Example B-3. Conversion Allowing for Mixed-Case Keywords
- Example B-4. Conversion of $-Form Literal to “Z” Form
- Example B-5. Syntax for Precision of Floating-Point Literals
- Example B-6. Equivalent Syntax for Quad-Precision Literals
- Example B-7. Conversion of Q-Exponent Literal to Suffix-16
- Example B-8. Hollerith Literal Use
- Example B-9. Fortran 77 Program Using a Structure
- Example B-10. Fortran 90 Program Using a Structure
- Example B-11. Fortran 77 UNION Declaration
- Example B-12. Skeleton of a Module of Trigonometric Functions
- Example B-13. Substitute for EXIT