Path: utzoo!attcan!uunet!wa3wbu!john From: john@wa3wbu.UUCP (John Gayman) Newsgroups: comp.unix.microport Subject: Re: floating point under Microport Summary: It works here Message-ID: <712@wa3wbu.UUCP> Date: 11 Dec 88 20:37:16 GMT References: <612@cimcor.mn.org> Organization: WA3WBU, Marysville,PA Lines: 40 In article <612@cimcor.mn.org>, mike@cimcor.mn.org (Michael Grenier) writes: > OK, if this is a compiler bug, I might finally admit that > SCO is better (and it will hurt too!). > > #include > main() > { > float a; > a=2.0; > printf("%f\n",a); > } > > > Does this work on anyone's 286? I had previously reported that I compiled this code and the resultant code ran but just returned the $ prompt. Well unfortunately I compiled this as "test" and someone was kind enough to point out that I was unknowingly running the Unix "test" utility. (Can you say DUMB?) :-) In any event, recognizing the errors of my ways I have correctly named this file something obscure and re-ran the tests. Compiling the code both with SMALL and LARGE models yeilds the results "2.000000". No hangs, no core dumps. I am running 2.3U on an 8 Mhz machine and I do have a 80287 installed. I ran the compile with each model because someone had suggested that the problem only turned up in the Large memory model. I don't know what to say, it works here. John -- John Gayman, WA3WBU | UUCP: uunet!wa3wbu!john 1869 Valley Rd. | ARPA: john@wa3wbu.uu.net Marysville, PA 17053 | Packet: WA3WBU @ AK3P