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

Donald Burr dburr at borg-cube.com
Fri Mar 12 02:07:25 PST 2004


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.

FYI, my box is a Via C3 @ 800MHz with 128 MB RAM, and it basically 
lives its life as an e-mail and Web server and gateway for my home 
network.  (in other words it doesn't do any computing intensive stuff 
like sequencing DNA or searching for aliens. :) )

TIA for your advice/opinions.
Donald
-- 
Donald Burr of Borg <dburr at borg-cube.com> | FreeBSD: The Power to Serve!
Website: http://www.borg-cube.com/        | http://www.freebsd.org/
PO Box 91212, Santa Barbara CA 93190-1212 \-----------------------------
Tel: (805)563-0672       ICQ# 16997506      Present Day... Present Time!



More information about the freebsd-questions mailing list