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

Typo on BEAM instructions #101

Closed
sunboshan opened this issue Oct 17, 2017 · 2 comments
Closed

Typo on BEAM instructions #101

sunboshan opened this issue Oct 17, 2017 · 2 comments

Comments

@sunboshan
Copy link

call Arity Label
Does a call to the function of arity Arity in the same module at label Label. First count down the reductions and if needed do a context switch. Current code address before the call is saved into CP.

The before the call should be after the call.

Source code ref.

@sunboshan
Copy link
Author

Few more typo:

call_last Arity Label
Do a tail recursive call the function of arity Arity in the same module at label Label. First count down the reductions and if needed do a context switch. The CP is not updated with the return address.

call_only Arity Label Deallocate
Deallocate Deallocate words of stack, then do a tail recursive call to the function of arity Arity in the same module at label Label First count down the reductions and if needed do a context switch. The CP is not updated with the return address.

Should switch the function name:

call_only Arity Label
call_last Arity Label Deallocate

Souce code ref.

@kvakvs
Copy link
Collaborator

kvakvs commented Oct 18, 2017

Modified according to the notes. Merged. Thanks.

@kvakvs kvakvs closed this as completed Oct 18, 2017
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

No branches or pull requests

2 participants