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: Abstracting pointer arithmetic


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.


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