Skip to content

lemolatoon/lemola_cc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lemola_cc

inspired by https://www.sigbus.info/compilerbook

How to compile your code

  1. Write it to src.c
  2. make a.out

If you want to see debug print

make -B src.s Debug=1 enables you to see debug print by C.

make -B src.s RUSTD=1 eanbles you to see debug print by Rust.

appendix

x86_64 ABI

Arch/ABI arg1 arg2 arg3 arg4 arg5 arg6 arg7 Notes
x86-64 rdi rsi rdx rcx r8 r9 -

Note: in syscall, instead of rcx, r10 is used

from man page

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published