Gregor N. Purdy <[EMAIL PROTECTED]> wrote:

> I was running the various languages/jako/examples and I ran
> across this oddity (after doing a fresh 'make' of Parrot and
> in the languages/jako directory):

> [EMAIL PROTECTED] jako]$ ./jako examples/fact.jako
> [EMAIL PROTECTED] jako]$ ../../parrot examples/fact.imc

This segfaults because of illegal code. The "branch __IN_LINE_1" doesn't
get a proper fixup - branches are not supposed to go into different
compilation units.

Changing the code to:

.sub __INLINE_0
      .globalconst int N = 15
    bsr __INLINE_1
    ret
.end

fixes this.

When compiling the PASM, all is one compilation unit and the error
vanishes.

leo

Reply via email to