From owner-freebsd-questions Mon Apr 8 16:20:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by hub.freebsd.org (Postfix) with SMTP id 3D8D437B419 for ; Mon, 8 Apr 2002 16:20:26 -0700 (PDT) Received: (qmail 29037 invoked by uid 0); 8 Apr 2002 23:20:24 -0000 Received: from pd950a5ce.dip.t-dialin.net (HELO gmx.net) (217.80.165.206) by mail.gmx.net (mp011-rz3) with SMTP; 8 Apr 2002 23:20:24 -0000 Message-ID: <3CB225B7.4090405@gmx.net> Date: Tue, 09 Apr 2002 01:20:23 +0200 From: Michael Nottebrock User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:0.9.9) Gecko/20020310 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Leftwich Cc: FreeBSD Questions , FreeBSD Ports Subject: Re: gcc -O -mcpu=i686 -howtooverride=486? References: <20020408140315.J8518-100000@66-75-1-142.san.rr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Leftwich wrote: > My question is the following-- It seems like my /etc/make.conf file (which > I think I either mv'ed or cp'ed from /usr/local/etc/make.conf) is getting > ignored as far as the "CPUTYPE=i686" flag goes. How do I remedy this? > > I have been editing the various "Makefile" files, overriding the usual "-O > -m486" with "-O -mcpu=i686" (what is -march by the way?) but my extended > question is the following-- Does the -mcpu flag that mean [paraphrase-ically] > "use i686 instructions for the compile process" or does it mean "compile > some binaries with i686 smartness built into them?" Know-whuht-eye-mean? CPUTYPE= sets -march, not mcpu. From the gcc documentation (i386-specific): ----snip -mcpu=cpu type Assume the defaults for the machine type cpu type when scheduling instructions. The choices for cpu type are: `i386' `i486' `i586' `i686' `pentium' `pentiumpro' `k6' While picking a specific cpu type will schedule things appropriately for that particular chip, the compiler will not generate any code that does not run on the i386 without the `-march=cpu type' option being used. `i586' is equivalent to `pentium' and `i686' is equivalent to `pentiumpro'. `k6' is the AMD chip as opposed to the Intel ones. -march=cpu type Generate instructions for the machine type cpu type. The choices for cpu type are the same as for `-mcpu'. Moreover, specifying `-march=cpu type' implies `-mcpu=cpu type' ----snip -- Michael Nottebrock To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message