Generate the example
ID: elf-hello-world/generate-the-example
ELF Hello World Tutorial Generate the example by
Ciro Santilli 37 Updated 2025-05-13 +Created 1970-01-01
hello_world.asm
section .data
hello_world db "Hello world!", 10
hello_world_len equ $ - hello_world
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, hello_world
mov rdx, hello_world_len
syscall
mov rax, 60
mov rdi, 0
syscall
Compiled with:
nasm -w+all -f elf64 -o 'hello_world.o' 'hello_world.asm'
ld -o 'hello_world.out' 'hello_world.o'
New to topics? Read the docs here!