Gentoo Archives: gentoo-amd64

From: Barry.SCHWARTZ@×××××××××××××.org
To: gentoo-amd64@l.g.o
Subject: Optimization flags (was Re: [gentoo-amd64] Re: First Impressions)
Date: Thu, 28 Sep 2006 20:26:48
Message-Id: 20060928202410.GB10077@crud.crud.mn.org
In Reply to: [gentoo-amd64] Re: First Impressions by Duncan <1i5t5.duncan@cox.net>
1 Duncan <1i5t5.duncan@×××.net> skribis:
2 > Well stated. One could compare -O2 to stable.
3
4 Which to me is a little weird, because only -O is something you can
5 count on from compiler to compiler. :)
6
7 There is one optimization level that, from my viewpoint, guarantees
8 bad code, and that’s no optimization, which breaks tail recursion. Of
9 course I realize that tail recursion optimization isn’t guaranteed by
10 C standards, but maybe tail recursion optimization should be a default
11 that you have to turn off explicitly. :)
12
13 --
14 Barry.SCHWARTZ at chemoelectric.org http://chemoelectric.org
15 Free stuff / Senpagaj varoj: http://crudfactory.com (PDF)
16 'Democracies don't war; democracies are peaceful countries.' - Bush
17 (http://www.whitehouse.gov/news/releases/2005/12/20051219-2.html)