Skip to content

Commit

Permalink
feat: optimized interpreter with computed gotos
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Apr 7, 2024
1 parent 86ebb7c commit 5271d12
Show file tree
Hide file tree
Showing 3 changed files with 2,340 additions and 424 deletions.
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ ifneq (,$(filter gcc,$(CC)))
# but we don't use -O3 because it enables some other flags that are not worth for the interpreter.
OPTFLAGS+=-fgcse-after-reload -fpredictive-commoning -fsplit-paths -ftree-partial-pre
endif
# Enable large jump tables to improve performance of instruction decoding in interpret.cpp
OPTFLAGS+=-fjump-tables --param jump-table-max-growth-ratio-for-speed=4096
# Disable jump tables to improve performance of instruction decoding in interpret.cpp
OPTFLAGS+=-fno-jump-tables
endif

# Link time optimizations
Expand Down
Loading

0 comments on commit 5271d12

Please sign in to comment.