checking for overflow in C
Kenneth Almquist
ka at june.cs.washington.edu
Mon May 8 19:13:52 AEST 1989
henry at utzoo.uucp (Henry Spencer) writes:
> C unfortunately has to be close to the hardware of a wide variety of
> machines. There is no consensus on whether the hardware checks for overflow
> or not. C generally prefers to reflect the underlying hardware rather
> than trying to hide it, so this lack of consensus shows to the programmer.
If there is not a consensus, there is certainly an overwhelming majority!
I know the assembly languages of half a dozen machines, and they all
include overflow checks.
Kenneth Almquist
More information about the Comp.lang.c
mailing list