Fixed some analysis problems...
[repair.git] / Repair / RepairCompiler / MCC / README
1 Note:  The compiler requires jdk version 1.4 or later.
2
3 1. Building the compiler
4 ---------------------------------------------------------------------
5 To build the compiler:
6 cd MCC
7 make
8
9 2. Compiling the filesystem example:
10 ---------------------------------------------------------------------
11 A. First compile the specification checker:
12
13 cd MCC
14 java -cp .. MCC.Compiler -aggressivesearch -prunequantifiernodes specs/filesystem/test3
15
16 B. Next move files to the runtime directory:
17
18 cp size.* Runtime
19 cp specs/filesystem/test3_aux.* Runtime
20 cp specs/filesystem/test3.cc Runtime
21
22 C. Next build the runtime:
23
24 cd Runtime
25 mkdir specs
26 cd specs
27 ln -s .. filesystem
28 cd ..
29 ./buildruntime
30 g++ -O9 -c test3_aux.cc
31 g++ -O9 danfile.cc *.o -o danfile
32
33 D. To run:
34
35 ./danfile 0 (create filesystem)
36
37 ./danfile 1 (write file to filesytem, interrupt with ctrl-C to
38 introduce an error)
39
40 ./danfile x (check & repair filesystem)
41