Skip to content

PDP-11: expensive (in terms of backend binary size) optimizations: - #189

Open
shattered wants to merge 1 commit into
davidgiven:masterfrom
shattered:_f9be81d1
Open

PDP-11: expensive (in terms of backend binary size) optimizations:#189
shattered wants to merge 1 commit into
davidgiven:masterfrom
shattered:_f9be81d1

Conversation

@shattered

Copy link
Copy Markdown
Contributor
  • use register cache whenever possible
  • use indirect addressing modes in ALU and compare insns
  • use TST and CMP in place of ADD, when possible
  • use byte swap and rotate insns to speed up shifts
  • etc.

r16n0/r32n0 workarounds are still necessary to avoid deadlocks in register allocator.

There's also a workaround for cowasm bug -- "-1(Rn)" is a syntax error.

- use register cache whenever possible
- use indirect addressing modes in ALU and compare insns
- use TST and CMP in place of ADD, when possible
- use byte swap and rotate insns to speed up shifts
- etc.

r16n0/r32n0 workarounds are still necessary to avoid deadlocks in
register allocator.
@shattered

Copy link
Copy Markdown
Contributor Author

ping?

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