12.07.2015 Views

PGI User's Guide

PGI User's Guide

PGI User's Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1. Getting Startedfilename.Cindicates a C++ source file that can contain macros and preprocessor directives (to be preprocessed).filename.iindicates a preprocessed C or C++ source file.filename.ccindicates a C++ source file that can contain macros and preprocessor directives (to be preprocessed).filename.sindicates an assembly-language file.filename.o(Linux and Mac OS X) indicates an object file.filename.obj(Windows systems only) indicates an object file.filename.a(Linux and Mac OS X) indicates a library of object files.filename.lib(Windows systems only) indicates a statically-linked library of object files or an import library.filename.so(Linux only) indicates a library of shared object files.filename.dll(Windows systems only) indicates a dynamically-linked library.filename.dylib(Mac OS X systems only) indicates a dynamically-linked library.The driver passes files with .s extensions to the assembler and files with .o, .obj, .so, .dll, .a and .libextensions to the linker. Input files with unrecognized extensions, or no extension, are also passed to thelinker.Files with a .F (Capital F) or .FOR suffix are first preprocessed by the Fortran compilers and the output ispassed to the compilation phase. The Fortran preprocessor functions like cpp for C/C++ programs, but isbuilt in to the Fortran compilers rather than implemented through an invocation of cpp. This design ensuresconsistency in the preprocessing step regardless of the type or revision of operating system under which you’recompiling.Any input files not needed for a particular phase of processing are not processed. For example, if onthe command line you specify an assembly-language file (filename.s) and the –S option to stop beforethe assembly phase, the compiler takes no action on the assembly language file. Processing stops aftercompilation and the assembler does not run. In this scenario, the compilation must have been completed ina previous pass which created the .s file. For a complete description of the –S option, refer to the followingsection:“Output Files”.In addition to specifying primary input files on the command line, code within other files can be compiledas part of include files using the INCLUDE statement in a Fortran source file or the preprocessor#include directive in Fortran source files that use a .F extension or C and C++ source files.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!