Skip to content

A simple C compiler I wrote to demonstrate how to write simple compilers. Currently targets x86_64

Notifications You must be signed in to change notification settings

kuterd/very_simple_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is the compiler I wrote as a part of my tutorial on writing a very simple compiler.

Currently only supports the X86_64 architecture and the Linux kernel.

To compile, just gcc main.c -o simple_compiler.

Example usage ./simple_compiler example_programs/fib.uc

You can pass arguments to the main method like this:

./simple_compiler example_programs/calculator.uc "10 * 23"

About

A simple C compiler I wrote to demonstrate how to write simple compilers. Currently targets x86_64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •