Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2007 19:53:37 -0700
From:      LI Xin <delphij@delphij.net>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        d@delphij.net, freebsd-arch@freebsd.org
Subject:   Re: Why we optimize by time by default for < -O2 case?
Message-ID:  <470AED31.60201@delphij.net>
In-Reply-To: <20071009122751.X54949@besplex.bde.org>
References:  <470ACEA1.3030309@delphij.net> <20071009122751.X54949@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig21800BF69FE11B6A0A24B616
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Bruce Evans wrote:
> On Mon, 8 Oct 2007, LI Xin wrote:
>=20
>> I wonder why we want to optimize by time by default and not by space b=
y
>> default for the system compiler, does the reasoning still hold true?
>=20
> -O means optimize for time if possible.
>=20
>> The commit log said:
>>
>>  Modified files:
>>    contrib/gcc          toplev.c
>>  Log:
>>  Clarify revision 1.14:
>>  Gcc 3.1's -O0 and -O1 actually optimized alignment for space, but we
>> feel
>>  it should optimize alignment for time like Gcc 2.95 used to.=20
>> Optimization
>>  for space should give 1-byte alignment on i386's, but doesn't quite.
>>
>>  Revision  Changes    Path
>>  1.15      +0 -0      src/contrib/gcc/toplev.c
>=20
> Without this change, -O pessimizes for time.

Does this affect all platforms or is it i386 only, on the latest GCC
version?

Cheers,
--=20
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!


--------------enig21800BF69FE11B6A0A24B616
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHCu0yOfuToMruuMARCqq6AJ9kgt+/seMxXRUvLOos4Q/N2aRIXQCeI0A7
DvXzq5qtLgwhZQx1iG5Bnl0=
=IXVY
-----END PGP SIGNATURE-----

--------------enig21800BF69FE11B6A0A24B616--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?470AED31.60201>