The only evidence to the contrary is that if we were

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ff4,%esp 12 <p1+0xa> %eax,%edx 0x0,%eax (%eax),%edx %edx 21 <p1+0x19> %ebp,%esp %ebp (b) .text section of relocatable object file. 1 2 3 4 00000000 <x>: 0: 01 00 00 00 00000004 <xp>: 4: 00 00 00 00 (c) .data section of relocatable object file. Figure 7.20: Example code for Problem 7.13. 7.14. SUMMARY 389 1 2 3 4 5 6 7 8 9 10 11 12 13 14 int relo3(int val) { switch (val) { case 100: return(val); case 101: return(val+1); case 103: case 104: return(val+3); case 105: return(val+5); default: return(val+6); } } (a) C code. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 00000000 <relo3>: 0: 55 1: 89 e5 3: 8b 45 08 6: 8d 50 9c 9: 83 fa 05 c: 77 17 e: ff 24 95 00 00 00 00 15: 40 16: eb 10 18: 83 c0 03 1b: eb 0b 1d: 8d 76 00 20: 83 c0 05 23: eb 03 25: 83 c0 06 28: 89 ec 2a: 5d 2b: c3 push mov mov lea cmp ja jmp inc jmp add jmp lea add jmp add mov pop ret %ebp %esp,%ebp 0x8(%ebp),%eax 0xffffff9c(%eax),%edx $0x5,%edx 25 <relo3+0x25> *0x0(,%edx,4) %eax 28 <relo3+0x28> $0x3,%eax...
View Full Document

Ask a homework question - tutors are online