Re: Exception on a simple arithmetic problem
Re: Exception on a simple arithmetic problem
- Subject: Re: Exception on a simple arithmetic problem
- From: Eric Albert <email@hidden>
- Date: Fri, 20 Jan 2006 11:36:04 -0800
On Jan 20, 2006, at 11:11 AM, Bruce Hammond wrote:
The x86 CPU may, depending on configuration, generate exceptions
for any read of a floating point value before it is initialized
such as.
double a;
double b=a; // possible exception.
This may or may not be happening to you, but on a project I worked
on several year ago, we found many such bugs when porting a large
code base from BeOS-PowerPC to Windows.
They were nasty to find since the exceptions only happened if the
right garbage was in the uninitialized variable.
It can help to turn on the appropriate warnings in Xcode.
However, by default most (all?) floating point exceptions are masked
on Mac OS X on Intel.
-Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden