Last Update 2020/10/20
--help=optimizers
指定されたクラスおよび修飾子に合致するコマンドラインオプションの説明を、標準出力へ出力
指定クラス optimizers : サポートする最適化オプションを表示
指定クラス optimizers : サポートする最適化オプションを表示
テスト概要
コマンド「gcc --help=optimizers」の実行
実行環境
GCC-8.2.0
GNU C Library 2.28
GNU Binutils 2.31.1
GNU C Library 2.28
GNU Binutils 2.31.1
コード例・出力内容中の表記
・実行例中の太字表記部分は、コマンドなどの入力された文字列を示します。
・「︙」や「...」の着色省略表記は、 実際のソースコードや出力内容などを省略加工した部分を示します。
・「︙」や「...」の着色省略表記は、 実際のソースコードや出力内容などを省略加工した部分を示します。
実行結果
$ gcc --help=optimizers サポートする最適化オプションを表示
The following options control optimizations:
-O<number> Set optimization level to <number>.
-Ofast Optimize for speed disregarding exact standards compliance.
-Og Optimize for debugging experience rather than speed or size.
-Os Optimize for space rather than speed.
-faggressive-loop-optimizations Aggressively optimize loops using language constraints.
-falign-functions Align the start of functions.
︙
-fvar-tracking-uninit Perform variable tracking and also tag variables that are uninitialized.
-fvariable-expansion-in-unroller Apply variable expansion when loops are unrolled.
Specifies the cost model for vectorization. -fvect-cost-model=[unlimited|dynamic|cheap] Specifies the cost model for vectorization.
-fvpt Use expression value profiles in optimizations.
-fweb Construct webs and split unrelated uses of single variable.
-fwrapv Assume signed arithmetic overflow wraps around.
-fwrapv-pointer Assume pointer overflow wraps around.
$