Skip to content

Kahitar/mars_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a compiler in Rust

Based on the this tutorial writing a compiler in C++.

The initial version (as of 23.08.2023) was done as a learning project with the help of ChatGPT for feedback on code and tips (Chat).

Requirements

Basics

  • Compile assembly with nasm:

      $ nasm -felf64 test.asm
    
  • Link with ld:

      $ ld test.o -o test
    
  • Execute:

      $ ./test
    
  • Display exit code:

      $ echo $?
    

About

The compiler for the mars programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published