[PATCH] C undefined behavior fix
dewar@gnat.com
dewar@gnat.com
Fri Jan 4 04:15:00 GMT 2002
<<But this is not the memory model of C! Adding an offset to a pointer
is an operation involving objects defined by the C language, and not
machine registers. Sometimes, this makes a noticeable difference.
>>
Indeed Alex Stepanov notes that Ada unlike C, *does* have general pointer
arithmetic, assuming a linear address space, and finds the lack of this in
C a problem :-) :-)
More information about the Gcc
mailing list