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

Optimize Linker by Resolving Some Patches at Assembly Time #21

Open
Hawkbat opened this issue Feb 24, 2019 · 0 comments
Open

Optimize Linker by Resolving Some Patches at Assembly Time #21

Hawkbat opened this issue Feb 24, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Hawkbat
Copy link
Owner

Hawkbat commented Feb 24, 2019

Some patches don't need to be deferred to the linker because they aren't actually dependent on imported symbols, but just use symbols that aren't defined until later in the file. For example, this is currently resolved at assembly time:

Start:
    ds 10
End:
ld c, End - Start

But this is resolved at linker time unnecessarily:

ld c, End - Start
Start:
    ds 10
End:

The assembler could instead do a post-processing pass to resolve and remove any patches which don't involve imported symbols.

@Hawkbat Hawkbat added the enhancement New feature or request label Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant