1 .cpu arm7tdmi 2 .arch armv4t 3 .fpu softvfp 4 .eabi_attribute 20, 1 5 .eabi_attribute 21, 1 6 .eabi_attribute 23, 3 7 .eabi_attribute 24, 1 8 .eabi_attribute 25, 1 9 .eabi_attribute 26, 1 10 .eabi_attribute 30, 4 11 .eabi_attribute 34, 0 12 .eabi_attribute 18, 4 13 .file "index.c" 14 .text 15 .Ltext0: 16 .cfi_sections .debug_frame 17 .file 1 "lib/index.c" 18 .section .text.index,"ax",%progbits 19 .align 2 20 .global index 21 .syntax unified 22 .arm 24 index: 25 .LVL0: 26 .LFB0: 1:lib/index.c **** char * 2:lib/index.c **** index(p, ch) 3:lib/index.c **** register char *p, ch; 4:lib/index.c **** { 27 .loc 1 4 1 view -0 28 .cfi_startproc 29 @ Function supports interworking. 30 @ args = 0, pretend = 0, frame = 0 31 @ frame_needed = 0, uses_anonymous_args = 0 32 @ link register save eliminated. 33 .loc 1 4 1 is_stmt 0 view .LVU1 34 0000 0030A0E1 mov r3, r0 35 .loc 1 4 1 view .LVU2 36 0004 FF1001E2 and r1, r1, #255 37 .LVL1: 38 .L3: 5:lib/index.c **** for (;; ++p) { 6:lib/index.c **** if (*p == ch) 39 .loc 1 6 7 discriminator 1 view .LVU3 40 0008 0020D3E5 ldrb r2, [r3] @ zero_extendqisi2 41 .loc 1 6 6 discriminator 1 view .LVU4 42 000c 010052E1 cmp r2, r1 43 0010 0300A0E1 mov r0, r3 44 .LVL2: 5:lib/index.c **** for (;; ++p) { 45 .loc 1 5 2 is_stmt 1 discriminator 1 view .LVU5 46 .loc 1 6 3 discriminator 1 view .LVU6 47 0014 013083E2 add r3, r3, #1 48 .loc 1 6 6 is_stmt 0 discriminator 1 view .LVU7 49 0018 1EFF2F01 bxeq lr 7:lib/index.c **** return(p); 8:lib/index.c **** if (!*p) 50 .loc 1 8 3 is_stmt 1 view .LVU8 51 .loc 1 8 6 is_stmt 0 view .LVU9 52 001c 000052E3 cmp r2, #0 53 0020 F8FFFF1A bne .L3 9:lib/index.c **** return((char *)0); 54 .loc 1 9 10 view .LVU10 55 0024 0200A0E1 mov r0, r2 56 .LVL3: 10:lib/index.c **** } 11:lib/index.c **** /* NOTREACHED */ 12:lib/index.c **** } 57 .loc 1 12 1 view .LVU11 58 0028 1EFF2FE1 bx lr 59 .cfi_endproc 60 .LFE0: 62 .text 63 .Letext0: DEFINED SYMBOLS *ABS*:00000000 index.c /tmp/cc6L2QEr.s:19 .text.index:00000000 $a /tmp/cc6L2QEr.s:24 .text.index:00000000 index NO UNDEFINED SYMBOLS