Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!network.ucsd.edu!usc!wupost!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds) Newsgroups: comp.unix.bsd Subject: Re: Jolitz 386BSD-0.1 -- floating point perform Message-ID: <1992Jul23.010341.22292@klaava.Helsinki.FI> Date: 23 Jul 92 01:03:41 GMT References: <l6qc51INN1gu@neuro.usc.edu> <1992Jul22.152854.27730@nrao.edu> Organization: University of Helsinki Lines: 22 In article <1992Jul22.152854.27730@nrao.edu> cflatter@nrao.edu writes: > [ deleted ] Is anyone working on porting gcc 2.x to 386BSD? Come to >think of it, is there anything that needs to be done to do this (wouldn't >the BSD/386 configuration work)? One thing that migth be a problem with porting gcc-2.2.2 to 386BSD is that gcc-2.2.2 has added the 'fsqrt' command to the list of floating point instructions that gcc can create code for - and I don't know if the 386bsd math emulator emulates that particular command yet. I've already written the code (it's in linux), but it wasn't available back when people ported the emulator to 386bsd. If 386bsd 0.1 does indeed use the linux math-emulator (I haven't even checked: maybe they found something better) it shouldn't be difficult to add the fsqrt support in there (the linux math-emulator may not be fast or complete, but it's simple and relatively modular). The code can be gotten from any linux site: while the linux source is generally copylefted, the math-code can be used freely for 386bsd (but /only/ for 386bsd - if you want to use it for something else and cannot accept the copyleft conditions, contact me). Linus