This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Can be gcc portable to architecture without indexed addressing mode?
- From: Andrew Haley <aph at redhat dot com>
- To: ìíí <ad1984lee at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 17 Mar 2010 08:28:06 +0000
- Subject: Re: Can be gcc portable to architecture without indexed addressing mode?
- References: <963a6961003162319l4c8f8504t42ddaf94d562287e@mail.gmail.com>
On 03/17/2010 06:19 AM, ìíí wrote:
> Hello.
>
> I have to start to make some c compiler for my own cpu. This cpu has
> very simple core and has many limitations.
>
> I think that many of those limitations are evitable in source coding.
> But I cannot convince a few of them.
>
> Instructions of this cpu core have no indexed addressing mode like
> 'base' + 'offset'.
>
> This cpu can address memories only according to followings.
>
> immediate addressing
> indirect addressing with general registers
>
> I really want to know that gcc is portable on this core in spite of
> the limitation.
It is, but the generated code is going to be very poor.
Andrew.