From owner-freebsd-hackers Fri Oct 10 13:19:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA05444 for hackers-outgoing; Fri, 10 Oct 1997 13:19:27 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from earth.mat.net (root@earth.mat.net [206.246.122.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA05439 for ; Fri, 10 Oct 1997 13:19:20 -0700 (PDT) (envelope-from chuckr@glue.umd.edu) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by earth.mat.net (8.8.7/8.6.12) with SMTP id QAA02867; Fri, 10 Oct 1997 16:13:58 -0400 (EDT) Date: Fri, 10 Oct 1997 15:14:00 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@localhost To: Glenn Johnson cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Floating point exceptions In-Reply-To: <199710101907.OAA09470@millenia.srrc.usda.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 10 Oct 1997, Glenn Johnson wrote: > I hope this is the appropriate list. > > I've got a calculation intensive (simulation) application that I run that > aborts with a Floating Point Exception error under FreeBSD -current. I can run > this application just fine under Linux, but of course I want to run it under > FreeBSD (so I can replace Linux). My understanding is that FreeBSD traps > FPE's. Is there a way for me to change the FreeBSD source code to mask FPE's > rather than trap them? Better yet, can I do that for a specific application at > compile time? Your assistance is greatly appreciated. It makes a signal occur, SIGFPE. All you have to do is decide what you want to do when the exception occurs. You could ignore it, or set up a function to catch it, and maybe print an error, set a flag, I don't know how your software works. > -- > Glenn Johnson > USDA-ARS-SRRC Phone: (504) 286-4252 > 1100 Robert E. Lee Boulevard FAX: (504) 286-4217 > New Orleans, LA 70124 e-mail: gjohnson@nola.srrc.usda.gov > > > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------