*BSD News Article 88184


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!uunet!in1.uu.net!204.191.213.61!ott.istar!istar.net!gateway.qnx.com!not-for-mail
From: doug@qnx.com (Doug Santry)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD slower than Linux ?
Date: 3 Feb 1997 09:18:48 -0500
Organization: QNX Software Systems
Lines: 26
Message-ID: <5d4s48$gru@qnx.com>
References: <dkleinh.854654600@isotope.ps.uci.edu> <5crh6q$44j@synge.maths.tcd.ie> <87iv4ezj3c.fsf@mirriwinni.cse.rmit.edu.au> <5cta6n$eio@helena.MT.net>
NNTP-Posting-Host: qnx.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34944

In article <5cta6n$eio@helena.MT.net>,
Nate Williams <nate@see.my.signature> wrote:
>In article <87iv4ezj3c.fsf@mirriwinni.cse.rmit.edu.au>,
>Phillip Musumeci <phillip@rmit.edu.au> wrote:
>>>>>>> "David" == David Malone <dwmalone@maths.tcd.ie> writes:
>
>>    >> I'm compiling my program with the stock g77 that comes with each OS.
>>    >> I know Linux is using gcc-2.7.2 and FreeBSD is using gcc-2.6.3 and
>>    >> so I went back to my old Slackware 2.3, which has gcc-2.6.3 and this
>>    >> was still twice as fast.  Anyone have any ideas why ?
>>
>>    David> One thing that it might be is that the FreeBSD maths libraries
>>    David> don't have FPU code in them the way they are distributed, if you
>>    David> recompile them with HAVE_FPU=yes in /etc/make.conf this might
>>    David> make quite a difference for some things.
>>
>>Even though this could hurt people without FPUs, maybe we really should
>>have the standard system optimised for those with FPUs.
>
>Umm, no.  You can't emulate hardware floating point calls, which is what

Why not?  If no FPU is present, then the instructions will cause a trap
which can be caught.  You know which instruction caused the trap, so just
emulate it in software.

DJS