Abstracting pointer arithmetic

Nick Ing-Simmons nik@tiuk.ti.com
Mon Jan 29 08:38:00 GMT 2001


Lars Brinkhoff <lars.spam@nocrew.org> writes:
>
>Others have pointed to bit-addressed machines, where pointers are
>incremented by 8*<number of bytes>.

In the bit addressed machine (TMS340XX) I had in mind there were 
not any special instructions. So the Pmode forms would probably
have been (define_expand ...) to the SI mode ops with shift or 
multiply.  As I recall (it is a long time ago now) that part 
already worked, but the BITS_PER_UNIT stuff was not honoured 
correctly (at the time) and the code that called LEGITIMATE_ADDRESS  
had pre-concieved ideas.

-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.



More information about the Gcc mailing list