Phil Eaton 12/8/2019

Writing a lisp compiler from scratch in JavaScript: 6. an x86 upgrade

Read Original

This technical article details the process of upgrading an x86 backend for a Lisp compiler written in JavaScript. It moves from a register-based approach with no spilling support to a stack-based machine model for passing values between expressions. The goal is to achieve feature parity with an existing LLVM backend, supporting infinite locals, parameters, function definitions, variable references, arithmetic, logical operations, conditionals, and syscalls. The post includes code snippets and discusses the advantages of targeting x86 as a stack machine.

Writing a lisp compiler from scratch in JavaScript: 6. an x86 upgrade

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week