str r0, [sp, #4]
to pass the ptr to add10
add r0, sp, #4 // put the ptr relative to the stack ptr on r0 before call
then the value is loaded from the stack into r1 before the printf call
ldr r1, [sp, #4]
str r0, [sp, #4]
to pass the ptr to add10
add r0, sp, #4 // put the ptr relative to the stack ptr on r0 before call
then the value is loaded from the stack into r1 before the printf call
ldr r1, [sp, #4]
There is a nice online demo/playground: se-tuebingen.github.io/oopsla-2025-...
There is a nice online demo/playground: se-tuebingen.github.io/oopsla-2025-...