Created
May 10, 2011 13:34
-
-
Save vladimir-vg/964474 to your computer and use it in GitHub Desktop.
This file contains 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
$ cat test1.c | |
#include <stdio.h> | |
int main() { | |
int *a; | |
printf("addr:%d\n", (int)a); | |
return 0; | |
} | |
$ cat test2.c | |
#include <stdio.h> | |
int main() { | |
int ************a; | |
printf("addr:%d\n", (int)a); | |
return 0; | |
} | |
$ gcc -O0 test1.c -S && gcc -O0 test2.c -S | |
$ diff test1.s test2.s | |
1c1 | |
< .file "test1.c" | |
--- | |
> .file "test2.c" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment