Loose-Info.com

Last Update 2020/10/29


TOP - 各種テスト - gcc - --target-helpオプション

--target-helpオプション

実行環境
GCC-8.2.0
GNU C Library 2.28
GNU Binutils 2.31.1

・実行例中の太字表記部分は、コマンドなどの入力された文字列を示します。
・「」や「...」の着色省略表記は、 実際のソースコードや出力内容などを省略加工した部分を示します。

動作テスト


実行結果
$ gcc --target-help 各ツールのターゲットを特定したコマンドラインオプションの説明を標準出力に出力 The following options are target specific: <--- 以下、コンパイラに関するオプション -m128bit-long-double sizeof(long double) is 16. -m16 Generate 16bit i386 code. -m32 Generate 32bit i386 code. -m3dnow Support 3DNow! built-in functions. -m3dnowa Support Athlon 3Dnow! built-in functions. -m64 Generate 64bit x86-64 code. -mx32 Generate 32bit x86-64 code. -mxop Support XOP built-in functions and code generation. -mxsave Support XSAVE and XRSTOR instructions. -mxsavec Support XSAVEC instructions. -mxsaveopt Support XSAVEOPT instruction. -mxsaves Support XSAVES and XRSTORS instructions. Known assembler dialects (for use with the -masm= option): att intel Known ABIs (for use with the -mabi= option): ms sysv Known code models (for use with the -mcmodel= option): 32 kernel large medium small Valid arguments to -mfpmath=: 387 387+sse 387,sse both sse sse+387 sse,387 Known indirect branch choices (for use with the -mindirect-branch=/-mfunction-return= options): keep thunk thunk-extern thunk-inline Known data alignment choices (for use with the -malign-data= option): abi cacheline compat Known vectorization library ABIs (for use with the -mveclibabi= option): acml svml Known address mode (for use with the -maddress-mode= option): long short Known preferred register vector length (to use with the -mprefer-vector-width= option) 128 256 512 none Known stack protector guard (for use with the -mstack-protector-guard= option): global tls Valid arguments to -mstringop-strategy=: byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop vector_loop Known TLS dialects (for use with the -mtls-dialect= option): gnu gnu2 Assembler options <--- 以下、アセンブラに関するオプション ================= Use "-Wa,OPTION" to pass "OPTION" to the assembler. -Q ignored -V print assembler version number -k ignored -n Do not optimize code alignment -q quieten some warnings -s ignored -mshared disable branch optimization for shared code -momit-lock-prefix=[no|yes] strip all lock prefixes -mfence-as-lock-add=[no|yes] encode lfence, mfence and sfence as lock addl $0x0, (%{re}sp) -mrelax-relocations=[no|yes] generate relax relocations -mamd64 accept only AMD64 ISA -mintel64 accept only Intel64 ISA Linker options <--- 以下、リンカに関するオプション ============== Use "-Wl,OPTION" to pass "OPTION" to the linker. elf_x86_64: -z noextern-protected-data Do not treat protected data symbol as external -z dynamic-undefined-weak Make undefined weak symbols dynamic -z nodynamic-undefined-weak Do not make undefined weak symbols dynamic -z noreloc-overflow Disable relocation overflow check -z call-nop=PADDING Use PADDING as 1-byte NOP for branch -z ibtplt Generate IBT-enabled PLT entries -z nodynamic-undefined-weak Do not make undefined weak symbols dynamic -z call-nop=PADDING Use PADDING as 1-byte NOP for branch elf_k1om: -z noextern-protected-data Do not treat protected data symbol as external -z dynamic-undefined-weak Make undefined weak symbols dynamic -z nodynamic-undefined-weak Do not make undefined weak symbols dynamic -z call-nop=PADDING Use PADDING as 1-byte NOP for branch $