Xref: utzoo comp.sys.intel:502 comp.lang.c:12065 comp.arch:6149 Path: 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 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'.