Specifications

Chapter 3 Performance-Centric Compiler Switches 19
Compiler Usage Guidelines for AMD64 Platforms
32035 Rev. 3.22 November 2007
Chapter 3 Performance-Centric Compiler
Switches
This chapter describes the various switches that can be useful for individual compilers. For each
compiler, a list of generally recommended performance switches is provided. This list is further
augmented by other switches that could prove beneficial for certain code bases.
3.1 PGI Compilers (32- and 64-Bit) for Linux
®
and
Microsoft
®
Windows
®
The Portland Group (PGI) high performance C, C++, and Fortran compilers (PGCC, PGC++,
PGHPF, PGF95, PGF77) and program development tools (PGDBG debugger and PGPROF profiler)
optimize code for 32-bit and 64-bit AMD64 and EM64T processor-based Linux
®
and Microsoft
®
Windows
®
platforms. PGI Edition 7 provides local and global optimizations, loop optimization
(unrolling, vectorization, and parallelization), inter-procedural analysis and optimization, and
function inlining on AMD64 single-, dual- and quad-core systems. PGI Tools support parallel
programming features like auto-parallelization, OS native multithreading, OpenMP multithreading
models, and MPI programming for AMD64 architecture-based multicore shared-memory and
distributed-memory cluster-based systems. The current version (as of September 2007) is PGI
Release 7.1. All the options described in this section apply to PGI Release 7.1.
3.1.1 Invocation Commands
The following commands invoke specific compilers and tools:
pgcc invokes the PGI C compiler.
pgcpp (pgCC) invokes the PGI C++ compiler.
pgf77 invokes the PGI Fortran 77 compiler.
pgf95 invokes the PGI Fortran 90/95 compiler.
Pghpf invokes the PGI High-performance Fortran Compiler
pgdbg invokes the PGDBG source code debugger
pgfrof invokes the PGPROF performance profiler
Note: Invoking PGI compilers within BASH on Windows platforms is case insensitive, therefore
using pgCC will invoke the PGI C compiler (i.e. pgCC is equivalent to pgcc).