Repository navigation
Update instruction docstrings - #2
Open
tom-krchnak wants to merge 3 commits into
Open
tom-krchnak wants to merge 3 commits into
tom-krchnak wants to merge 3 commits into
Conversation
Contributor
|
I believe the only case, when those args can be constants are in the static initializer. Have seen those somewhere else (can you provide an example)? Static initializer is special - it is not part of the original program and it is fully generated by the compiler. If the constant args appear only in the static initializer, then we could just make a note about that? Would not it be a better solution? What do you think? |
trtikm
reviewed
Oct 31, 2026
trtikm
left a comment
Contributor
There was a problem hiding this comment.
Most of the changes are all right. But we can perhaps resolve this by making a note about static initializer?
| JUMP, | ||
|
|
||
| // BRANCH n vN | ||
| // BRANCH n nN |
Contributor
There was a problem hiding this comment.
I do not think this can happen even in the static initializer. Because branching based on a constant is basically a JUMP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lot of operations in instruction docstrings contradict the compiler output, mostly that operands are variables, when in fact they can be also constants. Also document the behaviour of
free(NULL)and fix some typos.