Download PGI User's Guide

Transcript
Chapter 15. Command-Line Options Reference
The following list provides the syntax for each–M<pgflag> option that controls code generation. Each option
has a description and, if appropriate, any related options.
–Mlfs
(32-bit Linux only) link in libraries that enable file I/O to files larger than 2GB (Large File Support).
–Mnostartup
instructs the linker not to link in the standard startup routine that contains the entry point (_start) for the
program.
Note
If you use the –Mnostartup option and do not supply an entry point, the linker issues the
following error message: Warning: cannot find entry symbol _start
–M[no]smartalloc[=huge|h[uge:<n>|hugebss]
adds a call to the routine mallopt in the main routine. This option supports large TLBs on Linux and
Windows. This option must be used to compile the main routine to enable optimized malloc routines.
The option arguments can be any of the following:
huge
Link in the huge page runtime library.
Enables large 2-megabyte pages to be allocated. The effect is to reduce the number of TLB entries
required to execute a program. This option is most effective on Barcelona and Core 2 systems; older
architectures do not have enough TLB entries for this option to be beneficial. By itself, the huge
suboption tries to allocate as many huge pages as required.
huge:<n>
Link the huge page runtime library and allocate n huge pages. Use this suboption to limit the number
of huge pages allocated to n.
You can also limit the pages allocated by using the environment variable PGI_HUGE_PAGES.
hugebss
(64-bit only) Puts the BSS section in huge pages; attempts to put a program's uninitialized data
section into huge pages.
Note
This flag dynamically links the library libhugetlbfs_pgi even if –Bstatic is used.
Tip
To be effective, this switch must be specified when compiling the file containing the Fortran, C, or
C++ main program.
–M[no]stddef
instructs the compiler not to predefine any macros to the preprocessor when compiling a C program.
–Mnostdinc
instructs the compiler to not search the standard location for include files.
233