FLAG DESCRIPTIONS SUN C, C++ AND FORTRAN Forte[tm] Developer 6 update 2, and Forte[tm] Developer 7 Early Access 11/5/01 Compiler Flags Flag Description -D Set definition for preprocessor. -dalign Assume double-type data is double aligned. -dn Specify static binding. -e Accept extended (132 character) input source lines (FORTRAN). -fast This is a convenience option for selecting a set of optimizations for performance, and it chooses: o The -native best machine characteristics option (-xarch=native, -xchip=native, -xcache=native) o Optimization level: -xO5 o A set of inline expansion templates (-libmil) o The -fsimple=2 option o The -dalign option o The -xalias_level=basic option (C only) o The -xlibmopt option o The -xdepend option (FORTRAN only) o The -xprefetch option (FORTRAN only) o Options to turn off all trapping (-fns -ftrap=%none) -fixed Accept fixed-format input source files (FORTRAN). -fns Select non-standard floating point mode. This flag causes the nonstandard floating point mode to be enabled when a program begins execution. By default, the nonstandard floating point mode will not be enabled automatically. On some SPARC systems, the nonstandard floating point mode disables "gradual underflow", causing tiny results to be flushed to zero rather than producing subnormal numbers. It also causes subnormal operands to be silently replaced by zero. On those SPARC systems that do not support gradual underflow and subnormal numbers in hardware, use of this option can significantly improve the performance of some programs. Warning: When nonstandard mode is enabled, floating point arithmetic may produce results that do not con- form to the requirements of the IEEE 754 standard. See the Numerical Computation Guide for more information. -fsimple=0 Permits no simplifying assumptions. Preserves strict IEEE 754 conformance. -fsimple=1 With -fsimple=1, the optimizer can assume the following: o The IEEE 754 default rounding/trapping modes do not change after process initialization. o Computations producing no visible result other than potential floating-point exceptions may be deleted. o Computations with Infinity or NaNs as operands need not propagate NaNs to their results. For example, x*0 may be replaced by 0. o Computations do not depend on sign of zero. -fsimple=2 Permits aggressive floating point optimizations that may cause programs to produce different numeric results due to changes in rounding. Even with -fsimple=2, the optimizer still is not permitted to introduce a floating point exception in a program that otherwise produces none. -fsimple[=n] Allows the compiler to make simplifying assumptions concerning floating-point arithmetic. -ftrap=t Sets the IEEE 754 trapping mode in effect at startup. t is a comma-separated list that consists of one or more of the following: %all, %none, common, [no%]invalid, [no%]overflow, [no%]underflow, [no%]division, [no%]inexact. The default is -ftrap=%none. This option sets the IEEE 754 trapping modes that are established at program initialization. Processing is left-to-right. The common exceptions, by definition, are invalid, division by zero, and overflow. o %none, the default, turns off all trapping modes. Do not use this option for programs that depend on IEEE standard exception handling; you can get different numerical results, premature program termination, or unexpected SIGFPE signals. -libmil Use inline expansion templates for libm. -library=iostream Use "classic" (pre 1998 C++ standard) iostream library Prior to the C++ standard (1998), there was one iostream library, what is now often called "classic" iostreams. The C++ standard defines a different, but similar, iostream library, which we call "standard" iostreams. To get classic iostreams in standard (default) mode, you use the option "-library=iostream". -ll2amm Library containing chip specific memory routines. -lm Link with math library -lmopt This chooses the math library that is optimized for speed -lprism32 Library to enable ISM (4MB page) usage. -lsunperf Link with the Sun Performance Library (netlib and SIAM routines) -native Select native machine characteristics for optimization. -Qicache-chbab=1 Turn on optimization to reduce branch after branch penalty -Qoption Pass flags along to compiler phase: f90comp Fortran first pass iropt Global optimizer cg Code generator -Qoption cg See -Wc, below. -Qoption cg Control irregular loop prefetching. -Qlp=1-av=