Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specialized assignment instructions #67

Open
darrylabbate opened this issue Jan 15, 2023 · 0 comments
Open

Specialized assignment instructions #67

darrylabbate opened this issue Jan 15, 2023 · 0 comments
Labels
compiler Compiler/parser experimental Purely experimental ideas (for now) feature New feature or request implementation General implementation of the interpreter runtime Virtual machine/runtime

Comments

@darrylabbate
Copy link
Member

Depends on:

Opcode Operand(s) Operation
SETG X globals[K[X]] = SP[-1]
SETL X FP[X] = SP[-1]

This can also be extended as a binary op with an extra operand, but it's unclear if this is a good idea since I want to extend any optimzations to compound assignment as well - so there may not be enough space for all the extra opcodes.

@darrylabbate darrylabbate added feature New feature or request implementation General implementation of the interpreter runtime Virtual machine/runtime compiler Compiler/parser codegen experimental Purely experimental ideas (for now) and removed codegen labels Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Compiler/parser experimental Purely experimental ideas (for now) feature New feature or request implementation General implementation of the interpreter runtime Virtual machine/runtime
Projects
None yet
Development

No branches or pull requests

1 participant