Subject: Re: optimising for sparc v8
To: Christopher Sean Hilton <chris@vindaloo.com>
From: David Brownlee <abs@NetBSD.org>
List: port-sparc
Date: 05/18/2005 14:49:39
On Wed, 18 May 2005, Christopher Sean Hilton wrote:
> On Wed, 2005-05-18 at 11:52 +0000, Bruce O'Neel wrote:
>> Hi,
>>
>> Thanks, that might be worth a shot for me as well.
>>
>> BTW, build release takes 24 hrs on a 200mhz 604e, but, damn
>> those intel boxes, only 12 hrs on a 266mhz p6. Both with local
>> disks...
>>
>> It taks a bit longer on my 100mhz micro-sparc :-(
>>
>> cheers
>>
>> bruce
>>
>>
>
> Just as an experiment I made a cross build environment for sparc on my
> Intel P4M notebook and it build the entire sparc system binaries in 70
> minutes but I cannot figure out how to control the CPUFLAGS in a cross
> compiling environment. Does anyone know how to do that?
This is what I have in my mk.conf
.ifdef BSD_PKG_MK
# pkgsrc only options
.else # BSD_PKG_MK
COPTS?= -pipe ${DEFCOPTS}
# For cross-compiling
. if ${MACHINE} == sparc
COPTS+=-mcpu=supersparc
. elif ${MACHINE} == sparc64
COPTS+=-mcpu=ultrasparc
. elif ${MACHINE} == alpha
COPTS+=-mcpu=21164a
. elif ${MACHINE} == i386
COPTS+=-march=pentium2 -mcpu=pentium3
. endif
.endif # BSD_PKG_MK
--
David/absolute -- www.NetBSD.org: No hype required --