root@raspberrypi:~# cat risc.s .arch armv6 .eabi_attribute 28, 1 .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 1 .eabi_attribute 18, 4 .file "risc.c" .text .align 2 .global main .arch armv6 .syntax unified .arm .fpu vfp .type main, %function main: @ args = 0, pretend = 0, frame = 408 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #412 mov r3, #0 str r3, [fp, #-8] b .L2 .L3: ldr r3, [fp, #-8] lsl r2, r3, #1 ldr r3, [fp, #-8] lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 str r2, [r3, #-404] ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] cmp r3, #99 ble .L3 mov r3, #0 mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size main, .-main .ident "GCC: (Raspbian 8.3.0-6+rpi1) 8.3.0" .section .note.GNU-stack,"",%progbits