48 lines
837 B
YAML
48 lines
837 B
YAML
id: "arm"
|
|
name: "ARM"
|
|
|
|
info:
|
|
impl: "GCC"
|
|
year: 1985
|
|
desc: "Popular RISC architecture used in mobile devices"
|
|
ext: S
|
|
web:
|
|
wiki: "https://en.wikipedia.org/wiki/ARM_architecture"
|
|
home: "https://developer.arm.com/architectures/cpu-architecture"
|
|
impl: "https://gcc.gnu.org/"
|
|
source: "https://gcc.gnu.org/git.html"
|
|
category: assembly
|
|
mode: compiled
|
|
platform: []
|
|
syntax: assembly
|
|
typing: weak
|
|
paradigm: imperative
|
|
usage: []
|
|
|
|
install:
|
|
apt:
|
|
- gcc-arm-linux-gnueabihf
|
|
- qemu-user-static
|
|
|
|
main: "main.S"
|
|
template: |2
|
|
.text
|
|
.globl main
|
|
main:
|
|
mov r7, #4
|
|
mov r0, #1
|
|
ldr r1, =message
|
|
mov r2, #14
|
|
swi 0
|
|
mov r7, #1
|
|
mov r0, #0
|
|
swi 0
|
|
.data
|
|
message:
|
|
.string "Hello, world!\n"
|
|
|
|
compile: |
|
|
arm-linux-gnueabihf-gcc main.S -o main -static
|
|
run: |
|
|
qemu-arm-static main
|