qinfeng.zhang | 2 Jun 2003 04:42
Picon

whethe can I specify the suffix of assembler file?

When compiling a C source file, and terminate the compiler with option '-S',
for example :
      gcc -S foo.c
then the assembler file name is foo.s. If I want to use another suffix instead ".t",
what can I do? Is it useful to modify the CC1_SPEC and ASM_SPEC? I have tried, but
no effect.
Regards

Qinfeng Zhang

Optical Storage & Digital TV
Philips Research East Asia - Shanghai
38F Tower 1 office building
218 Tian Mu Xi Rd.
Shanghai, P.R.China 200070

Tel: (86-21) 6354 1088 Ext. 5356
Fax: (86-21) 6354 4954
Email: qinfeng.zhang <at> philips.com

LLeweLLyn Reese | 2 Jun 2003 05:46

Re: whethe can I specify the suffix of assembler file?

qinfeng.zhang <at> philips.com writes:

> When compiling a C source file, and terminate the compiler with option '-S',
> for example :
>       gcc -S foo.c

gcc -S foo.c -o foo.t

-o is for specifying the name of the output file, see:
gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Overall-Options.html#Overall%20Options

and search for '-o'.

> then the assembler file name is foo.s. If I want to use another suffix instead ".t",
> what can I do? Is it useful to modify the CC1_SPEC and ASM_SPEC?

It isn't necessary. I don't know if it is useful.

> I have tried, but
> no effect.
[snip]


Gmane