From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,3f358dde76e48ef0 X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-east.rr.com!news-feed-01.rdc-kc.rr.com!news.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!tornado.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail From: DiskMan Subject: Re: compiling, optimization User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.os.linux.alpha References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Sun, 16 Apr 2006 22:30:59 GMT NNTP-Posting-Host: 72.135.0.85 X-Complaints-To: abuse@rr.com X-Trace: tornado.rdc-kc.rr.com 1145226659 72.135.0.85 (Sun, 16 Apr 2006 17:30:59 CDT) NNTP-Posting-Date: Sun, 16 Apr 2006 17:30:59 CDT Organization: Road Runner High Speed Online http://www.rr.com Xref: g2news1.google.com comp.os.linux.alpha:285 On Mon, 10 Apr 2006 16:11:13 +0200, Levente wrote: > Hello > > I have a question on the topic of config files and CFLAGS... > ...it can be set on various places: > 1. the softwares own source directory with > "make configure" or poking by hand > 2. in some files in /etc, such as /etc/make.conf... > 3. globally with export CFLAGS=... > > Now, I want to define CFLAGS so that it has higher authority than > anything, kind of like the word of GOD... > - Is there a way to define CFLAGS and other compiler related > flags so they override anything in any file? > - Does the globally defined (env var) CFALGS have higher authority > than the various config files? > - What manual covers this? > > wbr > /levente Like other poster stated, thats how you can change you CFLAGS setting.. you can also export them as well. When you get to know your CFLAGS, you can take optimization to the next level... compiling everything specifically for your processor ;-) CFLAGS="-O3 -finline -fstrict-aliasing -fomit-frame-pointer -mtune= -mieee -pipe" ./configure The "-mieee" turns on precision math, with out it some programs will either crash or generate a floating point error... Most run just fine without it thought. The "-finline" for on lining of functions and the like "-fstrict-aliasing" generates faster code as well [similar to -ansi_alias with Compaq C" You can also specify the Compiler and PreProcessor: *for GCC CC=gcc CXX=g++ CPP=cpp *for Compaq C CC=ccc CXX=cxx Will L G