[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] GCC 3.1 for F-CPU port



> > in stack handling (pointer inc) and some others.
> > Also insns other than add and shift should be add (just
> > now gcc uses its libs).
>
> How did you manage more than 14 parameters ?

btw there is BUGGG in manual probably:
r0,rv = 2regs
a0..14 = 14regs
t0..16 = 17regs
-----------------
total  = 33 regs
but manual states 32 at page 223 ! Regarding manual's numbering
there should be only 16 temps so I dropped t16.

All which doesn't fit into a0..a13 (larger or more of them)
are passed on stack.

> > There is problem with jump optimizer because it needs
> > labels tied to jumps but we have them in registers. Just
>
> Did you mean that you currently don't use the couple loop/loopentry ?

I attemped to do it (this case can gcc handle by "loop prolog"). But
loop optimizer doesn't work for me yet - probably bug in my cond branches

> Did you have an idea on how to use it with recursive call function in gcc ?

gcc handles it by allocating callee saved register for both loop counter
and loop address.

> On other question, why did you choose GCC 3.1 and not 3.3 ? or did your patch
> normally work for later gcc ?

because I have 3.1 already installed and hacked a bit. I'll try
3.3 ASAP.

devik

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/