From owner-freebsd-alpha@FreeBSD.ORG Tue Mar 8 03:50:15 2005 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F01E616A4CE for ; Tue, 8 Mar 2005 03:50:14 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA4C143D46 for ; Tue, 8 Mar 2005 03:50:13 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j283o7Hw017051 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 8 Mar 2005 04:50:09 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j283muVK017908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Mar 2005 04:48:57 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j283muUv045468; Tue, 8 Mar 2005 04:48:56 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j283msN8045467; Tue, 8 Mar 2005 04:48:54 +0100 (CET) (envelope-from ticso) Date: Tue, 8 Mar 2005 04:48:53 +0100 From: Bernd Walter To: Kirk Strauser Message-ID: <20050308034852.GX22167@cicely12.cicely.de> References: <200503072107.13313.kirk@strauser.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503072107.13313.kirk@strauser.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: freebsd-alpha@freebsd.org Subject: Re: Question about cc flags in buildkernel X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 03:50:15 -0000 On Mon, Mar 07, 2005 at 09:07:01PM -0600, Kirk Strauser wrote: > I'm building a kernel on a Cabriolet (EV45/275 MHz), and am a little curious > about something in the make output. My make.conf has these: > > CPUTYPE=ev45 > CFLAGS= -O3 -pipe -fno-strict-aliasing -mieee > COPTFLAGS= -O3 -pipe -fno-strict-aliasing -mieee > > and I'm seeing lines like: > > cc -c -O2 -pipe -fno-strict-aliasing -mieee -fno-strict-aliasing -mcpu=ev45 -mieee -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding /usr/src/sys/alpha/alpha/genassym.c > > The part that's confusing me is the "-Wa,-mev6". What exactly does that > refer to? I couldn't find it in the "as" info page, but it looks at first > glance like it's targetting an architecture that I don't have. Am I > misreading that? If not, why did it select that? Could this be why my > EV45/275 seems to run like a Pentium 90? This teaches the assembler to understand ev6 instructions. It's done to allow building e.g. ev5 code, but still allow ev6 instructions in platform specific inline assembler for mixed target kernels. There is no speed influence by this option. How did you compare speed? If it's just from compile time, you shouldn't forget that gcc-3 is much slower than the older gcc and that compiling for alpha is a much harder job than compiling for i386. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de