From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <9801131325.AA14716@sauron.zk3.dec.com> Date: Tue, 13 Jan 98 08:25:54 -0500 From: Jerry Feldman Subject: Re: floating exception In-Reply-To: Alessandro Mirone wrote: > > I get "floating exceptions" (and core dump) from some programs > that gave NaN when compiled on a PC-Linux. > Could someone give me somt tips about how > to deal with it? a solution of course would be checking the > values before doing mathematical operations. > But apart that could I use some compilation switch to get NaN > and avoid crashing the programs? > Any help is appreciated > bye You must compile with ieee. The Alpha chips generate an exception on several conditions such as NaN, Infinities, denormals. These must be handled in an exception handler. Use the -mieee when compiling with GCC. +--------------------------------------------------------------------+ Jerry Feldman Digital Unix Development Environment Digital Equipment Corp. (work)gaf@zk3.dec.com (home)gaf@mediaone.net 110 Spitbrook Rd. Mailstop: ZKO3-2/W17 Nashua, NH 03062-9987 (603)884-2970, DTN:264-2970 +--------------------------------------------------------------------+ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com