0x4248 wiki

A collection of guides and tutorials for various topics that I have written.

View the Project on GitHub 0x4248/wiki

View all pages

View homepage

Hello world in ARM Linux

Hello world in ARM64 Linux

Code

.section .data
    msg:
        .ascii "Hello world\n"
        len = . - msg

.section .text
    .globl _start

_start:
    mov x0, 1
    ldr x1, =msg
    ldr x2, =len
    mov x8, 64
    svc 0
    mov x8, 93
    mov x0, 0
    svc 0

Building

To build the program you will need build essential installed before running the commands.

as -o hello.o hello.s
ld -o hello hello.o