Skip to content

Instantly share code, notes, and snippets.

/gcc differences Secret

Created December 21, 2015 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/293f85221aee2b24b356 to your computer and use it in GitHub Desktop.
Save anonymous/293f85221aee2b24b356 to your computer and use it in GitHub Desktop.
_x86_64-Linux-Ubuntu-14.04/gcc-build/build-x86_64-unknown-linux-gnu/fixincludes/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/build-x86_64-unknown-linux-gnu/libiberty/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/gcc/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/fixincludes/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/libbacktrace/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/libcpp/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/cilk-abi-cilk-for.o
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/.libs/cilk-abi-cilk-for.o
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/.libs/libcilkrts.so.5.0.0
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/.libs/libcilkrts.a
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/.libs/libcilkrts.so.5.0.0T
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libatomic/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/stamp-libstdc++convenience
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2g.gch
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/extc++.h.gch/O2g.gch
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/stdtr1c++.h.gch/O2g.gch
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libsanitizer/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libvtv/config.log
_x86_64-Linux-Ubuntu-14.04/gcc-build/libiberty/config.log
_x86_64-Linux-Ubuntu-14.04/stage/opt/pq/0/mount/resolve/parts/pq-gcc/4.9.1/03a64ca-g/900e43b-h/lib/libcilkrts.so.5.0.0
_x86_64-Linux-Ubuntu-14.04/stage/opt/pq/0/mount/resolve/parts/pq-gcc/4.9.1/03a64ca-g/900e43b-h/lib/libcilkrts.a
_x86_64-Linux-Ubuntu-14.04/gcc-4.9.1/fixincludes/tests/base/rtldef/decc$types.h
@lvm:~/work/testing [0]
$ objdump -d 3/_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/.libs/cilk-abi-cilk-for.o > 3.objdump
@lvm:~/work/testing [0]
$ objdump -d 4/_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrts/.libs/cilk-abi-cilk-for.o > 4.objdump
@lvm:~/work/testing [0]
$ vimdiff 3.objdump 4.objdump
3/_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkrt| 4/_x86_64-Linux-Ubuntu-14.04/gcc-build/x86_64-unknown-linux-gnu/libcilkr
|
|
Disassembly of section .text: | Disassembly of section .text:
|
0000000000000000 <_Z9grainsizeIjEiiT_>: | 0000000000000000 <_Z9grainsizeIjEiiT_>:
0: 85 ff test %edi,%edi | 0: 85 ff test %edi,%edi
+ +--140 lines: 2: 89 f8 mov %edi,%eax------------------|+ +--140 lines: 2: 89 f8 mov %edi,%eax-----------------
1b0: 55 push %rbp | 1b0: 55 push %rbp
1b1: 48 89 e5 mov %rsp,%rbp | 1b1: 48 89 e5 mov %rsp,%rbp
1b4: 41 57 push %r15 | 1b4: 41 57 push %r15
1b6: 41 56 push %r14 | 1b6: 41 56 push %r14
1b8: 41 55 push %r13 | 1b8: 41 55 push %r13
1ba: 41 54 push %r12 | 1ba: 41 54 push %r12
1bc: 49 89 ff mov %rdi,%r15 | 1bc: 49 89 fc mov %rdi,%r12
1bf: 53 push %rbx | 1bf: 53 push %rbx
1c0: 48 8d 9d 70 ff ff ff lea -0x90(%rbp),%rbx | 1c0: 48 8d 9d 70 ff ff ff lea -0x90(%rbp),%rbx
1c7: 49 89 d6 mov %rdx,%r14 | 1c7: 41 89 d7 mov %edx,%r15d
1ca: 45 89 c4 mov %r8d,%r12d | 1ca: 49 89 ce mov %rcx,%r14
1cd: 45 89 cd mov %r9d,%r13d | 1cd: 4d 89 c5 mov %r8,%r13
1d0: 48 83 ec 78 sub $0x78,%rsp | 1d0: 48 83 ec 78 sub $0x78,%rsp
1d4: 48 89 df mov %rbx,%rdi | 1d4: 48 89 df mov %rbx,%rdi
1d7: 89 b5 64 ff ff ff mov %esi,-0x9c(%rbp) | 1d7: 48 89 b5 60 ff ff ff mov %rsi,-0xa0(%rbp)
1dd: 48 89 8d 68 ff ff ff mov %rcx,-0x98(%rbp) | 1de: 44 89 8d 6c ff ff ff mov %r9d,-0x94(%rbp)
1e4: e8 00 00 00 00 callq 1e9 <_cilk_spn_1+0x39> | 1e5: e8 00 00 00 00 callq 1ea <_cilk_spn_1+0x3a>
1e9: 48 8b 45 80 mov -0x80(%rbp),%rax | 1ea: 48 8b 45 80 mov -0x80(%rbp),%rax
1ed: 48 8b bd 78 ff ff ff mov -0x88(%rbp),%rdi | 1ee: 48 8b 8d 78 ff ff ff mov -0x88(%rbp),%rcx
1f4: 48 83 ec 08 sub $0x8,%rsp | 1f5: 48 83 ec 08 sub $0x8,%rsp
1f8: 8b b5 64 ff ff ff mov -0x9c(%rbp),%esi | 1f9: 48 8b b5 60 ff ff ff mov -0xa0(%rbp),%rsi
1fe: 48 8b 95 68 ff ff ff mov -0x98(%rbp),%rdx | 200: 8b bd 6c ff ff ff mov -0x94(%rbp),%edi
205: 4d 89 f9 mov %r15,%r9 | 206: 45 89 f8 mov %r15d,%r8d
208: 48 8b 48 60 mov 0x60(%rax),%rcx | 209: 48 8b 50 60 mov 0x60(%rax),%rdx
20c: 41 89 f0 mov %esi,%r8d | 20d: 49 89 f1 mov %rsi,%r9
20f: 44 89 ee mov %r13d,%esi | 210: 8b 75 10 mov 0x10(%rbp),%esi
212: 48 89 4d c0 mov %rcx,-0x40(%rbp) | 213: 48 89 55 c0 mov %rdx,-0x40(%rbp)
216: 48 8b 48 68 mov 0x68(%rax),%rcx | 217: 48 8b 50 68 mov 0x68(%rax),%rdx
21a: 48 89 4d c8 mov %rcx,-0x38(%rbp) | 21b: 48 89 55 c8 mov %rdx,-0x38(%rbp)
21e: 48 8b 48 60 mov 0x60(%rax),%rcx | 21f: 48 8b 50 60 mov 0x60(%rax),%rdx
222: 48 89 4f 50 mov %rcx,0x50(%rdi) | 223: 48 89 51 50 mov %rdx,0x50(%rcx)
226: 48 8b 48 68 mov 0x68(%rax),%rcx | 227: 48 8b 50 68 mov 0x68(%rax),%rdx
22a: 48 89 4f 58 mov %rcx,0x58(%rdi) | 22b: 48 89 51 58 mov %rdx,0x58(%rcx)
22e: 48 8d 4b 50 lea 0x50(%rbx),%rcx | 22f: 48 8d 53 50 lea 0x50(%rbx),%rdx
232: 48 c7 40 60 00 00 00 movq $0x0,0x60(%rax) | 233: 48 c7 40 60 00 00 00 movq $0x0,0x60(%rax)
239: 00 | 23a: 00
23a: 48 89 48 68 mov %rcx,0x68(%rax) | 23b: 48 89 50 68 mov %rdx,0x68(%rax)
23e: 48 8b 08 mov (%rax),%rcx | 23f: 48 8b 10 mov (%rax),%rdx
241: 48 89 39 mov %rdi,(%rcx) | 242: 48 89 0a mov %rcx,(%rdx)
244: 48 83 c1 08 add $0x8,%rcx | 245: 48 83 c2 08 add $0x8,%rdx
248: 44 89 e7 mov %r12d,%edi | 249: 4c 89 f1 mov %r14,%rcx
24b: 48 89 08 mov %rcx,(%rax) | 24c: 48 89 10 mov %rdx,(%rax)
24e: ff 75 10 pushq 0x10(%rbp) | 24f: 41 54 push %r12
251: 4c 89 f1 mov %r14,%rcx | 251: 4c 89 ea mov %r13,%rdx
254: 83 8d 70 ff ff ff 04 orl $0x4,-0x90(%rbp) | 254: 83 8d 70 ff ff ff 04 orl $0x4,-0x90(%rbp)
25b: e8 a0 00 00 00 callq 300 <_Z18cilk_for_recursiv| 25b: e8 a0 00 00 00 callq 300 <_Z18cilk_for_recursi
260: 81 bd 70 ff ff ff 00 cmpl $0x1000000,-0x90(%rbp) | 260: 81 bd 70 ff ff ff 00 cmpl $0x1000000,-0x90(%rbp)
267: 00 00 01 | 267: 00 00 01
26a: 58 pop %rax | 26a: 58 pop %rax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment