Conversation
…nitely don't want.
Start of a new llvm-jit/ backend that assembles and executes x86 code in-process using LLVM MC + ORC, eventaully to replace the external clang/link/FFI pipeline. Includes a minimal C API, Makefile build, Racket FFI wrapper, and install-time build hook with LLVM validation.
Make the runtime symbol definitions belong to the same per-run ResourceTracker as the object file, so both get removed together after the run.
Currently the runtime.o files have main.o linked in, which is probably not the right design, but to keep things working with the langs code as is, this commit adds a set_global operation and uses it to mutate the existing globals in the runtime for things like in, out, heap, etc. At some point it would be better to remove main.o from runtime.o and just set these symbols.
This change sets up the error handler function correctly and also recovers gracefully from errors in executed code by starting up a new jit interpreter.
…tepper.rkt from tests.
…ram_unload, a86_jit_destroy.
Co-authored-by: dvanhorn <205413+dvanhorn@users.noreply.github.com>
…debug action targets.
Co-authored-by: dvanhorn <205413+dvanhorn@users.noreply.github.com>
Co-authored-by: dvanhorn <205413+dvanhorn@users.noreply.github.com>
This reverts commit 46e3a7c.
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.
This replaces the command line and file based backend for implementing asm-interp with a new implementation that uses LLVM's library for constructing assembly code in memory and its JIT facilities for running that code. It is significantly faster and requires minimal changes to existing code.