I might be crazy
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| programs | ||
| .gitignore | ||
| LICENSE.md | ||
| README.md | ||
Compiler From Scratch
Writing a Compiler from Scratch. Because I'm Crazy.
And I mean from ABSOLUTE scratch - starting at binary level for individual architectures!
Main architecture will be RISC-V, however there are investigative work done in x86 and Aarch64.
Building
Most initial programs can be built using a simple set of commands:
$ cat \
00_elf_header.txt \
01_program_header.txt \
02_program_code.txt \
03_string_table.txt \
04_section_header_null.txt \
05_section_header_program.txt \
06_section_header_string_table.txt \
> out.txt
$ grep -v "#" out.txt > out.hex
$ xxd -plain -revert out.hex out
License
MIT - See LICENSE