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

Assembler simplification #132

Closed
wants to merge 3 commits into from

Conversation

gzanitti
Copy link
Contributor

This is a WIP of the assembler simplification.
The main idea is to drop the use of the pending vector that accumulates bytecodes until the definition of a label is reached.

There is still a lot to optimise, but the general idea is as follows:

  • Scan the code to identify labels and macros (surely this can be removed).
  • Process the code in its entirety, expanding macros where possible and saving label positions as they appear.
  • A final pass to concretise all the labels, assigning them their corresponding value.

As I said before, this is still a work in progress, as I don't think it's necessary to do three passes through the code.

@gzanitti gzanitti closed this Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant