Skip to content

JIT shows different behavior from interpreter in bm_snake #76

Description

@kulp

In bm_snake, running tsim with -rjit results in a buggy visual display, as well as some invalid memory accesses.

Running the following two commands on macOS High Sierra on two different machines results in different visual output :

tsim       -@ plugins/sdl.rcp ex/bm_snake.texe
tsim -rjit -@ plugins/sdl.rcp ex/bm_snake.texe

There is evidence of an off-by-one error, since the character ranges used to draw snakes appear to be offset by one between the two cases.

After 256 major loops, the output of the interpreter looks like this :
Screen Shot 2021-01-01 at 11 07 32 AM

After 256 major loops, the output of the JIT looks like this :
Screen Shot 2021-01-01 at 11 07 46 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions