Skip to content

Working through the book "Compiling to Assembly from Scratch"

Notifications You must be signed in to change notification settings

melwyn95/toy-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toy-compiler

Working though the book "Compiling to Assembly from Scratch".

Notes on ARM assembly

TODO(s)

  • Proper test bench set-up

  • Proper CLI

  • Fix CLI args parsing

  • Add for-loops

  • Add operation-assignment operator (+=, -=, ...)

  • Add comparison operators (>, <, >=, <=)

  • Add support for functions/calls with more than 4 arguments

  • Specialize code for 1, 2, 3 & 4 registerd in function deifinition

  • Use vacantOffsets for saving stack space for Var nodes

  • Add support for block scopes bindings (let & const)

  • Implement strings using byte variant of instruction (ldrb & strb)

  • Port compiler & tests to OCaml

  • Add WebAssembly Backend after ARM

About

Working through the book "Compiling to Assembly from Scratch"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published