equal
deleted
inserted
replaced
|
1 cd /var/tmp |
|
2 |
|
3 cat > a.c <<EOT |
|
4 #include <tiffconf.h> |
|
5 #include <stdio.h> |
|
6 |
|
7 int main(void) { |
|
8 printf("8=%d\n", sizeof(TIFF_INT64_T)); |
|
9 printf("8=%d\n", sizeof(TIFF_UINT64_T)); |
|
10 printf("%d=%d\n", sizeof(ssize_t), sizeof(TIFF_SSIZE_T)); |
|
11 } |
|
12 EOT |
|
13 |
|
14 GCC=gcc |
|
15 CC=/ws/on12-tools/SUNWspro/solarisstudio12.4/bin/cc |
|
16 |
|
17 $GCC -m32 a.c && ./a.out |
|
18 $GCC -m64 a.c && ./a.out |
|
19 $CC -m32 a.c && ./a.out |
|
20 $CC -m64 a.c && ./a.out |
|
21 |
|
22 Output should be: |
|
23 8=8 |
|
24 8=8 |
|
25 4=4 |
|
26 ... |
|
27 8=8 |
|
28 8=8 |
|
29 8=8 |
|
30 ... |
|
31 8=8 |
|
32 8=8 |
|
33 4=4 |
|
34 ... |
|
35 8=8 |
|
36 8=8 |
|
37 8=8 |
|
38 |