380 B
380 B
Build steps
Assembling
Assembling with NASM
nasm -g -f elf64 <file.asm>
- g = include debug info
- f = file format (elf64 -> x64)
Linking
ld <object-files> -o <executable-name> # Default
gcc <object-files> -o <executable-name> # When using C library functions
Based upon the work of Carmo M de F Barbosa