This C compiler was created as a meme for our systems architecture class where they wanted us to write assembly in some terrible ISA called LC-3. In this class, it's sometimes necessary to "demo" your homework in-person in front of a TA. We decided it would be funny if we turned in our homework as unreadable compiler-generated assembly. Originally, we were going to make it support multiple architectures (namely 8080) but then I realized that it will never self-host because it's in Python. It needs to be rewritten in C anyways. Currently it only supports one backend, LC-3. Internally, it operates on an IR form. The code generation and register allocation are both pretty horrible because I just wanted to get my homework done.
-
Notifications
You must be signed in to change notification settings - Fork 0
gt-retro-computing/gwcc
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The Gangweed C compiler
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published