A simple code generator
- Go 81.1%
- Roff 8%
- Makefile 7%
- C 2.5%
- Assembly 1.4%
|
|
||
|---|---|---|
| asm | Make makefiles consistent | |
| c | Make makefiles consistent | |
| elf | Initial commit: simple ELF executable for FreeBSD | |
| syscall | Add Linux support | |
| .gitignore | Add C examples | |
| codegen.1 | Add manual page | |
| cputype_amd64.go | Add Linux support | |
| cputype_arm.go | Add Linux support | |
| go.mod | Initial commit: simple ELF executable for FreeBSD | |
| main.go | Add Linux support | |
| makefile | Make makefiles consistent | |
| notes | Initial commit: simple ELF executable for FreeBSD | |
| readme.md | Add readme | |
| syshost_freebsd.go | Add Linux support | |
| syshost_linux.go | Add Linux support | |
A simple code generator for ELF-based systems
Codegen is a simple code generator producing ELF files for multiple
CPU architectures and operating systems. It is strongly influenced by
the Plan 9 operating system and the Go programming language, which not
coincidentially share some of their creators.
Usage
Refer to the manual page.
References
- Rob Pike, The Design of the Go Assembler, https://www.youtube.com/watch?v=KINIAgRpkDA
- Ken Thompson, A New C Compiler, http://doc.cat-v.org/bell_labs/new_c_compilers/new_c_compiler.pdf
- Ken Thompson, Plan 9 C Compilers, https://plan9.io/sys/doc/compiler.html
- Rob Pike, A Manual for the Plan 9 Assembler, http://p9f.org/sys/doc/asm.html