first encoding pass should estimate/determine instruction size #14
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The size of label references is impossible to determine right now. The first pass of the encoder should collect data to estimate or determine the minimum size of a label reference.
I suspect most instructions can be sized exactly, except for the ones that use labels. For instructions that use labels we can still determine a maximum size. This gives us the ability to determine distance between instructions and allows us to pick a pretty accurate size for labels.
Alternatively, we could decide on some conservative average instruction size and just use the number of instructions as an estimation for label distance.