Steve Fink <[EMAIL PROTECTED]> wrote:
> I'm getting my register stomped on in the following code:

>   .sub _bogus
>           set $P1, $P0[0]
>           find_lex $P2, "x"
>           newsub $P3, .Sub, _bogus
>           .pcc_begin prototyped
>           .arg $P1
>           .pcc_call $P3
>   after_call:
>           .pcc_end
>   .end

> Notice that both $P1 and $P2 get equated with P16.

These are partly used once. There is no indication where $P0 is coming
from so the register is happily reused ($P1 shouldn't get globbered
though).

Do you have a more complete example? Above should probably be a .pcc_sub
with the array as input .param.

Anyway, register allocation and PCC isn't finished yet. I'm still
waiting for the famous last words regarding return conventions.

> Steve

leo

Reply via email to