From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,57ce877817441ebc X-Google-Attributes: gid109fba,public X-Google-Thread: fee84,57ce877817441ebc X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,57ce877817441ebc X-Google-Attributes: gidf678f,public X-Google-Thread: 1014db,57ce877817441ebc X-Google-Attributes: gid1014db,public From: dsr@mail.lns.cornell.edu (Daniel S. Riley) Subject: Re: DU4.0 cxx|cc MINFLOAT and MINDOUBLE wrong? Date: 1997/02/11 Message-ID: #1/1 X-Deja-AN: 218047174 references: <33005FC7.41C6@ife.ee.ethz.ch> to: Armin Wittmann followup-to: comp.unix.osf.osf1 organization: Wilson Lab, Cornell U., Ithaca, NY 14853 newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc,comp.lang.c++,comp.lang.c [mailed and posted, followup-to set] Armin Wittmann writes: > Machine: DEC alpha 3000 300/300L AXP > OS: Digital Unix 4.0 [...] > I was surprised to see that the values of > MINFLOAT and MINDOUBLE > are defined less then the compiler can work with! Try 'cxx -ieee'. The default compiler settings produce code that is not IEEE conformant, since getting all the fiddly bits right creates a lot of extra work for the processor which slows down benchmarks. The '-ieee' flag should fix it under 4.0--for earlier versions you need some different set of flags, and I'm not even sure you can get the right behavior out of cxx under older OS versions. (Tested under DUX 4.0B with cxx 5.4-006.) -- Dan Riley dsr@mail.lns.cornell.edu Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr) http://www.lns.cornell.edu/~dsr/ "Distance means nothing/To me" -Kate Bush