PDP-10 backend for gcc

Andrew Morton andrewm@uow.edu.au
Tue Sep 5 16:54:00 GMT 2000


Michael Meissner wrote:
> 
> Given this byte pointer-ness has been in the compiler
> since its inception, I suspect you will find
> undocumented assumptions rife throughout the compiler.

You suspect correctly.  I once ported gcc/g++ 2.5.8 to a
bit-addressable machine.  A machine where you have to add
8 to an address register to advance it by a byte.

I found thirty or forty instances of this byte == 1
assumption, and basically the only way of tracking
them down was working backwards from incorrect
code generation.

Even though 2.5.8 is not entirely state-of-the-art,
if someone actually intends to go through this exercise,
the stuff at http://www.uow.edu.au/~andrewm/gsptools.html
will save them a couple of weeks work.


More information about the Gcc mailing list