From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,c887bec98cd793ef,start X-Google-Attributes: gid10c696,public X-Google-Thread: 111c93,c887bec98cd793ef,start X-Google-Attributes: gid111c93,public From: conrad@hive.me.gu.edu.au (Conrad Sanderson) Subject: division by zero exceptions ? Date: 1998/10/26 Message-ID: #1/1 X-Deja-AN: 405058689 Organization: Griffith University, Brisbane, Australia Newsgroups: comp.os.linux.alpha,comp.os.linux.development.apps running this C++ program on an Alpha: void main() { float a = 10.0; float b = 0.0; float c = a/b; cout << "c = " << c << endl; } causes "Floating exception Exit 136", while on Intel PII is says: "c = Inf", which is the "correct" answer. Is there any way to make the Alpha do the same thing as PII ? I know about linking with -mieee, but that makes programs run too slow, so that is not a solution for me. I'm using egcs 1.1 without optimization for the above prog. -- Conrad Sanderson - Microelectronic Signal Processing Laboratory Griffith University, Queensland, Australia http://spl.me.gu.edu.au [ under construction ]