Skip to content

ciaracade/lc2k-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

lc2k-compiler

⚙️ Compiler for C to LC2K (Little Computer 2000) assembly

Pay no mind, this is a side project. This README.md is in development as I build.

Notes:

Development Methodology:

  1. Choose a small subset of the source language that we can compile directly to assembly.

  2. Write as many test cases as necessary to cover the chosen subset of the language.

  3. Write a compiler that accepts an expression (in the chosen subset of the source language) and outputs the equivalent sequence of assembly instructions.

  4. Ensure that the compiler is functional, i.e. it passes all the tests that are written beforehand.

  5. Refactor the compiler, if necessary, making sure that none of the tests are broken due to incorrect refactoring.

  6. Enlarge the subset of the language in a very small step and repeat the cycle by writing more tests and extending the compiler to meet the newly-added requirements.

  7. Perhaps make a REPL interpreter for on demand feedback when messing with LC2K code

Resources:

About

⚙️ Compiler for C to LC2K (Little Computer 2000) assembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors