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

TASM-optimizations #40

Open
Sword-Smith opened this issue Aug 29, 2023 · 0 comments
Open

TASM-optimizations #40

Sword-Smith opened this issue Aug 29, 2023 · 0 comments

Comments

@Sword-Smith
Copy link
Contributor

The generated TASM can be optimized in isolation, by removing superfluous (e.g. pairs) of instructions. E.g.

This code generated by the compiled

dup 0
read_mem
swap 1
pop

Can be reduced to

read_mem
swap 1

Since read_mem leaves the memory address on the stack.

The are probably many more such patterns that can be identified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant