mips address+symbol issue.

Robert Dewar dewar@gnat.com
Fri Jan 23 21:44:00 GMT 2004


Ian Lance Taylor wrote:

> (My understanding is that the C standard doesn't even permit you to
> form the address of an out-of-bounds array access.  Doing so moves you
> out of the range of standardized behaviour, and no promises are made.)
> 
> Ian

That's correct, with the odd exception that you can point just past
the end of an array, and get a valid pointer value that can be
compared with any pointer within the array (it's larger :-) but
cannot be dereferenced. At least that's my understanding!




More information about the Binutils mailing list