Files
assembly/x86_64
2019-03-10 12:17:59 +01:00
..
2019-03-10 12:17:59 +01:00
2019-03-10 12:17:59 +01:00
2019-03-10 12:17:59 +01:00
2019-03-10 12:17:59 +01:00

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