From owner-freebsd-questions@FreeBSD.ORG Fri Dec 23 14:40:19 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3046216A41F for ; Fri, 23 Dec 2005 14:40:19 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 422D143D6B for ; Fri, 23 Dec 2005 14:40:09 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 26043 invoked from network); 23 Dec 2005 14:40:06 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 Dec 2005 14:40:06 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id CBCAC28425; Fri, 23 Dec 2005 09:40:03 -0500 (EST) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <20051222125729.08216ce5.kristian@struer.net> From: Lowell Gilbert Date: 23 Dec 2005 09:40:03 -0500 In-Reply-To: <20051222125729.08216ce5.kristian@struer.net> Message-ID: <44acer3mik.fsf@be-well.ilk.org> Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Cflags and other compiling questions. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 14:40:19 -0000 "Kristian M / Struer.Net / Drift" writes: > I'm kinda new to freebsd, i have been running Gentoo linux for a long time, and know you can optimize your programs if you compile them your self, i have already an portage collection, (witch i update with cvsup-without-gui) this works perfectly, but my question is, how can i optimize the programs? > > >From gentoo, i have Cflags and march values, example, -march can be set to pentium4 if this is the kind of cpu you have, and then the programs will be compiled with optimizations for this kind of cpu. I actually dont know for sure if this helps (performance, stability, anything) but it would be nice to know. > > Maybe someone can point me to some homepage or guide but it have to be simple as i dont have much time to do everything the right way, by reading all the welldocumentated stuff out there (although it would properly be for the best). If you don't have much time to learn about it, then don't bother with anything at all; the possible gains will generally be too small to make much difference anyway.