Last active
August 29, 2015 14:20
-
-
Save shigemk2/6ca1890e2f51192e4cd9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void inc(int &x) { | |
++x; | |
} | |
void inc(int *x) { | |
++*x; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param.o: ファイル形式 elf64-x86-64 | |
セクション .text の逆アセンブル: | |
0000000000000000 <_Z3incRi>: | |
0: 83 07 01 addl $0x1,(%rdi) | |
3: c3 retq | |
0000000000000004 <_Z3incPi>: | |
4: 83 07 01 addl $0x1,(%rdi) | |
7: c3 retq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -O -fomit-frame-pointer -m64 -c -g param.cpp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment