mirror of
https://github.com/iritmaximus/ttk91-compiler.git
synced 2026-10-12 19:13:40 +03:00
cf27629b5bc5aa4a5430ebeaa45b171232176a18
TTK-91
TTK-91 is a assembly-like language made for a Computer organization course in Helsinki University. The course used this language to teach how programming languages work, how code is compiled into machine language from a basic assembly-like language. This language is now retiring and as a tribute, I thought I would write a proper CLI compiler for the language in Haskell.
Todo
- Implement
- registers
- memory
- LOAD, STORE
- arithmetic operations
- comparison
- jumps
- Stack + operators
- System calls
- instruction translation to binary and hex
- compiler configuration (stdin etc.)
Languages
C
54.4%
C++
18.5%
Python
8.2%
Yacc
7.3%
Haskell
4%
Other
7.6%