-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interpreter/*: complete implementation of runtime functions for #1
Rewrote the function-wrappers in `state.rkt`. Instead of using an expensive loop for each invocation of each function at runtime, there are now just 8 wrapper functions defined explicitly. Additionally, the final wrapper function now implements the lookup of arguments on the stack beyond the first six. In the process of testing, the whole byte-string thing became clearly a poor choice. Instead of wasting any more time on it, I've revised all the byte-string stuff to just use integers instead. As a compromise (the byte-string choice was made to prohibit abusing the memory model), the `memory-set!` function prevents writing integers to memory that are larger than `word-size-bits`. Cleaned up some other comments and such, too.
- Loading branch information
Showing
3 changed files
with
61 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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