Re: New datatype addition to gcc

Sriharsha <sriharsha.v@redpinesignals.com>
16 Dec 2004 00:43:34 -0500

          From comp.compilers

Related articles
New datatype addition to gcc sriharsha.v@redpinesignals.com (Sriharsha Vedurmudi) (2004-12-11)
Re: New datatype addition to gcc mrmnews@the-meissners.org (Michael Meissner) (2004-12-16)
Re: New datatype addition to gcc sriharsha.v@redpinesignals.com (Sriharsha) (2004-12-16)
Re: New datatype addition to gcc gneuner2@comcast.net (George Neuner) (2004-12-17)
Re: New datatype addition to gcc mrmnews@the-meissners.org (Michael Meissner) (2004-12-19)
Re: New datatype addition to gcc gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-12-22)
Re: New datatype addition to gcc mrmnews@the-meissners.org (Michael Meissner) (2004-12-23)
Re: New datatype addition to gcc henry@spsystems.net (2004-12-23)
Re: New datatype addition to gcc nathan.moore@sdc.cox.net (Nathan Moore) (2005-03-24)
| List of all articles for this month |
From: Sriharsha <sriharsha.v@redpinesignals.com>
Newsgroups: comp.compilers
Date: 16 Dec 2004 00:43:34 -0500
Organization: Redpine Signals Inc.
References: 04-12-052 04-12-068
Keywords: GCC, architecture
Posted-Date: 16 Dec 2004 00:43:34 EST

Hi Michael,


Michael Meissner wrote:


>Note, GCC internally believes that all pointers are equal and are an integer
>type.


That is known.


> If your port has two different types of address (ie, a pointer to 8
>bit items would be different from a pointer to 16 bit items, either
>using a different format or a different sized item), it will be a
>long and difficult port.


My h/w personnel says that there will be TWO RAMs in the processor,
one is 8-bit addressible while the other is 16-bit addressible. If the
compiler has to do 8-bit data load/store, it uses the 8-bit RAM and if
it has something to do with 16-bit, it uses that RAM. This sounded
bizzare to me but, thats what they say (or atleast I've never come
across such stuff).


> I did the front end of the C compiler for Data General MV/Eclipse
>computers, which was originally a word machine that had byte modes
>grafted on (byte pointer was the word pointer shift left one bit).
>At one point as we were doing the transition from MV/Eclipse to
>Motorola 8800, I looked at GCC, and concluded that it would be very
>difficult to support two types of pointer in the compiler.


Completely agreed (though I have no clue how you do that)


>If your question is instead that you have a unifed pointer mode (word
>pointers having bottom bits zero), and you have load byte/store byte
>on the new machine, but no byte arithmetic, don't worry, most RISC
>machines have that restriction. GCC will just promote items to a
>larger integer type that does have arithmetic support.


There we are. I was thinking exactly that. But again the problem of
two RAM spaces is cropping up. Im totally stumped out here. I simply
did not understand how the addresses are generated etc. (for eg. the
arithmetic result of two 16-bit data can be 8-bit, then will it be
stored in 8-bit RAM (thats what our ppl say))? And many such
questions.


Im not sure if this is as unique a problem as I see or I'm still a
novice in the processor world. Meanwhile our HW guys are busy with
their works and have very less time for meetings on this issue.


Thanks again,
Sriharsha.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.