diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-04-26 14:44:50 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-04-26 14:45:05 +1200 |
commit | 50592a5184e701dd09eee024bb773ec57c1cd6bf (patch) | |
tree | f5fa0bb446fe34243fb9963070ceba85d89b4277 /Cargo.lock | |
parent | e5447e2568e24db9a5218bbe452b856266ca39ae (diff) | |
download | torque-asm-50592a5184e701dd09eee024bb773ec57c1cd6bf.zip |
Allow label references in pinned address calculations
This is a relaxation of the rule where a label reference could not
be used in any context that could change the length of an assembled
program.
We implement this in the bytecode stage by naively calculating an
initial address for each label as before. If a pinned address is
calculated from a label reference, some of the calculated addresses
could be incorrect. We then attempt to run the bytecode stage, which
will calculate a more accurate address for each label based on how
pinned addresses are calculated. If the address of any label was
changed by running this stage, we re-run the stage up to three more
times until all labels stabilise. If the labels fail to stabilise, we
return an error.
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions