*BSD News Article 2922


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!sgiblab!sdd.hp.com!swrinde!news.dell.com!james
From: james@raid.dell.com (James Van Artsdalen)
Newsgroups: comp.unix.bsd
Subject: Re: 386BSD: Anyone using gcc-2.x on 0.1?
Message-ID: <1992Jul31.230128.22915@raid.dell.com>
Date: 31 Jul 92 23:01:28 GMT
References: <1992Jul29.155631.21213@thyme.jpl.nasa.gov> <1992Jul29.172744.1118@ms.uky.edu> <peter.712488976@hilly>
Reply-To: james@raid.cactus.org (James Van Artsdalen)
Organization: Dell Computer Co
Lines: 21

In <peter.712488976@hilly>, peter@micromuse.co.uk (Peter Galbavy) wrote:

> Changes to kernel code (from memory, I am at work - BSD system at home):
> 
> 1   Change in ../../i386/*/npx.c the lines it comlains about to use "m"
>     instead of "g" - you will see what I mean when you look at it.

Use "X" instead of "m".  "m" will fail in some cases.

> *but* I have rebuilt the kernel using gcc-2.2.2 and it is *bigger* binary
> wise than the one built using 1.39, and of course doesn't work :-(

The failure problem is in machdep.o.  The size problem is probably due
to large constant multiplies (gcc will use a sequence of shifts and
adds instead of a multiply opcode), loop alignment on 32 bit boundaries,
and poor handling of bit tests in some cases.  I'll try to fix the
latter.
-- 
-- 
James R. Van Artsdalen          james@bigtex.cactus.org   "Live Free or Die"
Dell Computer Co    9505 Arboretum Blvd Austin TX 78759         512-338-8789