Assembly

Assemble code

nasm -f [format i.e elf64] [filename].s

ld -o [filename] [filename.o] -lc --dynamic-linker /lib64/ld-linux-x86-64.so.2

Disassemble

objdump -M intel -d helloWorld to disassemble .text

objdump -sj .data helloWorld to disassemble .data

objdump -M intel --no-show-raw-insn --no-addresses -d helloWorld to show binary assembly code

Last updated

Was this helpful?