-
-O0,-O1,-O2,-O3,-Ofast,-Os,-Oz,-Og,-O,-O4 - Specify which optimization level to use:
-O0Means “no optimization”: this level compiles the fastest and generates the most debuggable code.
-O1Somewhere between-O0and-O2.
-O2Moderate level of optimization which enables most optimizations.
-O3Like-O2, except that it enables optimizations that take longer to perform or that may generate larger code (in an attempt to make the program run faster).
-OfastEnables all the optimizations from-O3along with other aggressive optimizations that may violate strict compliance with language standards.
-OsLike-O2with extra optimizations to reduce code size.
-OzLike-Os(and thus-O2), but reduces code size further.
-OgLike-O1. In future versions, this option might disable different optimizations in order to improve debuggability.
-OEquivalent to-O2.
-O4and higher
Currently equivalent to-O3
Monday, 13 February 2017
Code Generation Options
Labels:
clang/llvm
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment