This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is "-march=atom" deprecated?


On 04/10/2016 00:40, waltdnes wrote:

> On Mon, Oct 03, 2016 at 11:06:13AM +0200, Mason wrote
> 
>> It does look like 'atom' and 'bonnell' are similar.
>>
>> I don't have 4.9 handy, try this:
>>
>> echo | gcc -xc -S -fverbose-asm -march=atom -o v1.s -
>> echo | gcc -xc -S -fverbose-asm -march=bonnell -o v2.s -
>> diff -u v1.s v2.s
>>
>> Maybe they are identical?
> 
>   Thanks for the idea.  I had to do it a bit differently to get it to
> work.  I took a simple "Hello World" program, and ran...

For my personal education, can you tell me in what way the commands
above failed to work? (You did copy the trailing dash, right?)

> gcc -xc -S -fverbose-asm -march=atom -o v1.s hello.c
> gcc -xc -S -fverbose-asm -march=bonnell -o v2.s hello.c

For the record, -xc means "the input is C source code".
It is only required when compiling stdin, not when providing a .c file
(gcc has a trivial heuristic for .c files)

Regards.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]