- 论坛徽章:
- 0
|
[GCC@localhost specs]$ gcc -dumpspecs > specs
[GCC@localhost specs]$ cat specs
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}
*asm_debug:
%{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}} %{fdebug-prefix-map=*:--debug-prefix-map %*}
*asm_final:
*asm_options:
%{--target-help:%:print-asm-header()} %a %Y %{c:%W{o*}%{!o* %w%b%O}}%{!c %d%w%u%O}
*invoke_as:
%{fcompare-debug=*|fdump-final-insns=*:%:compare-debug-dump-opt()} %{!S %|.s |
as %(asm_options) %|.s %A }
//省略后续输出
在gcc/gcc.c中有关于汇编处理的定义:
static const struct compiler default_compilers[] =
{
//..................
{".s", "@assembler", 0, 1, 0},
{"@assembler",
"%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 1, 0},
//.................
}
可以看出asm_debug,asm_options,asm_final都有使用,但是asm却没使用。
请问这个asm SPEC什么时候使用呢??
|
|