Download PGI User's Guide
Transcript
C and C++ Compiler Options Option Description –byteswapio (Fortran only) Swap bytes from big-endian to little-endian or vice versa on input/output of unformatted data –fpic (Linux only) Generate position-independent code. –fPIC (Linux only) Equivalent to –fpic. –G (Linux only) Passed to the linker. Instructs the linker to produce a shared object file. –g77libs (Linux only) Allow object files generated by g77 to be linked into PGI main programs. –i2, –i4 and –i8 –i2: Treat INTEGER variables as 2 bytes. –i4: Treat INTEGER variables as 4 bytes. –i8: Treat INTEGER and LOGICAL variables as 8 bytes and use 64bits for INTEGER*8 operations. –K<flag> Requests special compilation semantics with regard to conformance to IEEE 754. –M<pgflag> Selects variations for code generation and optimization. –mcmodel=medium (–tp k8-64 and –tp p7-64 targets only) Generate code which supports the medium memory model in the linux86-64 environment. –shared (Linux only) Passed to the linker. Instructs the linker to generate a shared object file. Implies –fpic. –soname Pass the soname option and its argument to the linker. –tp <target> [,target...] Specify the type(s) of the target processor(s). C and C++ Compiler Options There are a large number of compiler options specific to the PGCC and PGC++ compilers, especially PGC+ +. The next table lists several of these options, but is not exhaustive. For a complete list of available options, including an exhaustive list of PGC++ options, use the –help command-line option. For further detail on a given option, use –help and specify the option explicitly. The majority of these options are related to building your program or application. Table 14.5. C and C++ -specific Compiler Options 164 Option Description –A (pgcpp only) Accept proposed ANSI C++, issuing errors for non-conforming code. –a (pgcpp only) Accept proposed ANSI C++, issuing warnings for non-conforming code.
Related documents
PGI User's Guide Release 9.0 - Faculty of Science HPC Site
PGI User's Guide
PGI User's Guide
PGI User's Guide - The University of Sheffield High Performance and
PGI Compiler User`s Guide
PGI Compiler Reference Manual
PGI User's Guide
PGI 6.1 User`s Guide - University of Alberta
PGI 5 User's Guide
PGI 5 User's Guide - The Portland Group
PVF Reference Guide
Intel(R) C++ Compiler for Linux* Systems User's Guide