Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zrthxn/dang
Toy compiler
https://github.com/zrthxn/dang
Last synced: 11 days ago
JSON representation
Toy compiler
- Host: GitHub
- URL: https://github.com/zrthxn/dang
- Owner: zrthxn
- Created: 2022-02-14T10:34:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T07:26:49.000Z (over 1 year ago)
- Last Synced: 2023-07-17T08:57:19.632Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 107 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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