Skip to content

It's a personal experimental project when learning compile principle

Notifications You must be signed in to change notification settings

amingriyue/raw-c-like-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a experimental small C-like compiler to lean compilation principles.

1. How to build
  a. cd compiler
  b. make
There will be a executable binary generated, named "compiler"

2. How to compile a c file
  ./compiler ../test/test.c
  Above compilation will generate two files, one is intermediate representation(test.ir), another is asm file(test.s)

3. There are still many todo tasks, like IR optimization, assambler and linker.

About

It's a personal experimental project when learning compile principle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages