Skip to content

Instantly share code, notes, and snippets.

@jtpaasch
Last active September 28, 2022 01:45
Show Gist options
  • Select an option

  • Save jtpaasch/7b6f61e678bf475cc37b1de0bdd119ae to your computer and use it in GitHub Desktop.

Select an option

Save jtpaasch/7b6f61e678bf475cc37b1de0bdd119ae to your computer and use it in GitHub Desktop.
Compiling and running C programs for ARM
apt install -y qemu qemu-user gcc-arm-linux-gnueabi binutils-arm-linux-gnueabi
arm-linux-gnueabi-gcc -marm main.c -o main
QEMU_LD_PREFIX=/usr/arm-linux-gnueabi qemu-arm main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment