🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.intel
Article #1765

Moving floating point values around

#1765
From: Mike McNally
Date: Mon, 22 Aug 1988 17:45
17 lines
1226 bytes
How naughty would it be for a compiler for the 386/387 (or 286/287 for that
matter) to move floating-point values with 386 MOV instructions instead
of FLD and FSTP?  It seems to me that as long as some degree of numerical
robustness (whatever that means) is maintained, the compiler should be
able to do this.  After all, C (for example) doesn't guarantee anything about
internal side-effects which take place during the transfer of a floating
point value from one place to another.  This is quite a savings in the case
of the 386/387 (about 60 clock cycles).

Do most compilers do this already, and if so should I assume that I am
working in a technological backwater?


-- 
Mike McNally of Lynx Real-Time Systems

uucp: lynx!m5 (maybe pyramid!voder!lynx!m5 if lynx is unknown)
Technical Details
Message-ID: <4256@lynx.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!lynx!m5

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!lynx!m5
From: m5@lynx.UUCP (Mike McNally)
Newsgroups: comp.sys.intel,comp.lang.c,comp.arch
Subject: Moving floating point values around
Message-ID: <4256@lynx.UUCP>
Date: 22 Aug 88 17:45:50 GMT
Reply-To: m5@lynx.UUCP (Mike McNally)
Distribution: na
Organization: Lynx Real-Time Systems Inc, Campbell CA
Lines: 16