effect of free()

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Sep 9 10:38:00 AEST 1989


In article <21952 at cup.portal.com> Tim_CDC_Roberts at cup.portal.com writes:
>Isn't this a quality of implementation issue?  ...  Thus, in the case above,
>I would insist that the compiler writer move the address to a general-purpose
>register and do the comparison there.

It runs contrary to the "spirit of C" to require the implementation to
generate code that does operations the hard way when a more natural way
would suffice.

Personally, I would consider the "quality" issue as being in the opposite
sense:  Trapping on invalid address manipulation would be beneficial in
my view.



More information about the Comp.lang.c mailing list