🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.intel
Article #1769

Re: Moving floating point values around

#1769
From: Sean Fagan
Date: Wed, 24 Aug 1988 17:33
16 lines
1205 bytes
In article <4256@lynx.UUCP> m5@lynx.UUCP (Mike McNally) writes:
>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?

If I remember correctly, both our '286 and '386 compilers will generate MOVS
instructions to push FP-values on the stack;  they might (I haven't checked)
even generate them for non-stack-pushes.  Yep, just dropped into a subshell
and checked:  neither compiler will uses FLD and FSTP if possible (what if
you don't have an FPU?!  Horror!).


-- 
Sean Eric Fagan  |  "An Amdahl mainframe is lots faster than a Vax 750."
seanf@sco.UUCP   |      -- Charles Simmons (chuck@amdahl.uts.amdahl.com)
(408) 458-1422   | Any opinions expressed are my own, not my employers'.
Technical Details
Message-ID: <1121@scolex>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!sco!seanf
References: <4256@lynx.UUCP> <13148@mimsy.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!sco!seanf
From: seanf@sco.COM (Sean Fagan)
Newsgroups: comp.sys.intel,comp.lang.c,comp.arch
Subject: Re: Moving floating point values around
Message-ID: <1121@scolex>
Date: 24 Aug 88 17:33:13 GMT
References: <4256@lynx.UUCP> <13148@mimsy.UUCP>
Reply-To: seanf@sco.COM (Sean Fagan)
Distribution: na
Organization: The Santa Cruz Operation, Inc.
Lines: 16