A little project to execute assembly code on a Raspberry pi 0, which has an embedded ARM microprocessor.
To compile and assemble the ARM codes, the makefile requires two main shell commands:
arm-linux-gnueabihf-as: to assemble the assembly files.arm-linux-gnueabihf-gcc-8: to compile and link them into a single executable file.
Simply run make SRC=<path/to/source>. This will:
- create
binandoutdirectories to store the object binary.ofiles and the executable.elffiles respectively. - assemble and link the files, everything happening should get written on the screen.
- put the last executable in
./last.elfto execute it more easily.