Is "-march=atom" deprecated?
waltdnes@waltdnes.org
waltdnes@waltdnes.org
Tue Oct 4 14:14:00 GMT 2016
On Tue, Oct 04, 2016 at 10:50:45AM +0200, Mason wrote
> 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?)
Sorry, I goofed up somewhere, probably the trailing dash. I tried
again, and this time it worked. I got the following...
[i660][waltdnes][~] echo | gcc -xc -S -fverbose-asm -march=atom -o v1.s -
[i660][waltdnes][~] echo | gcc -xc -S -fverbose-asm -march=bonnell -o v2.s -
[i660][waltdnes][~] diff -u v1.s v2.s
--- v1.s 2016-10-04 10:08:05.484318802 -0400
+++ v2.s 2016-10-04 10:08:23.980319927 -0400
@@ -2,7 +2,7 @@
# GNU C (Gentoo 4.9.3 p1.5, pie-0.6.4) version 4.9.3
# (x86_64-pc-linux-gnu)
# compiled by GNU C version 4.9.3, GMP version 6.0.0, MPFR version 3.1.3-p4, MPC version 1.0.2
# GGC heuristics: --param ggc-min-expand=100 --param
# ggc-min-heapsize=131072
-# options passed: - -march=atom -auxbase-strip v1.s -fverbose-asm
+# options passed: - -march=bonnell -auxbase-strip v2.s -fverbose-asm
# -fstack-protector-strong
# options enabled: -faggressive-loop-optimizations
# -fasynchronous-unwind-tables -fauto-inc-dec -fcommon
--
Walter Dnes <waltdnes@waltdnes.org>
More information about the Gcc-help
mailing list