Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 680 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 680 Bytes

chasm

A program to compile assembly from C code.

ChASM stands for C to ASM

Running

Put your C code in main.c, no other file please

To compile, run make compile in your shell. If you just want to compile the assembly or the binary output, do make compile-asm or make compile-out.

To clean, you can run make clean. Like compiling, you can run make clean-asm or make clean-out depending on your needs.

If you compiled the compiled assembly (yes, it compiles to assembly before compiling to machine-code), you can run make run, just an alias for ./main.

If you want to compile, run, and clean all at the same time, run make exec.