|
|
1.1 root 1: #!/bin/csh
2: # @(#)fixedpoint.csh 1.1 (Sun) 2/3/86
3: # compiler fixed-point test
4: #
5: set bin = /usr/src/bin
6: set cpp = /usr/src/lib/cpp
7: set libc = /usr/src/lib/libc
8: set pcc = /usr/src/sun/lib/pcc
9: set c2 = /usr/src/sun/lib/c2
10: set as = /usr/src/sun/bin/as
11: set ld = /usr/src/bin/ld
12: set echo
13: #
14: # step 1: make new components using existing components.
15: # We must link the cc command with the new library, because
16: # it uses some routines that are not present in the old one.
17: #
18: cd $libc ; make clean ; make
19: cd $bin ; /bin/cc -c -O -o cc cc.c $libc/libc.a
20: cd $cpp ; make clean ; make
21: cd $pcc ; make clean ; make
22: cd $c2 ; make clean ; make
23: cd $as ; make clean ; make
24: cd $ld ; make clean ; make
25: #
26: # step 2: Install the new components, except for the library.
27: # The library we have is new but compiled with the old compiler.
28: #
29: cd $bin ; install cc /usr/new/cc
30: cd $cpp ; install cpp /usr/new/cpp
31: cd $pcc ; install comp /usr/new/ccom
32: cd $c2 ; install c2 /usr/new/c2
33: cd $as ; install as /usr/new/as
34: cd $ld ; install ld /usr/new/ld
35: #
36: # step 3: Make a library with the new components
37: # and install it. Save a copy of the old library in case
38: # we want to do code comparisons later.
39: #
40: cd $libc ; mv libc.a libc.oldcomp
41: make clean ; make CC="/usr/new/cc -tp02a"
42: install libc.a /usr/new/libc.a ; ranlib /usr/new/libc.a
43: #
44: # step 4: Make new components with the new components
45: # and link them with the new library.
46: #
47: cd $bin ; rm -f cc ; make cc CC="/usr/new/cc -tp02alc"
48: cd $cpp ; make clean ; make CC="/usr/new/cc -tp02alc"
49: cd $pcc ; make clean ; make CC="/usr/new/cc -tp02alc"
50: cd $c2 ; make clean ; make CC="/usr/new/cc -tp02alc"
51: cd $as ; make clean ; make CC="/usr/new/cc -tp02alc"
52: cd $ld ; make clean ; make CC="/usr/new/cc -tp02alc"
53: #
54: # Now repeat steps 2-4.
55: # First install new components...
56: #
57: cd $bin ; install cc /usr/new/cc
58: cd $cpp ; install cpp /usr/new/cpp
59: cd $pcc ; install comp /usr/new/ccom
60: cd $c2 ; install c2 /usr/new/c2
61: cd $as ; install as /usr/new/as
62: cd $ld ; install ld /usr/new/ld
63: #
64: # ...make and install a new library
65: #
66: cd $libc ; mv libc.a libc.nisei
67: make clean ; make CC="/usr/new/cc -tp02a"
68: install libc.a /usr/new/libc.a ; ranlib /usr/new/libc.a
69: #
70: # ...rebuild the new components
71: #
72: cd $bin ; rm -f cc ; make cc CC="/usr/new/cc -tp02alc"
73: cd $cpp ; make clean ; make CC="/usr/new/cc -tp02alc"
74: cd $pcc ; make clean ; make CC="/usr/new/cc -tp02alc"
75: cd $c2 ; make clean ; make CC="/usr/new/cc -tp02alc"
76: cd $as ; make clean ; make CC="/usr/new/cc -tp02alc"
77: cd $ld ; make clean ; make CC="/usr/new/cc -tp02alc"
78: #
79: # ...and if the results differ, something is broken.
80: #
81: cd $bin ; cmp cc /usr/new/cc
82: cd $cpp ; cmp cpp /usr/new/cpp
83: cd $pcc ; cmp comp /usr/new/ccom
84: cd $c2 ; cmp c2 /usr/new/c2
85: cd $as ; cmp as /usr/new/as
86: cd $ld ; cmp ld /usr/new/ld
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.