Getting started with arm – Build and Run ARM Assembly

To run ARM assembly code you will need a machine with an ARM processor.

If you are on Linux you can use the following commands to compile your program:

as -o prog_object.o my_prog_source.s

Link to get the executable:

ld -o run_prog prog_object.o

Run using:

./run_prog

If you run echo $? it will return the value stored in R0

if you want to reproduce, please indicate the source:
Getting started with arm – Build and Run ARM Assembly - CodeDay