Re: default CFLAGS

2009-01-24 Thread Gonzalo Nemmi
On Saturday 24 January 2009 5:07:57 pm Saifi Khan wrote: > On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken wrote: > > RW wrote: > >> On Sat, 24 Jan 2009 15:27:02 +0100 > >> > >> Morgan Wesström wrote: > >>> The section "options enabled" will list them all. I usually only add > >>> "-march=native"

Re: default CFLAGS

2009-01-24 Thread Morgan Wesström
RW wrote: > On Sat, 24 Jan 2009 21:13:00 +0100 > Morgan Wesström wrote: > >> gcc 4.2 and later will figure out the correct -march and -mtune for >> you automatically if you use CPUTYPE=native. > > The point I was making before, is that CPUTYPE isn't just passed > transparently to gcc, it's used

Re: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 21:13:00 +0100 Morgan Wesström wrote: > gcc 4.2 and later will figure out the correct -march and -mtune for > you automatically if you use CPUTYPE=native. The point I was making before, is that CPUTYPE isn't just passed transparently to gcc, it's used for setting other varia

Re: default CFLAGS

2009-01-24 Thread Morgan Wesström
Saifi Khan wrote: > On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken wrote: >> RW wrote: >>> On Sat, 24 Jan 2009 15:27:02 +0100 >>> Morgan Wesström wrote: >>> >>> The section "options enabled" will list them all. I usually only add "-march=native" to my CFLAGS to enable a few more CPU s

Re: default CFLAGS

2009-01-24 Thread Saifi Khan
On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken wrote: > RW wrote: >> On Sat, 24 Jan 2009 15:27:02 +0100 >> Morgan Wesström wrote: >> >> >>> The section "options enabled" will list them all. I usually only add >>> "-march=native" to my CFLAGS to enable a few more CPU specific >>> optimizations. >>

Re: default CFLAGS

2009-01-24 Thread Pojken Purken
RW wrote: > On Sat, 24 Jan 2009 15:27:02 +0100 > Morgan Wesström wrote: > > >> The section "options enabled" will list them all. I usually only add >> "-march=native" to my CFLAGS to enable a few more CPU specific >> optimizations. > > If you set CPUTYPE, -march is set to match, so setting -mar

Re: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 15:27:02 +0100 Morgan Wesström wrote: > The section "options enabled" will list them all. I usually only add > "-march=native" to my CFLAGS to enable a few more CPU specific > optimizations. If you set CPUTYPE, -march is set to match, so setting -march=native should be redun

Re: default CFLAGS

2009-01-24 Thread Morgan Wesström
n >> /etc/make.conf) >> So are these default settings for a generc x86 based system ? > > Yes, if you are using i386. > > Most CPUs have the same default CFLAGS, it's the value of CPUTYPE > that's passed to the compiler that determines processor optimi

Re: default CFLAGS

2009-01-24 Thread RW
ault settings for a generc x86 based system ? Yes, if you are using i386. Most CPUs have the same default CFLAGS, it's the value of CPUTYPE that's passed to the compiler that determines processor optimizations. ___ freebsd-questions@freebsd.org

Re: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 17:35:38 + (GMT) Saifi Khan wrote: > Hi all: > > What is the default CFLAGS if *no* CFLAGS has been specified in > /etc/make.conf ? > > As an example, let us consider a FreeBSD 7.1 system running on a > Intel Celeron M. It depends on what you'

default CFLAGS

2009-01-24 Thread Saifi Khan
Hi all: What is the default CFLAGS if *no* CFLAGS has been specified in /etc/make.conf ? As an example, let us consider a FreeBSD 7.1 system running on a Intel Celeron M. thanks Saifi. ___ freebsd-questions@freebsd.org mailing list http

Re: DEFAULT CFLAGS SETTING

2007-03-09 Thread Christian Walther
On 09/03/07, RW <[EMAIL PROTECTED]> wrote: On Thu, 08 Mar 2007 21:04:50 -0800 Garrett Cooper <[EMAIL PROTECTED]> wrote: > Christian Walther wrote: > > On 08/03/07, White Hat <[EMAIL PROTECTED]> wrote: [...] > > CFLAGS can be defined in /etc/make.conf > > My CFLAGS is set to -O2 -pipe. Note th

Re: DEFAULT CFLAGS SETTING

2007-03-09 Thread RW
On Thu, 08 Mar 2007 21:04:50 -0800 Garrett Cooper <[EMAIL PROTECTED]> wrote: > Christian Walther wrote: > > On 08/03/07, White Hat <[EMAIL PROTECTED]> wrote: > >> What is the default CFLAGS setting in FBSD-6.2 and would it > >> improve performance any

Re: DEFAULT CFLAGS SETTING

2007-03-09 Thread RW
On Fri, 09 Mar 2007 07:53:00 -0500 Gerard <[EMAIL PROTECTED]> wrote: > On Thursday March 08, 2007 at 07:45:06 (PM) Christian Walther wrote: > > > > CFLAGS can be defined in /etc/make.conf > > My CFLAGS is set to -O2 -pipe. You might want to take a look at > > CPUTYPE, too. This can be set to mat

Re: DEFAULT CFLAGS SETTING

2007-03-09 Thread Gerard
On Thursday March 08, 2007 at 07:45:06 (PM) Christian Walther wrote: > CFLAGS can be defined in /etc/make.conf > My CFLAGS is set to -O2 -pipe. You might want to take a look at > CPUTYPE, too. This can be set to match your CPU type, which means > you'll get the most of it. > You can find some exa

Re: DEFAULT CFLAGS SETTING

2007-03-08 Thread Garrett Cooper
Christian Walther wrote: On 08/03/07, White Hat <[EMAIL PROTECTED]> wrote: What is the default CFLAGS setting in FBSD-6.2 and would it improve performance any to set CFLAGS=Os as opposed to the default setting? CFLAGS can be defined in /etc/make.conf My CFLAGS is set to -O2 -pip

Re: DEFAULT CFLAGS SETTING

2007-03-08 Thread Christian Walther
On 08/03/07, White Hat <[EMAIL PROTECTED]> wrote: What is the default CFLAGS setting in FBSD-6.2 and would it improve performance any to set CFLAGS=Os as opposed to the default setting? CFLAGS can be defined in /etc/make.conf My CFLAGS is set to -O2 -pipe. You might want to take a l

DEFAULT CFLAGS SETTING

2007-03-08 Thread White Hat
What is the default CFLAGS setting in FBSD-6.2 and would it improve performance any to set CFLAGS=Os as opposed to the default setting? -- White Hat [EMAIL PROTECTED] "Not only is life a bItch, it has puppies." Adrienne