From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,2d60095dfc9873e5 X-Google-Attributes: gid111c93,public From: Alex Rhomberg Subject: Re: how to compile with "-fsoft-float" Date: 1999/09/02 Message-ID: <37CE2609.1E3D3181@ife.ee.ethz.ch>#1/1 X-Deja-AN: 520066841 Content-Transfer-Encoding: 7bit References: To: sbnaran@uiuc.edu Content-Type: text/plain; charset=us-ascii X-Trace: 2 Sep 1999 09:23:52 +0100, beethoven.ee.ethz.ch Organization: Electronics Lab, ETH Zurich, Switzerland MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha siemel naran wrote: > > I'd like to turn floating point exceptions off. > For example, +1.0/zero() should give +infinity. > > I tried > g++ --pedantic -msoft-float float.cc > but there are some link time errors Use the -miee flag: forrest:~% g++ -mieee float.cc forrest:~% ./a.out inf -- _________________________________________________________________ / \ | Alex Rhomberg Tel: +41 1 632 49 18 | | Institut fuer Elektronik Fax: +41 1 632 12 10 | | ETH Zuerich Zentrale: +41 1 632 11 11 | | Gloriastrasse 35 | | 8092 Zuerich email: rhomberg@ife.ee.ethz.ch | \_________________________________________________________________/