Patch: Standard comformant arithmetic

Tom Tromey tromey@cygnus.com
Wed Jul 21 10:23:00 GMT 1999


>>>>> "Andrew" == Andrew Haley <aph@pasanda.cygnus.co.uk> writes:

Andrew> Firstly, we don't check division by zero, and instead rely on
Andrew> the run-time environment to trap when division by zero occurs.

This discussion brings to mind the null pointer problems we have.

For systems without memory management support, when -Os is used, it
might make the most sense to put the check inside the callee and not
the caller.  Of course, this would mean that you'd have to build your
entire application the same way in order to get consistent null
pointer checks.  Does this sound reasonable?

Tom


More information about the Java-patches mailing list