kuterd / very_simple_compiler

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C 83.0%Language:UnrealScript 13.0%Language:Brainfuck 4.0%