Skip to content

Instantly share code, notes, and snippets.

@good5dog5
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save good5dog5/22e447e7e06dbb2a531a to your computer and use it in GitHub Desktop.
Save good5dog5/22e447e7e06dbb2a531a to your computer and use it in GitHub Desktop.
arm-linux-gnueabihf-gcc -c -O2 -ggdb -Wall -fno-stack-protector -o example2.o example2.c
arm-linux-gnueabihf-as -o multiply.o multiply.s
multiply.s: Assembler messages:
multiply.s:12: Rd and Rm should be different in mla
arm-linux-gnueabihf-gcc -o example2 example2.o multiply.o
qemu-arm -L /usr/arm-linux-gnueabihf ./example2
a * b is 140
a * b + c is 143
c - a * b is -137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment