I work with the llvm-clang compiler, compiling simple C functions up to build on an ARMv7-A processor. I am trying to understand what this instruction does.
SUB sp, sp,
Obviously, it puts a stack pointer for some local variables, but I have never seen an ARM SUB instruction with four operands. I guess 30 changes # 65 somehow, but I don't know how, and I couldn't find the details in the ARM Architecture Reference Guide. Any suggestions?
For the curious, this is at the beginning of the program, which creates an 8 x 8 unit matrix of integers, so I expect sp to make room for at least 8 x 8 x 4 bytes on the stack.
source
share