Thursday, 5 September 2013

Catch Floating Point Exceptions using a compiler option with C

Catch Floating Point Exceptions using a compiler option with C

Gfortran has the handy -ffpe-trap compiler option, but no similar option
is available for gcc. I am vaguely aware that they handle exceptions
differently, but not enough to know why one can die from FPEs just by
enabling a compiler flag, but the other requires including extra code to
turn exceptions on.

No comments:

Post a Comment