- Toolchain: Arm GNU Toolchain Downloads
- About rdimon.spec: nosys nano rdimon
C code example:
#include <stdio.h>
int main() { printf("Hello world!\n"); }
Compile it with rdimon.specs:
$ aarch64-none-elf-gcc -static -specs=rdimon.specs hello.c
$ qemu-8.2.6/bin/qemu-aarch64 ./a.out
In this way, we get a bare metal executable which only require ARM semihosting support (no OS needed).