Dataset Viewer
program
stringclasses 10
values | disassembly
stringlengths 6.08k
6.52k
| flags
stringclasses 6
values |
---|---|---|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
}
|
programs/sample_program_1_O0: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <printf@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <printf@GLIBC_2.2.5>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 55 push %rbp
114e: 48 89 e5 mov %rsp,%rbp
1151: 48 83 ec 10 sub $0x10,%rsp
1155: c7 45 f8 05 00 00 00 movl $0x5,-0x8(%rbp)
115c: c7 45 fc 0a 00 00 00 movl $0xa,-0x4(%rbp)
1163: 8b 55 f8 mov -0x8(%rbp),%edx
1166: 8b 45 fc mov -0x4(%rbp),%eax
1169: 01 d0 add %edx,%eax
116b: 89 c6 mov %eax,%esi
116d: 48 8d 05 90 0e 00 00 lea 0xe90(%rip),%rax # 2004 <_IO_stdin_used+0x4>
1174: 48 89 c7 mov %rax,%rdi
1177: b8 00 00 00 00 mov $0x0,%eax
117c: e8 cf fe ff ff call 1050 <printf@plt>
1181: b8 00 00 00 00 mov $0x0,%eax
1186: c9 leave
1187: c3 ret
Disassembly of section .fini:
0000000000001188 <_fini>:
1188: f3 0f 1e fa endbr64
118c: 48 83 ec 08 sub $0x8,%rsp
1190: 48 83 c4 08 add $0x8,%rsp
1194: c3 ret
|
-O0
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
}
|
programs/sample_program_1_O1: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 48 83 ec 08 sub $0x8,%rsp
1151: ba 0f 00 00 00 mov $0xf,%edx
1156: 48 8d 35 a7 0e 00 00 lea 0xea7(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
115d: bf 01 00 00 00 mov $0x1,%edi
1162: b8 00 00 00 00 mov $0x0,%eax
1167: e8 e4 fe ff ff call 1050 <__printf_chk@plt>
116c: b8 00 00 00 00 mov $0x0,%eax
1171: 48 83 c4 08 add $0x8,%rsp
1175: c3 ret
Disassembly of section .fini:
0000000000001178 <_fini>:
1178: f3 0f 1e fa endbr64
117c: 48 83 ec 08 sub $0x8,%rsp
1180: 48 83 c4 08 add $0x8,%rsp
1184: c3 ret
|
-O1
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
}
|
programs/sample_program_1_O2: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 0f 00 00 00 mov $0xf,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O2
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
}
|
programs/sample_program_1_O3: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 0f 00 00 00 mov $0xf,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O3
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
}
|
programs/sample_program_1_Os: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 50 push %rax
1065: ba 0f 00 00 00 mov $0xf,%edx
106a: 48 8d 35 93 0f 00 00 lea 0xf93(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
1071: 31 c0 xor %eax,%eax
1073: bf 01 00 00 00 mov $0x1,%edi
1078: e8 d3 ff ff ff call 1050 <__printf_chk@plt>
107d: 31 c0 xor %eax,%eax
107f: 5a pop %rdx
1080: c3 ret
1081: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
1088: 00 00 00
108b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-Os
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
}
|
programs/sample_program_1_Ofast: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 0f 00 00 00 mov $0xf,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <set_fast_math>:
1090: f3 0f 1e fa endbr64
1094: 0f ae 5c 24 fc stmxcsr -0x4(%rsp)
1099: 81 4c 24 fc 40 80 00 orl $0x8040,-0x4(%rsp)
10a0: 00
10a1: 0f ae 54 24 fc ldmxcsr -0x4(%rsp)
10a6: c3 ret
10a7: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
10ae: 00 00
00000000000010b0 <_start>:
10b0: f3 0f 1e fa endbr64
10b4: 31 ed xor %ebp,%ebp
10b6: 49 89 d1 mov %rdx,%r9
10b9: 5e pop %rsi
10ba: 48 89 e2 mov %rsp,%rdx
10bd: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10c1: 50 push %rax
10c2: 54 push %rsp
10c3: 45 31 c0 xor %r8d,%r8d
10c6: 31 c9 xor %ecx,%ecx
10c8: 48 8d 3d 91 ff ff ff lea -0x6f(%rip),%rdi # 1060 <main>
10cf: ff 15 03 2f 00 00 call *0x2f03(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10d5: f4 hlt
10d6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10dd: 00 00 00
00000000000010e0 <deregister_tm_clones>:
10e0: 48 8d 3d 29 2f 00 00 lea 0x2f29(%rip),%rdi # 4010 <__TMC_END__>
10e7: 48 8d 05 22 2f 00 00 lea 0x2f22(%rip),%rax # 4010 <__TMC_END__>
10ee: 48 39 f8 cmp %rdi,%rax
10f1: 74 15 je 1108 <deregister_tm_clones+0x28>
10f3: 48 8b 05 e6 2e 00 00 mov 0x2ee6(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10fa: 48 85 c0 test %rax,%rax
10fd: 74 09 je 1108 <deregister_tm_clones+0x28>
10ff: ff e0 jmp *%rax
1101: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
1108: c3 ret
1109: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001110 <register_tm_clones>:
1110: 48 8d 3d f9 2e 00 00 lea 0x2ef9(%rip),%rdi # 4010 <__TMC_END__>
1117: 48 8d 35 f2 2e 00 00 lea 0x2ef2(%rip),%rsi # 4010 <__TMC_END__>
111e: 48 29 fe sub %rdi,%rsi
1121: 48 89 f0 mov %rsi,%rax
1124: 48 c1 ee 3f shr $0x3f,%rsi
1128: 48 c1 f8 03 sar $0x3,%rax
112c: 48 01 c6 add %rax,%rsi
112f: 48 d1 fe sar %rsi
1132: 74 14 je 1148 <register_tm_clones+0x38>
1134: 48 8b 05 b5 2e 00 00 mov 0x2eb5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
113b: 48 85 c0 test %rax,%rax
113e: 74 08 je 1148 <register_tm_clones+0x38>
1140: ff e0 jmp *%rax
1142: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1148: c3 ret
1149: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001150 <__do_global_dtors_aux>:
1150: f3 0f 1e fa endbr64
1154: 80 3d b5 2e 00 00 00 cmpb $0x0,0x2eb5(%rip) # 4010 <__TMC_END__>
115b: 75 2b jne 1188 <__do_global_dtors_aux+0x38>
115d: 55 push %rbp
115e: 48 83 3d 92 2e 00 00 cmpq $0x0,0x2e92(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1165: 00
1166: 48 89 e5 mov %rsp,%rbp
1169: 74 0c je 1177 <__do_global_dtors_aux+0x27>
116b: 48 8b 3d 96 2e 00 00 mov 0x2e96(%rip),%rdi # 4008 <__dso_handle>
1172: e8 c9 fe ff ff call 1040 <__cxa_finalize@plt>
1177: e8 64 ff ff ff call 10e0 <deregister_tm_clones>
117c: c6 05 8d 2e 00 00 01 movb $0x1,0x2e8d(%rip) # 4010 <__TMC_END__>
1183: 5d pop %rbp
1184: c3 ret
1185: 0f 1f 00 nopl (%rax)
1188: c3 ret
1189: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001190 <frame_dummy>:
1190: f3 0f 1e fa endbr64
1194: e9 77 ff ff ff jmp 1110 <register_tm_clones>
Disassembly of section .fini:
000000000000119c <_fini>:
119c: f3 0f 1e fa endbr64
11a0: 48 83 ec 08 sub $0x8,%rsp
11a4: 48 83 c4 08 add $0x8,%rsp
11a8: c3 ret
|
-Ofast
|
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
}
|
programs/sample_program_10_O0: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <printf@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <printf@GLIBC_2.2.5>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 55 push %rbp
114e: 48 89 e5 mov %rsp,%rbp
1151: 48 83 ec 10 sub $0x10,%rsp
1155: c7 45 f8 05 00 00 00 movl $0x5,-0x8(%rbp)
115c: c7 45 fc 0a 00 00 00 movl $0xa,-0x4(%rbp)
1163: 8b 45 f8 mov -0x8(%rbp),%eax
1166: 3b 45 fc cmp -0x4(%rbp),%eax
1169: 0f 9c c0 setl %al
116c: 0f b6 c0 movzbl %al,%eax
116f: 89 c6 mov %eax,%esi
1171: 48 8d 05 8c 0e 00 00 lea 0xe8c(%rip),%rax # 2004 <_IO_stdin_used+0x4>
1178: 48 89 c7 mov %rax,%rdi
117b: b8 00 00 00 00 mov $0x0,%eax
1180: e8 cb fe ff ff call 1050 <printf@plt>
1185: b8 00 00 00 00 mov $0x0,%eax
118a: c9 leave
118b: c3 ret
Disassembly of section .fini:
000000000000118c <_fini>:
118c: f3 0f 1e fa endbr64
1190: 48 83 ec 08 sub $0x8,%rsp
1194: 48 83 c4 08 add $0x8,%rsp
1198: c3 ret
|
-O0
|
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
}
|
programs/sample_program_10_O1: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 48 83 ec 08 sub $0x8,%rsp
1151: ba 01 00 00 00 mov $0x1,%edx
1156: 48 8d 35 a7 0e 00 00 lea 0xea7(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
115d: bf 01 00 00 00 mov $0x1,%edi
1162: b8 00 00 00 00 mov $0x0,%eax
1167: e8 e4 fe ff ff call 1050 <__printf_chk@plt>
116c: b8 00 00 00 00 mov $0x0,%eax
1171: 48 83 c4 08 add $0x8,%rsp
1175: c3 ret
Disassembly of section .fini:
0000000000001178 <_fini>:
1178: f3 0f 1e fa endbr64
117c: 48 83 ec 08 sub $0x8,%rsp
1180: 48 83 c4 08 add $0x8,%rsp
1184: c3 ret
|
-O1
|
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
}
|
programs/sample_program_10_O2: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 01 00 00 00 mov $0x1,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O2
|
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
}
|
programs/sample_program_10_O3: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 01 00 00 00 mov $0x1,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O3
|
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
}
|
programs/sample_program_10_Os: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 50 push %rax
1065: ba 01 00 00 00 mov $0x1,%edx
106a: 48 8d 35 93 0f 00 00 lea 0xf93(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
1071: 31 c0 xor %eax,%eax
1073: bf 01 00 00 00 mov $0x1,%edi
1078: e8 d3 ff ff ff call 1050 <__printf_chk@plt>
107d: 31 c0 xor %eax,%eax
107f: 5a pop %rdx
1080: c3 ret
1081: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
1088: 00 00 00
108b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-Os
|
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
}
|
programs/sample_program_10_Ofast: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 01 00 00 00 mov $0x1,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <set_fast_math>:
1090: f3 0f 1e fa endbr64
1094: 0f ae 5c 24 fc stmxcsr -0x4(%rsp)
1099: 81 4c 24 fc 40 80 00 orl $0x8040,-0x4(%rsp)
10a0: 00
10a1: 0f ae 54 24 fc ldmxcsr -0x4(%rsp)
10a6: c3 ret
10a7: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
10ae: 00 00
00000000000010b0 <_start>:
10b0: f3 0f 1e fa endbr64
10b4: 31 ed xor %ebp,%ebp
10b6: 49 89 d1 mov %rdx,%r9
10b9: 5e pop %rsi
10ba: 48 89 e2 mov %rsp,%rdx
10bd: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10c1: 50 push %rax
10c2: 54 push %rsp
10c3: 45 31 c0 xor %r8d,%r8d
10c6: 31 c9 xor %ecx,%ecx
10c8: 48 8d 3d 91 ff ff ff lea -0x6f(%rip),%rdi # 1060 <main>
10cf: ff 15 03 2f 00 00 call *0x2f03(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10d5: f4 hlt
10d6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10dd: 00 00 00
00000000000010e0 <deregister_tm_clones>:
10e0: 48 8d 3d 29 2f 00 00 lea 0x2f29(%rip),%rdi # 4010 <__TMC_END__>
10e7: 48 8d 05 22 2f 00 00 lea 0x2f22(%rip),%rax # 4010 <__TMC_END__>
10ee: 48 39 f8 cmp %rdi,%rax
10f1: 74 15 je 1108 <deregister_tm_clones+0x28>
10f3: 48 8b 05 e6 2e 00 00 mov 0x2ee6(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10fa: 48 85 c0 test %rax,%rax
10fd: 74 09 je 1108 <deregister_tm_clones+0x28>
10ff: ff e0 jmp *%rax
1101: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
1108: c3 ret
1109: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001110 <register_tm_clones>:
1110: 48 8d 3d f9 2e 00 00 lea 0x2ef9(%rip),%rdi # 4010 <__TMC_END__>
1117: 48 8d 35 f2 2e 00 00 lea 0x2ef2(%rip),%rsi # 4010 <__TMC_END__>
111e: 48 29 fe sub %rdi,%rsi
1121: 48 89 f0 mov %rsi,%rax
1124: 48 c1 ee 3f shr $0x3f,%rsi
1128: 48 c1 f8 03 sar $0x3,%rax
112c: 48 01 c6 add %rax,%rsi
112f: 48 d1 fe sar %rsi
1132: 74 14 je 1148 <register_tm_clones+0x38>
1134: 48 8b 05 b5 2e 00 00 mov 0x2eb5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
113b: 48 85 c0 test %rax,%rax
113e: 74 08 je 1148 <register_tm_clones+0x38>
1140: ff e0 jmp *%rax
1142: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1148: c3 ret
1149: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001150 <__do_global_dtors_aux>:
1150: f3 0f 1e fa endbr64
1154: 80 3d b5 2e 00 00 00 cmpb $0x0,0x2eb5(%rip) # 4010 <__TMC_END__>
115b: 75 2b jne 1188 <__do_global_dtors_aux+0x38>
115d: 55 push %rbp
115e: 48 83 3d 92 2e 00 00 cmpq $0x0,0x2e92(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1165: 00
1166: 48 89 e5 mov %rsp,%rbp
1169: 74 0c je 1177 <__do_global_dtors_aux+0x27>
116b: 48 8b 3d 96 2e 00 00 mov 0x2e96(%rip),%rdi # 4008 <__dso_handle>
1172: e8 c9 fe ff ff call 1040 <__cxa_finalize@plt>
1177: e8 64 ff ff ff call 10e0 <deregister_tm_clones>
117c: c6 05 8d 2e 00 00 01 movb $0x1,0x2e8d(%rip) # 4010 <__TMC_END__>
1183: 5d pop %rbp
1184: c3 ret
1185: 0f 1f 00 nopl (%rax)
1188: c3 ret
1189: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001190 <frame_dummy>:
1190: f3 0f 1e fa endbr64
1194: e9 77 ff ff ff jmp 1110 <register_tm_clones>
Disassembly of section .fini:
000000000000119c <_fini>:
119c: f3 0f 1e fa endbr64
11a0: 48 83 ec 08 sub $0x8,%rsp
11a4: 48 83 c4 08 add $0x8,%rsp
11a8: c3 ret
|
-Ofast
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Difference: %d\n", a - b);
return 0;
}
|
programs/sample_program_2_O0: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <printf@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <printf@GLIBC_2.2.5>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 55 push %rbp
114e: 48 89 e5 mov %rsp,%rbp
1151: 48 83 ec 10 sub $0x10,%rsp
1155: c7 45 f8 0a 00 00 00 movl $0xa,-0x8(%rbp)
115c: c7 45 fc 05 00 00 00 movl $0x5,-0x4(%rbp)
1163: 8b 45 f8 mov -0x8(%rbp),%eax
1166: 2b 45 fc sub -0x4(%rbp),%eax
1169: 89 c6 mov %eax,%esi
116b: 48 8d 05 92 0e 00 00 lea 0xe92(%rip),%rax # 2004 <_IO_stdin_used+0x4>
1172: 48 89 c7 mov %rax,%rdi
1175: b8 00 00 00 00 mov $0x0,%eax
117a: e8 d1 fe ff ff call 1050 <printf@plt>
117f: b8 00 00 00 00 mov $0x0,%eax
1184: c9 leave
1185: c3 ret
Disassembly of section .fini:
0000000000001188 <_fini>:
1188: f3 0f 1e fa endbr64
118c: 48 83 ec 08 sub $0x8,%rsp
1190: 48 83 c4 08 add $0x8,%rsp
1194: c3 ret
|
-O0
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Difference: %d\n", a - b);
return 0;
}
|
programs/sample_program_2_O1: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 48 83 ec 08 sub $0x8,%rsp
1151: ba 05 00 00 00 mov $0x5,%edx
1156: 48 8d 35 a7 0e 00 00 lea 0xea7(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
115d: bf 01 00 00 00 mov $0x1,%edi
1162: b8 00 00 00 00 mov $0x0,%eax
1167: e8 e4 fe ff ff call 1050 <__printf_chk@plt>
116c: b8 00 00 00 00 mov $0x0,%eax
1171: 48 83 c4 08 add $0x8,%rsp
1175: c3 ret
Disassembly of section .fini:
0000000000001178 <_fini>:
1178: f3 0f 1e fa endbr64
117c: 48 83 ec 08 sub $0x8,%rsp
1180: 48 83 c4 08 add $0x8,%rsp
1184: c3 ret
|
-O1
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Difference: %d\n", a - b);
return 0;
}
|
programs/sample_program_2_O2: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 05 00 00 00 mov $0x5,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O2
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Difference: %d\n", a - b);
return 0;
}
|
programs/sample_program_2_O3: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 05 00 00 00 mov $0x5,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O3
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Difference: %d\n", a - b);
return 0;
}
|
programs/sample_program_2_Os: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 50 push %rax
1065: ba 05 00 00 00 mov $0x5,%edx
106a: 48 8d 35 93 0f 00 00 lea 0xf93(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
1071: 31 c0 xor %eax,%eax
1073: bf 01 00 00 00 mov $0x1,%edi
1078: e8 d3 ff ff ff call 1050 <__printf_chk@plt>
107d: 31 c0 xor %eax,%eax
107f: 5a pop %rdx
1080: c3 ret
1081: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
1088: 00 00 00
108b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-Os
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Difference: %d\n", a - b);
return 0;
}
|
programs/sample_program_2_Ofast: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 05 00 00 00 mov $0x5,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <set_fast_math>:
1090: f3 0f 1e fa endbr64
1094: 0f ae 5c 24 fc stmxcsr -0x4(%rsp)
1099: 81 4c 24 fc 40 80 00 orl $0x8040,-0x4(%rsp)
10a0: 00
10a1: 0f ae 54 24 fc ldmxcsr -0x4(%rsp)
10a6: c3 ret
10a7: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
10ae: 00 00
00000000000010b0 <_start>:
10b0: f3 0f 1e fa endbr64
10b4: 31 ed xor %ebp,%ebp
10b6: 49 89 d1 mov %rdx,%r9
10b9: 5e pop %rsi
10ba: 48 89 e2 mov %rsp,%rdx
10bd: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10c1: 50 push %rax
10c2: 54 push %rsp
10c3: 45 31 c0 xor %r8d,%r8d
10c6: 31 c9 xor %ecx,%ecx
10c8: 48 8d 3d 91 ff ff ff lea -0x6f(%rip),%rdi # 1060 <main>
10cf: ff 15 03 2f 00 00 call *0x2f03(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10d5: f4 hlt
10d6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10dd: 00 00 00
00000000000010e0 <deregister_tm_clones>:
10e0: 48 8d 3d 29 2f 00 00 lea 0x2f29(%rip),%rdi # 4010 <__TMC_END__>
10e7: 48 8d 05 22 2f 00 00 lea 0x2f22(%rip),%rax # 4010 <__TMC_END__>
10ee: 48 39 f8 cmp %rdi,%rax
10f1: 74 15 je 1108 <deregister_tm_clones+0x28>
10f3: 48 8b 05 e6 2e 00 00 mov 0x2ee6(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10fa: 48 85 c0 test %rax,%rax
10fd: 74 09 je 1108 <deregister_tm_clones+0x28>
10ff: ff e0 jmp *%rax
1101: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
1108: c3 ret
1109: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001110 <register_tm_clones>:
1110: 48 8d 3d f9 2e 00 00 lea 0x2ef9(%rip),%rdi # 4010 <__TMC_END__>
1117: 48 8d 35 f2 2e 00 00 lea 0x2ef2(%rip),%rsi # 4010 <__TMC_END__>
111e: 48 29 fe sub %rdi,%rsi
1121: 48 89 f0 mov %rsi,%rax
1124: 48 c1 ee 3f shr $0x3f,%rsi
1128: 48 c1 f8 03 sar $0x3,%rax
112c: 48 01 c6 add %rax,%rsi
112f: 48 d1 fe sar %rsi
1132: 74 14 je 1148 <register_tm_clones+0x38>
1134: 48 8b 05 b5 2e 00 00 mov 0x2eb5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
113b: 48 85 c0 test %rax,%rax
113e: 74 08 je 1148 <register_tm_clones+0x38>
1140: ff e0 jmp *%rax
1142: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1148: c3 ret
1149: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001150 <__do_global_dtors_aux>:
1150: f3 0f 1e fa endbr64
1154: 80 3d b5 2e 00 00 00 cmpb $0x0,0x2eb5(%rip) # 4010 <__TMC_END__>
115b: 75 2b jne 1188 <__do_global_dtors_aux+0x38>
115d: 55 push %rbp
115e: 48 83 3d 92 2e 00 00 cmpq $0x0,0x2e92(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1165: 00
1166: 48 89 e5 mov %rsp,%rbp
1169: 74 0c je 1177 <__do_global_dtors_aux+0x27>
116b: 48 8b 3d 96 2e 00 00 mov 0x2e96(%rip),%rdi # 4008 <__dso_handle>
1172: e8 c9 fe ff ff call 1040 <__cxa_finalize@plt>
1177: e8 64 ff ff ff call 10e0 <deregister_tm_clones>
117c: c6 05 8d 2e 00 00 01 movb $0x1,0x2e8d(%rip) # 4010 <__TMC_END__>
1183: 5d pop %rbp
1184: c3 ret
1185: 0f 1f 00 nopl (%rax)
1188: c3 ret
1189: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001190 <frame_dummy>:
1190: f3 0f 1e fa endbr64
1194: e9 77 ff ff ff jmp 1110 <register_tm_clones>
Disassembly of section .fini:
000000000000119c <_fini>:
119c: f3 0f 1e fa endbr64
11a0: 48 83 ec 08 sub $0x8,%rsp
11a4: 48 83 c4 08 add $0x8,%rsp
11a8: c3 ret
|
-Ofast
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Product: %d\n", a * b);
return 0;
}
|
programs/sample_program_3_O0: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <printf@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <printf@GLIBC_2.2.5>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 55 push %rbp
114e: 48 89 e5 mov %rsp,%rbp
1151: 48 83 ec 10 sub $0x10,%rsp
1155: c7 45 f8 05 00 00 00 movl $0x5,-0x8(%rbp)
115c: c7 45 fc 0a 00 00 00 movl $0xa,-0x4(%rbp)
1163: 8b 45 f8 mov -0x8(%rbp),%eax
1166: 0f af 45 fc imul -0x4(%rbp),%eax
116a: 89 c6 mov %eax,%esi
116c: 48 8d 05 91 0e 00 00 lea 0xe91(%rip),%rax # 2004 <_IO_stdin_used+0x4>
1173: 48 89 c7 mov %rax,%rdi
1176: b8 00 00 00 00 mov $0x0,%eax
117b: e8 d0 fe ff ff call 1050 <printf@plt>
1180: b8 00 00 00 00 mov $0x0,%eax
1185: c9 leave
1186: c3 ret
Disassembly of section .fini:
0000000000001188 <_fini>:
1188: f3 0f 1e fa endbr64
118c: 48 83 ec 08 sub $0x8,%rsp
1190: 48 83 c4 08 add $0x8,%rsp
1194: c3 ret
|
-O0
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Product: %d\n", a * b);
return 0;
}
|
programs/sample_program_3_O1: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 48 83 ec 08 sub $0x8,%rsp
1151: ba 32 00 00 00 mov $0x32,%edx
1156: 48 8d 35 a7 0e 00 00 lea 0xea7(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
115d: bf 01 00 00 00 mov $0x1,%edi
1162: b8 00 00 00 00 mov $0x0,%eax
1167: e8 e4 fe ff ff call 1050 <__printf_chk@plt>
116c: b8 00 00 00 00 mov $0x0,%eax
1171: 48 83 c4 08 add $0x8,%rsp
1175: c3 ret
Disassembly of section .fini:
0000000000001178 <_fini>:
1178: f3 0f 1e fa endbr64
117c: 48 83 ec 08 sub $0x8,%rsp
1180: 48 83 c4 08 add $0x8,%rsp
1184: c3 ret
|
-O1
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Product: %d\n", a * b);
return 0;
}
|
programs/sample_program_3_O2: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 32 00 00 00 mov $0x32,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O2
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Product: %d\n", a * b);
return 0;
}
|
programs/sample_program_3_O3: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 32 00 00 00 mov $0x32,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O3
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Product: %d\n", a * b);
return 0;
}
|
programs/sample_program_3_Os: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 50 push %rax
1065: ba 32 00 00 00 mov $0x32,%edx
106a: 48 8d 35 93 0f 00 00 lea 0xf93(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
1071: 31 c0 xor %eax,%eax
1073: bf 01 00 00 00 mov $0x1,%edi
1078: e8 d3 ff ff ff call 1050 <__printf_chk@plt>
107d: 31 c0 xor %eax,%eax
107f: 5a pop %rdx
1080: c3 ret
1081: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
1088: 00 00 00
108b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-Os
|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Product: %d\n", a * b);
return 0;
}
|
programs/sample_program_3_Ofast: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 32 00 00 00 mov $0x32,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <set_fast_math>:
1090: f3 0f 1e fa endbr64
1094: 0f ae 5c 24 fc stmxcsr -0x4(%rsp)
1099: 81 4c 24 fc 40 80 00 orl $0x8040,-0x4(%rsp)
10a0: 00
10a1: 0f ae 54 24 fc ldmxcsr -0x4(%rsp)
10a6: c3 ret
10a7: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
10ae: 00 00
00000000000010b0 <_start>:
10b0: f3 0f 1e fa endbr64
10b4: 31 ed xor %ebp,%ebp
10b6: 49 89 d1 mov %rdx,%r9
10b9: 5e pop %rsi
10ba: 48 89 e2 mov %rsp,%rdx
10bd: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10c1: 50 push %rax
10c2: 54 push %rsp
10c3: 45 31 c0 xor %r8d,%r8d
10c6: 31 c9 xor %ecx,%ecx
10c8: 48 8d 3d 91 ff ff ff lea -0x6f(%rip),%rdi # 1060 <main>
10cf: ff 15 03 2f 00 00 call *0x2f03(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10d5: f4 hlt
10d6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10dd: 00 00 00
00000000000010e0 <deregister_tm_clones>:
10e0: 48 8d 3d 29 2f 00 00 lea 0x2f29(%rip),%rdi # 4010 <__TMC_END__>
10e7: 48 8d 05 22 2f 00 00 lea 0x2f22(%rip),%rax # 4010 <__TMC_END__>
10ee: 48 39 f8 cmp %rdi,%rax
10f1: 74 15 je 1108 <deregister_tm_clones+0x28>
10f3: 48 8b 05 e6 2e 00 00 mov 0x2ee6(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10fa: 48 85 c0 test %rax,%rax
10fd: 74 09 je 1108 <deregister_tm_clones+0x28>
10ff: ff e0 jmp *%rax
1101: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
1108: c3 ret
1109: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001110 <register_tm_clones>:
1110: 48 8d 3d f9 2e 00 00 lea 0x2ef9(%rip),%rdi # 4010 <__TMC_END__>
1117: 48 8d 35 f2 2e 00 00 lea 0x2ef2(%rip),%rsi # 4010 <__TMC_END__>
111e: 48 29 fe sub %rdi,%rsi
1121: 48 89 f0 mov %rsi,%rax
1124: 48 c1 ee 3f shr $0x3f,%rsi
1128: 48 c1 f8 03 sar $0x3,%rax
112c: 48 01 c6 add %rax,%rsi
112f: 48 d1 fe sar %rsi
1132: 74 14 je 1148 <register_tm_clones+0x38>
1134: 48 8b 05 b5 2e 00 00 mov 0x2eb5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
113b: 48 85 c0 test %rax,%rax
113e: 74 08 je 1148 <register_tm_clones+0x38>
1140: ff e0 jmp *%rax
1142: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1148: c3 ret
1149: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001150 <__do_global_dtors_aux>:
1150: f3 0f 1e fa endbr64
1154: 80 3d b5 2e 00 00 00 cmpb $0x0,0x2eb5(%rip) # 4010 <__TMC_END__>
115b: 75 2b jne 1188 <__do_global_dtors_aux+0x38>
115d: 55 push %rbp
115e: 48 83 3d 92 2e 00 00 cmpq $0x0,0x2e92(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1165: 00
1166: 48 89 e5 mov %rsp,%rbp
1169: 74 0c je 1177 <__do_global_dtors_aux+0x27>
116b: 48 8b 3d 96 2e 00 00 mov 0x2e96(%rip),%rdi # 4008 <__dso_handle>
1172: e8 c9 fe ff ff call 1040 <__cxa_finalize@plt>
1177: e8 64 ff ff ff call 10e0 <deregister_tm_clones>
117c: c6 05 8d 2e 00 00 01 movb $0x1,0x2e8d(%rip) # 4010 <__TMC_END__>
1183: 5d pop %rbp
1184: c3 ret
1185: 0f 1f 00 nopl (%rax)
1188: c3 ret
1189: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001190 <frame_dummy>:
1190: f3 0f 1e fa endbr64
1194: e9 77 ff ff ff jmp 1110 <register_tm_clones>
Disassembly of section .fini:
000000000000119c <_fini>:
119c: f3 0f 1e fa endbr64
11a0: 48 83 ec 08 sub $0x8,%rsp
11a4: 48 83 c4 08 add $0x8,%rsp
11a8: c3 ret
|
-Ofast
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Division: %d\n", a / b);
return 0;
}
|
programs/sample_program_4_O0: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <printf@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <printf@GLIBC_2.2.5>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 55 push %rbp
114e: 48 89 e5 mov %rsp,%rbp
1151: 48 83 ec 10 sub $0x10,%rsp
1155: c7 45 f8 0a 00 00 00 movl $0xa,-0x8(%rbp)
115c: c7 45 fc 05 00 00 00 movl $0x5,-0x4(%rbp)
1163: 8b 45 f8 mov -0x8(%rbp),%eax
1166: 99 cltd
1167: f7 7d fc idivl -0x4(%rbp)
116a: 89 c6 mov %eax,%esi
116c: 48 8d 05 91 0e 00 00 lea 0xe91(%rip),%rax # 2004 <_IO_stdin_used+0x4>
1173: 48 89 c7 mov %rax,%rdi
1176: b8 00 00 00 00 mov $0x0,%eax
117b: e8 d0 fe ff ff call 1050 <printf@plt>
1180: b8 00 00 00 00 mov $0x0,%eax
1185: c9 leave
1186: c3 ret
Disassembly of section .fini:
0000000000001188 <_fini>:
1188: f3 0f 1e fa endbr64
118c: 48 83 ec 08 sub $0x8,%rsp
1190: 48 83 c4 08 add $0x8,%rsp
1194: c3 ret
|
-O0
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Division: %d\n", a / b);
return 0;
}
|
programs/sample_program_4_O1: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <_start>:
1060: f3 0f 1e fa endbr64
1064: 31 ed xor %ebp,%ebp
1066: 49 89 d1 mov %rdx,%r9
1069: 5e pop %rsi
106a: 48 89 e2 mov %rsp,%rdx
106d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
1071: 50 push %rax
1072: 54 push %rsp
1073: 45 31 c0 xor %r8d,%r8d
1076: 31 c9 xor %ecx,%ecx
1078: 48 8d 3d ca 00 00 00 lea 0xca(%rip),%rdi # 1149 <main>
107f: ff 15 53 2f 00 00 call *0x2f53(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
1085: f4 hlt
1086: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
108d: 00 00 00
0000000000001090 <deregister_tm_clones>:
1090: 48 8d 3d 79 2f 00 00 lea 0x2f79(%rip),%rdi # 4010 <__TMC_END__>
1097: 48 8d 05 72 2f 00 00 lea 0x2f72(%rip),%rax # 4010 <__TMC_END__>
109e: 48 39 f8 cmp %rdi,%rax
10a1: 74 15 je 10b8 <deregister_tm_clones+0x28>
10a3: 48 8b 05 36 2f 00 00 mov 0x2f36(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10aa: 48 85 c0 test %rax,%rax
10ad: 74 09 je 10b8 <deregister_tm_clones+0x28>
10af: ff e0 jmp *%rax
10b1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10b8: c3 ret
10b9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010c0 <register_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 35 42 2f 00 00 lea 0x2f42(%rip),%rsi # 4010 <__TMC_END__>
10ce: 48 29 fe sub %rdi,%rsi
10d1: 48 89 f0 mov %rsi,%rax
10d4: 48 c1 ee 3f shr $0x3f,%rsi
10d8: 48 c1 f8 03 sar $0x3,%rax
10dc: 48 01 c6 add %rax,%rsi
10df: 48 d1 fe sar %rsi
10e2: 74 14 je 10f8 <register_tm_clones+0x38>
10e4: 48 8b 05 05 2f 00 00 mov 0x2f05(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
10eb: 48 85 c0 test %rax,%rax
10ee: 74 08 je 10f8 <register_tm_clones+0x38>
10f0: ff e0 jmp *%rax
10f2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
10f8: c3 ret
10f9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001100 <__do_global_dtors_aux>:
1100: f3 0f 1e fa endbr64
1104: 80 3d 05 2f 00 00 00 cmpb $0x0,0x2f05(%rip) # 4010 <__TMC_END__>
110b: 75 2b jne 1138 <__do_global_dtors_aux+0x38>
110d: 55 push %rbp
110e: 48 83 3d e2 2e 00 00 cmpq $0x0,0x2ee2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1115: 00
1116: 48 89 e5 mov %rsp,%rbp
1119: 74 0c je 1127 <__do_global_dtors_aux+0x27>
111b: 48 8b 3d e6 2e 00 00 mov 0x2ee6(%rip),%rdi # 4008 <__dso_handle>
1122: e8 19 ff ff ff call 1040 <__cxa_finalize@plt>
1127: e8 64 ff ff ff call 1090 <deregister_tm_clones>
112c: c6 05 dd 2e 00 00 01 movb $0x1,0x2edd(%rip) # 4010 <__TMC_END__>
1133: 5d pop %rbp
1134: c3 ret
1135: 0f 1f 00 nopl (%rax)
1138: c3 ret
1139: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001140 <frame_dummy>:
1140: f3 0f 1e fa endbr64
1144: e9 77 ff ff ff jmp 10c0 <register_tm_clones>
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 48 83 ec 08 sub $0x8,%rsp
1151: ba 02 00 00 00 mov $0x2,%edx
1156: 48 8d 35 a7 0e 00 00 lea 0xea7(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
115d: bf 01 00 00 00 mov $0x1,%edi
1162: b8 00 00 00 00 mov $0x0,%eax
1167: e8 e4 fe ff ff call 1050 <__printf_chk@plt>
116c: b8 00 00 00 00 mov $0x0,%eax
1171: 48 83 c4 08 add $0x8,%rsp
1175: c3 ret
Disassembly of section .fini:
0000000000001178 <_fini>:
1178: f3 0f 1e fa endbr64
117c: 48 83 ec 08 sub $0x8,%rsp
1180: 48 83 c4 08 add $0x8,%rsp
1184: c3 ret
|
-O1
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Division: %d\n", a / b);
return 0;
}
|
programs/sample_program_4_O2: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 02 00 00 00 mov $0x2,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O2
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Division: %d\n", a / b);
return 0;
}
|
programs/sample_program_4_O3: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 48 83 ec 08 sub $0x8,%rsp
1068: ba 02 00 00 00 mov $0x2,%edx
106d: bf 01 00 00 00 mov $0x1,%edi
1072: 31 c0 xor %eax,%eax
1074: 48 8d 35 89 0f 00 00 lea 0xf89(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
107b: e8 d0 ff ff ff call 1050 <__printf_chk@plt>
1080: 31 c0 xor %eax,%eax
1082: 48 83 c4 08 add $0x8,%rsp
1086: c3 ret
1087: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
108e: 00 00
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-O3
|
#include <stdio.h>
int main() {
int a = 10;
int b = 5;
printf("Division: %d\n", a / b);
return 0;
}
|
programs/sample_program_4_Os: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f: 48 85 c0 test %rax,%rax
1012: 74 02 je 1016 <_init+0x16>
1014: ff d0 call *%rax
1016: 48 83 c4 08 add $0x8,%rsp
101a: c3 ret
Disassembly of section .plt:
0000000000001020 <.plt>:
1020: ff 35 9a 2f 00 00 push 0x2f9a(%rip) # 3fc0 <_GLOBAL_OFFSET_TABLE_+0x8>
1026: f2 ff 25 9b 2f 00 00 bnd jmp *0x2f9b(%rip) # 3fc8 <_GLOBAL_OFFSET_TABLE_+0x10>
102d: 0f 1f 00 nopl (%rax)
1030: f3 0f 1e fa endbr64
1034: 68 00 00 00 00 push $0x0
1039: f2 e9 e1 ff ff ff bnd jmp 1020 <_init+0x20>
103f: 90 nop
Disassembly of section .plt.got:
0000000000001040 <__cxa_finalize@plt>:
1040: f3 0f 1e fa endbr64
1044: f2 ff 25 ad 2f 00 00 bnd jmp *0x2fad(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
104b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .plt.sec:
0000000000001050 <__printf_chk@plt>:
1050: f3 0f 1e fa endbr64
1054: f2 ff 25 75 2f 00 00 bnd jmp *0x2f75(%rip) # 3fd0 <__printf_chk@GLIBC_2.3.4>
105b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
Disassembly of section .text:
0000000000001060 <main>:
1060: f3 0f 1e fa endbr64
1064: 50 push %rax
1065: ba 02 00 00 00 mov $0x2,%edx
106a: 48 8d 35 93 0f 00 00 lea 0xf93(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
1071: 31 c0 xor %eax,%eax
1073: bf 01 00 00 00 mov $0x1,%edi
1078: e8 d3 ff ff ff call 1050 <__printf_chk@plt>
107d: 31 c0 xor %eax,%eax
107f: 5a pop %rdx
1080: c3 ret
1081: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
1088: 00 00 00
108b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0000000000001090 <_start>:
1090: f3 0f 1e fa endbr64
1094: 31 ed xor %ebp,%ebp
1096: 49 89 d1 mov %rdx,%r9
1099: 5e pop %rsi
109a: 48 89 e2 mov %rsp,%rdx
109d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
10a1: 50 push %rax
10a2: 54 push %rsp
10a3: 45 31 c0 xor %r8d,%r8d
10a6: 31 c9 xor %ecx,%ecx
10a8: 48 8d 3d b1 ff ff ff lea -0x4f(%rip),%rdi # 1060 <main>
10af: ff 15 23 2f 00 00 call *0x2f23(%rip) # 3fd8 <__libc_start_main@GLIBC_2.34>
10b5: f4 hlt
10b6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
10bd: 00 00 00
00000000000010c0 <deregister_tm_clones>:
10c0: 48 8d 3d 49 2f 00 00 lea 0x2f49(%rip),%rdi # 4010 <__TMC_END__>
10c7: 48 8d 05 42 2f 00 00 lea 0x2f42(%rip),%rax # 4010 <__TMC_END__>
10ce: 48 39 f8 cmp %rdi,%rax
10d1: 74 15 je 10e8 <deregister_tm_clones+0x28>
10d3: 48 8b 05 06 2f 00 00 mov 0x2f06(%rip),%rax # 3fe0 <_ITM_deregisterTMCloneTable@Base>
10da: 48 85 c0 test %rax,%rax
10dd: 74 09 je 10e8 <deregister_tm_clones+0x28>
10df: ff e0 jmp *%rax
10e1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
10e8: c3 ret
10e9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
00000000000010f0 <register_tm_clones>:
10f0: 48 8d 3d 19 2f 00 00 lea 0x2f19(%rip),%rdi # 4010 <__TMC_END__>
10f7: 48 8d 35 12 2f 00 00 lea 0x2f12(%rip),%rsi # 4010 <__TMC_END__>
10fe: 48 29 fe sub %rdi,%rsi
1101: 48 89 f0 mov %rsi,%rax
1104: 48 c1 ee 3f shr $0x3f,%rsi
1108: 48 c1 f8 03 sar $0x3,%rax
110c: 48 01 c6 add %rax,%rsi
110f: 48 d1 fe sar %rsi
1112: 74 14 je 1128 <register_tm_clones+0x38>
1114: 48 8b 05 d5 2e 00 00 mov 0x2ed5(%rip),%rax # 3ff0 <_ITM_registerTMCloneTable@Base>
111b: 48 85 c0 test %rax,%rax
111e: 74 08 je 1128 <register_tm_clones+0x38>
1120: ff e0 jmp *%rax
1122: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
1128: c3 ret
1129: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001130 <__do_global_dtors_aux>:
1130: f3 0f 1e fa endbr64
1134: 80 3d d5 2e 00 00 00 cmpb $0x0,0x2ed5(%rip) # 4010 <__TMC_END__>
113b: 75 2b jne 1168 <__do_global_dtors_aux+0x38>
113d: 55 push %rbp
113e: 48 83 3d b2 2e 00 00 cmpq $0x0,0x2eb2(%rip) # 3ff8 <__cxa_finalize@GLIBC_2.2.5>
1145: 00
1146: 48 89 e5 mov %rsp,%rbp
1149: 74 0c je 1157 <__do_global_dtors_aux+0x27>
114b: 48 8b 3d b6 2e 00 00 mov 0x2eb6(%rip),%rdi # 4008 <__dso_handle>
1152: e8 e9 fe ff ff call 1040 <__cxa_finalize@plt>
1157: e8 64 ff ff ff call 10c0 <deregister_tm_clones>
115c: c6 05 ad 2e 00 00 01 movb $0x1,0x2ead(%rip) # 4010 <__TMC_END__>
1163: 5d pop %rbp
1164: c3 ret
1165: 0f 1f 00 nopl (%rax)
1168: c3 ret
1169: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
0000000000001170 <frame_dummy>:
1170: f3 0f 1e fa endbr64
1174: e9 77 ff ff ff jmp 10f0 <register_tm_clones>
Disassembly of section .fini:
000000000000117c <_fini>:
117c: f3 0f 1e fa endbr64
1180: 48 83 ec 08 sub $0x8,%rsp
1184: 48 83 c4 08 add $0x8,%rsp
1188: c3 ret
|
-Os
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 5