- This is a repo about tiny assembly examples for various CPUs (x86, Arm, and RISC-V).
- There are examples such as system-calls, library-calls, load/store, if/for/call, barriers, atomics, and threads.
- This repo focuses on CPU hardwares, not assembly notation or ABI conventions.
100.main/simple_main.S:
.global main
main:
ret
$ cd <sample-directory>
$ make -f ../Makefile <sample> # assemble
$ ./<sample> # execute