Safe (but quick) GCC settings on a PC64 with 5.3?
Kirk Strauser
kirk at strauser.com
Wed Dec 15 11:32:48 PST 2004
On Monday 13 December 2004 14:53, David O'Brien wrote:
> I would use "-O2 -fno-strict-aliasing" otherwise there can be problems
> with ports.
Thanks for the tip. Would that apply to world and kernel as well? I tried
building the OpenSSL library without "-fno-strict-aliasing" and got a few
type-punning warnings, but it seemed to run correctly.
The GCC manual says that flag disables some optimizations. Using "openssl
speed" as a rough benchmark didn't show a statistically significant
difference between using it or not; is anyone aware of any circumstances
where using it needlessly would invoke a significant penalty?
By the way, my initial benchmark showed about a 50% speed increase in
OpenSSL by using "-O2" instead of "-O". Assuming everything continues to
work correctly, I'm very pleased about how this is turning out.
--
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-alpha/attachments/20041215/cc071ba0/attachment.bin
More information about the freebsd-alpha
mailing list