Skip to content

Instantly share code, notes, and snippets.

@mdfeiza
mdfeiza / hello.s
Last active September 20, 2025 12:31 — forked from carloscarcamo/hello.s
Hello world in GNU Assembler (GAS)
# -------------------------------------------------------------
#
# Using Linux System calls for 64-bit
# to run:
# gcc -c hello.s && ld hello.o && ./a.out
# o
# gcc -nostdlib hello.s && ./a.out
# or
# as -g hello.s -o hello.o
# ld -o hello hello.o