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

Various improvements (01) #43

Closed
wants to merge 5 commits into from

Conversation

janvrany
Copy link
Collaborator

@janvrany janvrany commented Sep 4, 2024

This PR contains bunch of changes in ArchC core that accumulated while working on relocations but that are not specific to relocations.

This commit fixes disassembling of fixed-width integer data. Namely
it fixes wrong disassembly on Pharo caused by `printStringRadix: 16` which
- on Pharo - adds prefix `16r`. This was not caught by test because the
test used the same method construct the expected value.

Second, if fixes disassembly w.r.t. symbolic values.
This commit extends `AcProcessorDescription class >> #decode:` to
support decoding of multiple instructions from an byte array (for now
only for fixed-width instructions). This is useful to decode a chunk
of binary code at once.
This commit adds `#isAcAsmOperandModifier` in order to replace
`#isKindOf:`.
This commit caches encoding bitvector in ProcessorInstructionDeclaration
instead of creating it on demand.

This change speeds up decoding of ~170 instructions from ~35secs to
~15 secs (which is still appalling).
@janvrany janvrany closed this Sep 4, 2024
@janvrany janvrany deleted the pr/misc-improvements-01 branch September 4, 2024 09:58
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