📄 00000006.htm
字号:
IEEE or ANSI rules/specifications for math func- <BR> tions. <BR> <BR> The following options control specific optimizations. The <BR> `-O2' option turns on all of these optimizations except <BR> `-funroll-loops' and `-funroll-all-loops'. <BR> <BR> The `-O' option usually turns on the `-fthread-jumps' and <BR> `-fdelayed-branch' options, but specific machines may <BR> change the default optimizations. <BR> <BR> You can use the following flags in the rare cases when <BR> "fine-tuning" of optimizations to be performed is desired. <BR> <BR> -fstrength-reduce <BR> Perform the optimizations of loop strength reduc- <BR> tion and elimination of iteration variables. <BR> <BR> -fthread-jumps <BR> Perform optimizations where we check to see if a <BR> jump branches to a location where another compari- <BR> son subsumed by the first is found. If so, the <BR> first branch is redirected to either the destina- <BR> tion of the second branch or a point immediately <BR> following it, depending on whether the condition is <BR> known to be true or false. <BR> <BR> -funroll-loops <BR> Perform the optimization of loop unrolling. This <BR> is only done for loops whose number of iterations <BR> can be determined at compile time or run time. <BR> <BR> -funroll-all-loops <BR> Perform the optimization of loop unrolling. This <BR> is done for all loops. This usually makes programs <BR> run more slowly. <BR> <BR> -fcse-follow-jumps <BR> In common subexpression elimination, scan through <BR> jump instructions when the target of the jump is <BR> not reached by any other path. For example, when <BR> CSE encounters an if statement with an else clause, <BR> CSE will follow the jump when the condition tested <BR> is false. <BR> <BR> -fcse-skip-blocks <BR> This is similar to `-fcse-follow-jumps', but causes <BR> CSE to follow jumps which conditionally skip over <BR> blocks. When CSE encounters a simple if statement <BR> with no else clause, `-fcse-skip-blocks' causes CSE <BR> to follow the jump around the body of the if. <BR> <BR> -frerun-cse-after-loop <BR> Re-run common subexpression elimination after loop <BR> optimizations has been performed. <BR> <BR> -felide-constructors <BR> Elide constructors when this seems plausible (C++ <BR> only). With this flag, GNU C++ initializes y di- <BR> rectly from the call to foo without going through a <BR> temporary in the following code: <BR> <BR> A foo (); A y = foo (); <BR> <BR> Without this option, GNU C++ first initializes y by <BR> calling the appropriate constructor for type A; <BR> then assigns the result of foo to a temporary; and, <BR> finally, replaces the initial value of `y' with the <BR> temporary. <BR> <BR> The default behavior (`-fno-elide-constructors') is <BR> specified by the draft ANSI C++ standard. If your <BR> program's constructors have side effects, using <BR> `-felide-constructors' can make your program act <BR> differently, since some constructor calls may be <BR> omitted. <BR> <BR> -fexpensive-optimizations <BR> Perform a number of minor optimizations that are <BR> relatively expensive. <BR> <BR> -fdelayed-branch <BR> If supported for the target machine, attempt to re- <BR> order instructions to exploit instruction slots <BR> available after delayed branch instructions. <BR> <BR> -fschedule-insns <BR> If supported for the target machine, attempt to re- <BR> order instructions to eliminate execution stalls <BR> due to required data being unavailable. This helps <BR> machines that have slow floating point or memory <BR> load instructions by allowing other instructions to <BR> be issued until the result of the load or floating <BR> point instruction is required. <BR> <BR> -fschedule-insns2 <BR> Similar to `-fschedule-insns', but requests an ad- <BR> ditional pass of instruction scheduling after reg- <BR> ister allocation has been done. This is especially <BR> useful on machines with a relatively small number <BR> of registers and where memory load instructions <BR> take more than one cycle. <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -