Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Fortran 90 Compiler for HP-UX: Fortran 90 Programmer's Guide

Chapter 1 An overview of HP Fortran 90

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

When you use the f90 command to compile a Fortran 90 program, the command invokes a number of components—and not just the compiler—to create the executable. By default, f90 invokes different components to parse the source files for syntax errors, produce an intermediate code, optimize the intermediate code, produce object code, search a set of library files for any additional object code that may be required, and link all of the object code into an executable file that you run without further processing.

For example, consider a program that consists of three source files: x.f90, y.f90, and z.f90. The following command line will process the source files and, if they are syntactically correct, produce an executable file with the default name a.out:

$ f90
x.f90 y.f90 z.f90

After compilation is complete, you can execute the program by invoking the name of the executable, as follows:

$ a.out

However, it is likely that you'll want to control what components act on your program and what they do to it. For example, you may want to give the executable a name other than a.out or to link in other libraries than the default ones. The HP Fortran 90 compiler supports a variety of compile-line options that enable you to control the compilation process. This chapter provides an overview of the process and of the options that enable you to control the different components invoked by the f90 command.

NOTE: To get a summary listing of all f90 options, refer to the f90(1) man page or use the command, as shown here:
$ f90 +usage

For a full description of the options, refer to the HP Fortran 90 Programmer's Reference.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.