From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,770d09ab025f2ec9 X-Google-Attributes: gid111c93,public From: noe@physik.unizh.ch (Norbert Paschedag) Subject: Re: DU <--> Linux FP exceptions with DU binaries Date: 1999/01/19 Message-ID: <782j1i$3nc0@rzurs10.unizh.ch>#1/1 X-Deja-AN: 434491856 X-NNTP-Posting-Host: 130.60.68.60 References: <781meq$12mi@rzurs10.unizh.ch> <7829jk$33p@news3.newsguy.com> X-Trace: 19 Jan 1999 19:31:15 +0100, 130.60.68.60 Organization: University of Zurich Newsgroups: comp.os.linux.alpha In article <7829jk$33p@news3.newsguy.com>, Greg Lindahl wrote: >noe@physik.unizh.ch (Norbert Paschedag) writes: > >> Under Digital UNIX we can prevent these exceptions by using flags like '-fpe1' >> for compilation and the binaries will run happily. >> Under Linux, however, the exact same binaries still die with 'floating point >> exceptions'. >> Could anyone please explain > >1) Did you static link the binary? Yes, sure. >2) What kernel? Anything between 2.035 and 2.1.131. >From what I see I don't think that the math library handles these exceptions, it only inserts code that checks FP ops and "generates" the traps. Correct me if I'm wrong here. There's a flag for CONFIG_MATHEMU in the kernel configuration. In my case it's set to "y". Does anyone know what *exactly* this does ? Norbert