Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat yoba.cpp
- #include <tuple>
- using namespace std;
- struct YOBA {
- int x;
- bool operator == (const YOBA &otherYoba) const
- {
- return x == otherYoba.x;
- }
- };
- bool unique_f (int a1, char a2, YOBA a3, int b1, char b2, YOBA b3)
- {
- return (tie (a1, a2, a3) == tie (b1, b2, b3));
- }
- $ g++ -O2 -std=c++11 -c yoba.cpp
- $ objdump -d --demangle yoba.o
- yoba.o: формат файла elf32-i386
- Дизассемблирование раздела .text:
- 00000000 <unique_f(int, char, YOBA, int, char, YOBA)>:
- 0: 53 push %ebx
- 1: 8b 5c 24 08 mov 0x8(%esp),%ebx
- 5: 31 c0 xor %eax,%eax
- 7: 39 5c 24 14 cmp %ebx,0x14(%esp)
- b: 8b 54 24 0c mov 0xc(%esp),%edx
- f: 8b 4c 24 18 mov 0x18(%esp),%ecx
- 13: 74 03 je 18 <unique_f(int, char, YOBA, int, char, YOBA)+0x18>
- 15: 5b pop %ebx
- 16: c3 ret
- 17: 90 nop
- 18: 38 d1 cmp %dl,%cl
- 1a: 75 f9 jne 15 <unique_f(int, char, YOBA, int, char, YOBA)+0x15>
- 1c: 8b 44 24 1c mov 0x1c(%esp),%eax
- 20: 39 44 24 10 cmp %eax,0x10(%esp)
- 24: 5b pop %ebx
- 25: 0f 94 c0 sete %al
- 28: c3 ret
- $
Advertisement
Add Comment
Please, Sign In to add comment