# New Ticket Created by  Will Coleda 
# Please include the string:  [perl #37590]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37590 >




Begin forwarded message:

> From: Leopold Toetsch <[EMAIL PROTECTED]>
> Date: November 2, 2005 3:53:31 PM EST
> To: Perl 6 Internals <perl6-internals@perl.org>
> Subject: a note WRT bsr
>
> Due to the variable-sized register frames, the usage of bsr/ret has  
> some more limitations: you can't bsr into a different .sub anymore.
>
> TODO the PASM/PIR assembler should catch this abuse of bsr.
>
> .sub main
>    bsr foo
> .end
>
> .sub foo
>   # a lot of registers used
>   # bang
>   ret
> .end
>
> bsr is only safe inside one .sub:
>
> .sub main
>    bsr foo
>    ...
> foo:
>    ...
>    ret
> .end
>
> leo
>
>

Reply via email to