Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
To: sbnaran@uiuc.edu
Subject: Re: how to compile with "-fsoft-float"
Date: 1999/09/02	[thread overview]
Message-ID: <37CE2609.1E3D3181@ife.ee.ethz.ch> (raw)
In-Reply-To: slrn7sr0q2.58f.sbnaran@goofy.ceg.uiuc.edu

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        |
 \_________________________________________________________________/



  reply	other threads:[~1999-09-02  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-01  4:00 how to compile with "-fsoft-float" siemel naran
1999-09-02  4:00 ` Alex Rhomberg [this message]
1999-09-02  4:00   ` siemel naran
1999-09-08  4:00     ` Emile van bergen
1999-09-09  4:00       ` Jeff Sturm
1999-09-02  4:00   ` siemel naran
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox