short circuit evaluation - some comments

tps at sdchem.UUCP tps at sdchem.UUCP
Sun Mar 1 10:04:20 AEST 1987


In article <1287 at ucbcad.berkeley.edu> faustus at ucbcad.UUCP writes:
>I think if you're being really careful, you can't optimize away any
>arithmetic operations, because there is always the possible side effect
>of an arithmetic exception or memory error.

This isn't true, because the behavior of a C program on
arithmetic exception or memory error is undefined by the
language -- implementations are allowed to do whatever they
like.

|| Tom Stockfisch, UCSD Chemistry	tps%chem at sdcsvax.UCSD



More information about the Comp.lang.c mailing list