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]
Other format: [Raw text]

Re: gcc register allocation


Hi,

On Fri, 31 May 2002, danish samad wrote:

> Say I have two register banks, a lower bank and an upper bank containing any
> number of registers. I want to allocate registers such that for an operation
> say addition:
>
>    Upper bank register = Lower bank register + Upper bank register
>
> I tried making seperate classes for both banks

Yes, this is the correct approach.

> but that doesnt seem to work

You would need to be more specific about the actual problem, if we should
help.  You did read the manual, especially the target macros section about
registers and register classes, didn't you?


Ciao,
Michael.


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