This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Abstracting pointer arithmetic
- To: lars dot spam at nocrew dot org
- Subject: Re: Abstracting pointer arithmetic
- From: Nick Ing-Simmons <nik at tiuk dot ti dot com>
- Date: Mon, 29 Jan 2001 16:33:44 GMT
- Cc: gcc at gcc dot gnu dot org, kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Organization: via, but not speaking for : Texas Instruments Ltd.
- References: <10101291228.AA22244@vlsi1.ultra.nyu.edu> <85ofwq7ccm.fsf@junk.nocrew.org>
- Reply-To: Nick Ing-Simmons <nik at tiuk dot ti dot com>
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.