Skip to content

Relocatable bytecode #16

@bobbimanners

Description

@bobbimanners

At present bytecode uses absolute addresses for branches / jumps and is not relocatable. It may be better to use relative branches / jumps so code can be readily relocated within VM memory.
Advantages:

  • Portability of bytecode from Linux to Apple II, VIC20, C64 etc.
  • Portability of bytecode between the 8 bit platforms.
  • Eventually, allows some sort of module loading system (a bit like PLASMA has).

Drawbacks:

  • Makes debugging bytecode more painful - this can be overcome with better tools though.

To implement this, we need to add new VM instructions and modify the compiler to use them.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions