Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 13:28:38 -0500
From:      "C J Michaels" <cjm2@earthling.net>
To:        <wsanborn@uswest.net>, <questions@FreeBSD.ORG>
Subject:   RE: Any major downside to using "-O3" when compiling?
Message-ID:  <NDBBILKDCLLECBCLPMBIKEANCAAA.cjm2@earthling.net>
In-Reply-To: <38C1422B.16524.3085E0@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
I put -O3 in my /etc/make.conf probably 4 months ago, and have done several
make world's with it and have had no problems.  I am still err'ing on the
side of caution with the kernel and have left that on -O2.

As for performance increasing, I can't really say since I've never run any
benchmarks between the 2.

Also, from what I have read, anything over -O3 (e.g. -O4) is broken, do a
search through the mailing list archives for more info.

-Chris

-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of
wsanborn@uswest.net
Sent: Saturday, March 04, 2000 8:05 PM
To: questions@FreeBSD.ORG
Subject: Any major downside to using "-O3" when compiling?


	After poking around the cc and gcc manpages, I noticed the "-O" option for
optimization.
I've now compiled a few items with that option and have noticed that:

1- It takes longer to compile (general resource hog. noticibly longer
with -O3).
2- The binaries are larger (kernel size increased about %7)

	Is there any other downside?


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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