effect of free()

Barry Margolin barmar at think.COM
Sat Sep 16 05:48:34 AEST 1989


In article <YZ3p34a00XcA04hUZt at andrew.cmu.edu> jdr+ at andrew.cmu.edu (Jeff Rosenfeld) writes:
>any architecture capable of supporting an implementation of C must be able
>to perform a test on an arbitrary pointer. The test operation might be
>implemented through GP registers or with memory operands or whatever.
>But it HAS to be doable if the architecture can support C. 

Yes, it may be possible to compare pointers using data registers.
However, that may not be the best way to compare pointers on a
particular machine, so the compiler implementor should be permitted to
use the more optimal address registers when doing pointer operations.

Barry Margolin
Thinking Machines Corp.

barmar at think.com
{uunet,harvard}!think!barmar



More information about the Comp.lang.c mailing list