Files
assembly/x86_64/README.md
2019-03-11 19:00:28 +01:00

515 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

The Linux system call table and useful links can be found here.