-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use computed-goto to lower instruction dispatch overhead
+ This commit applies the computed goto technique to the main loop. This modification is tested to have 15 to 23 percent improvement on performance. + The old implementation of rv_step can be enabled by setting the environment variable ENABLE_COMPUTED_GOTO to 0. + Only clang and gcc is supported by computed goto feature, ENABLE_COMPUTED_GOTO will be ignored if other compiler is used. + An op_unimp handler is also added in order to acheive this. This also allows better handling of unimplemented opcodes instead of jumping into NULL.
- Loading branch information
1 parent
179d878
commit 3ecac53
Showing
2 changed files
with
116 additions
and
25 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