Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zrthxn/dang

Toy compiler
https://github.com/zrthxn/dang

Last synced: 11 days ago
JSON representation

Toy compiler

Awesome Lists containing this project

README

        

# Dang

trying to learn practical compiler design with this one.
not yet using llvm lang frontend, its a bit complex.
The goal is to eventually get this up to level that it can be **[self-hosted](https://en.wikipedia.org/wiki/Self-hosting_(compilers))**.

## Usage

To build the whole compiler, simply run
```bash
make build
```

To build the dang compiler written in dang, run
```bash
make compiler
```

## Resources

#### Inspirations and Ideas
- LLVM: https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html
- Porth: https://www.youtube.com/playlist?list=PLpM-Dvs8t0VbMZA7wW9aR3EtBqe2kinu4
- https://norasandler.com/2017/11/29/Write-a-Compiler.html

#### x86_64 reference
- https://www.felixcloutier.com/x86/
- https://www.nasm.us/doc/
- https://cs.brown.edu/courses/cs033/docs/guides/x64_cheatsheet.pdf