Add C bytecode interpreter with ARM64 support - #85
Open
ivbondarev wants to merge 1 commit into
Open
ivbondarev wants to merge 1 commit into
ivbondarev wants to merge 1 commit into
Conversation
ivbondarev
force-pushed
the
cinterpreter
branch
9 times, most recently
from
August 30, 2026 16:45
94e366f to
bdba31c
Compare
…tive to the DynASM assembly VM, enabling LuaVela to run on ARM64 in addition to x86_64. Co-authored-by: Anton Soldatov <igelhaus@gmail.com> Co-authored-by: Igor Munkin <imun.dev@gmail.com> Co-authored-by: Ilya Dailidyonok <eliasdaler@yandex.ru>
ivbondarev
force-pushed
the
cinterpreter
branch
from
August 30, 2026 18:41
bdba31c to
a92d350
Compare
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.
Summary
This patch adds a second bytecode interpreter (written in C) in addition to the existing DynASM assembly VM.
-DUJIT_CINTERP=ONUJIT_CINTERPis always on for ARM64)scripts/cinterp_tailcalls_verifier.pydisassembles the built binary to check that compiler actually applied tail-call optimization to every bytecode and ffunc handlersLimitations
C interpreter does not support JIT compilation, FFI and instrumenting profiler.