Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!mimsy!aplcen!wb3ffv!howardl From: howardl@wb3ffv.UUCP (Howard Leadmon ) Newsgroups: comp.unix.microport Subject: Re: HELP! Floating Point Problems Summary: I tried the test.. Message-ID: <712@wb3ffv.UUCP> Date: 19 Jul 88 18:13:31 GMT References: <2424@inco.UUCP> Organization: Fast Computer Service, Inc. - Middle River, MD Lines: 47 In article <2424@inco.UUCP>, mack@inco.UUCP (Dave Mack) writes: > > I have a problem with C compiler floating point operations under > Microport Unix 386 Version 2.2. Any code that contains floating point > operations blows away both cc and lint. Well first let me state that I have a WYSE-3216 80386 w/80287 machine that is running Microport V/386-2.2U for the OS, but DO NOT have DOS/Merge installed on the system. I also have 6meg RAM and 190meg disk, but I am sure this has no effect.. > I was told that Version 2.2 does not > include either 80387 support or 80387 emulation (i.e. no floating point > support); however, the next release scheduled about August 1 will > include these features in addition to the Green Hills C compiler. That is interesting news, I as I informed it had floating point support, but did not support the 1167 (no big deal to me). I am very glad to hear that they plan to start using the Green Hills C Compilier, as the benchmarks run on the standard compilier vs the Green Hills compiler, show the Green Hill compilier to be much more efficient (I'll take it...) > A typical code segment that causes "comp" to run forever on "cc -c test.c" > follows: > > /* test.c */ > > main() > { > float x,y,z; > z = 2.0; > x = 3.0; > y = x * z; > } > /* end test.c */ > Well I ran the test both with and without optimization, and it compiled without a hitch. I also executed the compiled program, and as is should of done it reported nothing and exited back to my prompt... ------------------------------------------------------------------------------- UUCP/SMTP : howardl@wb3ffv | Howard D. Leadmon PACKET : WB3FFV @ W3ITM | Fast Computer Service, Inc. IP Address: 44.60.0.1 | P.O. Box 171 Telephone : (301)-335-2206 | Chase, MD 21027-0171