This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PDP-10 backend for gcc


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]