How much difference does 'gcc -O<x>' make?

Kris Kennaway kris at obsecurity.org
Fri Mar 12 04:46:21 PST 2004


On Fri, Mar 12, 2004 at 02:07:26AM -0800, Donald Burr wrote:
> A question occurred to me today.  How much difference does 'gcc -O<x>' 
> make in the speed of my system?
> 
> I notice some ports that claim to not work properly if compiled with 
> -O<x> (the one that comes to mind right away is XFree86 4.x, but I've 
> seen others) and I am thinking of just turning OFF -O<x> option in my 
> /etc/make.conf.  I'm just wondering how much of an impact this will 
> have on system performance.

I think you're misunderstanding: -O is almost universally fine, it's
higher settings (-O2, etc) that are recommended against.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040312/457c69b1/attachment.bin


More information about the freebsd-questions mailing list