Marcus Thiesen <[EMAIL PROTECTED]> wrote:

> Enter: URM

[ some more remarks ]

src> my $roffset = 15; ### imcc does that, don't know why

Its for PCC (Parrot Calling Conventions). The register allocator starts
to allocate registers from 16..31 first, so that only the top halve of
one register bank has to be preserved over function calls.

If your language doesn't provide subroutines you can safely ignore this.

Further: as URM has an arbitrary amount of registers, it would be much
simpler to target PIR code.

  r46 <- r100 + r200

is currently for sure an error. OTOH translating this to


  $I46 = $I100 + $I200

is fine.

And finally: Please emit an "end" statement at the end of your code
(i.e. when branching to a non existent label) or things will break
especially when running with the JIT core.

leo

Reply via email to