5 echo -singleTM single machine committing transactions
6 echo -stmdebug STM debug
7 echo "-stmstats prints single machine commit (stm) statistics for the benchmark"
8 echo -fastmemcpy use fast memcpy
9 echo -sandbox sandbox transactions
10 echo -dcopts conflict optimizations for transactional memory
11 echo -transstats generates transaction stats on commits and aborts
12 echo -inlineatomic depth inline methods inside of transactions to specified depth
13 echo "-stmarray partial array treatment"
14 echo "-dualview dual view of arrays"
15 echo "-hybrid use fission only when it looks like a good choice"
16 echo "-numa numa aware"
19 echo -dsm distributed shared memory
20 echo -abortreaders abort readers immediately
21 echo -trueprob double - probabiltiy of true branch
22 echo -dsmcaching -enable caching in dsm runtime
25 echo -builddir setup different build directory
26 echo -robustroot set up the ROBUSTROOT to directory other than default one
27 echo -readset turn on readset
28 echo -mac distributed shared memory mac support
29 echo -check generate check code
30 echo -dmalloc link in dmalloc
31 echo -64bit compile for 64 bit machine
32 echo -32bit compile for 32 bit machine
33 echo -joptimize java compiler optimizations
34 echo -recover compile task code
35 echo -fastcheck fast checkpointing for Bristlecone
36 echo -specdir directory
37 echo -printflat print out flat representation
38 echo -selfloop task - this task cannot self loop forever
39 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
40 echo -taskstate do task state analysis
41 echo -tagstate do tag state analysis
42 echo -scheduling do task scheduling
43 echo -multicore generate multi-core version binary
44 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
45 echo "-cacheflush enable cache flush in raw version binary (should be used togethere with -raw)"
46 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
47 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
48 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
49 echo -printscheduling print out scheduling graphs
50 echo -printschedulesim print out scheduling simulator result graphs
51 echo -abcclose close the array boundary check
52 echo "-tilera generate tilera version binary (should be used together with -multicore"
53 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
54 echo "-raw generate raw version binary (should be used together with -multicore)"
55 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
56 echo -threadsimulate generate multi-thread simulate version binary
57 echo -multicoregc generate multi-core binary with garbage collection
58 echo -optional enable optional
59 echo -debug generate debug symbols
60 echo -prefetch do prefetch analysis
61 echo -garbagestats Print garbage collection statistics
62 echo -webinterface enable web interface
63 echo -runtimedebug printout runtime debug messages
64 echo "-thread use support for multiple threads"
65 echo "-optimize call gcc with -O9 (optimize)"
66 echo "-nooptimize call gcc with -O0 (do not optimize)"
67 echo -curdir directory
68 echo -mainclass class with main method
70 echo -nojava do not run bristlecone compiler
71 echo -instructionfailures inject code for instructionfailures
72 echo -profile build with profile options
73 echo -accurateprofile build with accurate profile information including pre/post task processing info
74 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
75 echo "-enable-assertions execute assert statements during compilation"
76 echo -justanalyze exit after compiler analyses complete
77 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
78 echo "-disall execute to collect whole distribution"
79 echo "-disstart specify the start number of distribution information collection"
80 echo -assembly generate assembly
84 tmpbuilddirectory="tmpbuilddirectory"
88 ROBUSTROOT=~/research/Robust/src
89 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
90 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
91 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
92 REPAIRROOT=~/research/Repair/RepairCompiler/
114 ACCURATEPROFILEFLAG=false
117 THREADSIMULATEFLAG=false;
118 MULTICOREGCFLAG=false;
129 EXITAFTERANALYSIS=false
141 if [[ $1 = '-help' ]]
145 elif [[ $1 = '-justanalyze' ]]
147 EXITAFTERANALYSIS=true
148 elif [[ $1 = '-assembly' ]]
151 elif [[ $1 = '-abortreaders' ]]
154 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
155 JAVAOPTS="$JAVAOPTS -abortreaders"
156 elif [[ $1 = '-sandbox' ]]
159 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
160 JAVAOPTS="$JAVAOPTS -sandbox"
161 elif [[ $1 = '-numa' ]]
163 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
165 elif [[ $1 = '-robustroot' ]]
169 elif [[ $1 = '-builddir' ]]
171 tmpbuilddirectory="$2"
173 elif [[ $1 = '-nojava' ]]
176 elif [[ $1 = '-garbagestats' ]]
178 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
179 elif [[ $1 = '-64bit' ]]
181 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
182 elif [[ $1 = '-32bit' ]]
184 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
185 elif [[ $1 = '-fastcheck' ]]
187 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
188 JAVAOPTS="$JAVAOPTS -fastcheck"
194 elif [[ $1 = '-mainclass' ]]
196 JAVAOPTS="$JAVAOPTS -mainclass $2"
198 elif [[ $1 = '-selfloop' ]]
200 JAVAOPTS="$JAVAOPTS -selfloop $2"
202 elif [[ $1 = '-excprefetch' ]]
204 JAVAOPTS="$JAVAOPTS -excprefetch $2"
206 elif [[ $1 = '-arraypad' ]]
208 JAVAOPTS="$JAVAOPTS -arraypad"
209 elif [[ $1 = '-dsm' ]]
211 JAVAOPTS="$JAVAOPTS -dsm"
213 elif [[ $1 = '-fastmemcpy' ]]
216 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
217 elif [[ $1 = '-singleTM' ]]
219 JAVAOPTS="$JAVAOPTS -singleTM"
220 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
222 elif [[ $1 = '-stmarray' ]]
224 JAVAOPTS="$JAVAOPTS -stmarray"
225 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
227 elif [[ $1 = '-dualview' ]]
229 JAVAOPTS="$JAVAOPTS -dualview"
230 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
232 elif [[ $1 = '-readset' ]]
234 JAVAOPTS="$JAVAOPTS -readset"
235 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
236 elif [[ $1 = '-stmdebug' ]]
238 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
239 elif [[ $1 = '-stmstats' ]]
241 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
242 elif [[ $1 = '-stmlog' ]]
244 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
245 elif [[ $1 = '-prefetch' ]]
247 JAVAOPTS="$JAVAOPTS -prefetch"
248 elif [[ $1 = '-transstats' ]]
250 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
251 elif [[ $1 = '-printflat' ]]
253 JAVAOPTS="$JAVAOPTS -printflat"
254 elif [[ $1 = '-trueprob' ]]
256 JAVAOPTS="$JAVAOPTS -trueprob $2"
258 elif [[ $1 = '-inlineatomic' ]]
260 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
262 elif [[ $1 = '-mac' ]]
264 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
265 elif [[ $1 = '-profile' ]]
268 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
269 elif [[ $1 = '-accurateprofile' ]]
271 ACCURATEPROFILEFLAG=true
272 elif [[ $1 = '-useio' ]]
275 elif [[ $1 = '-taskstate' ]]
277 JAVAOPTS="$JAVAOPTS -taskstate"
278 elif [[ $1 = '-tagstate' ]]
280 JAVAOPTS="$JAVAOPTS -tagstate"
281 elif [[ $1 = '-scheduling' ]]
283 JAVAOPTS="$JAVAOPTS -scheduling"
284 elif [[ $1 = '-multicore' ]]
287 JAVAOPTS="$JAVAOPTS -multicore"
288 elif [[ $1 = '-numcore' ]]
290 JAVAOPTS="$JAVAOPTS -numcore $2"
293 elif [[ $1 = '-raw' ]]
296 JAVAOPTS="$JAVAOPTS -raw"
297 elif [[ $1 = '-tilera' ]]
300 elif [[ $1 = '-tileraconfig' ]]
304 elif [[ $1 = '-cacheflush' ]]
307 elif [[ $1 = '-rawconfig' ]]
311 elif [[ $1 = '-interrupt' ]]
314 elif [[ $1 = '-threadsimulate' ]]
316 THREADSIMULATEFLAG=true
317 elif [[ $1 = '-abcclose' ]]
319 JAVAOPTS="$JAVAOPTS -abcclose"
320 elif [[ $1 = '-optional' ]]
322 JAVAOPTS="$JAVAOPTS -optional"
324 elif [[ $1 = '-multicoregc' ]]
327 JAVAOPTS="$JAVAOPTS -multicoregc"
328 elif [[ $1 = '-dmalloc' ]]
331 elif [[ $1 = '-recover' ]]
334 JAVAOPTS="$JAVAOPTS -task"
335 elif [[ $1 = '-useprofile' ]]
337 JAVAOPTS="$JAVAOPTS -useprofile $2"
339 elif [[ $1 = '-webinterface' ]]
341 JAVAOPTS="$JAVAOPTS -webinterface"
342 elif [[ $1 = '-instructionfailures' ]]
344 JAVAOPTS="$JAVAOPTS -instructionfailures"
345 elif [[ $1 = '-joptimize' ]]
347 JAVAOPTS="$JAVAOPTS -optimize"
348 elif [[ $1 = '-dcopts' ]]
350 JAVAOPTS="$JAVAOPTS -dcopts"
351 elif [[ $1 = '-delaycomp' ]]
353 JAVAOPTS="$JAVAOPTS -delaycomp"
354 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
355 elif [[ $1 = '-hybrid' ]]
357 JAVAOPTS="$JAVAOPTS -hybrid"
358 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
359 elif [[ $1 = '-minimize' ]]
361 JAVAOPTS="$JAVAOPTS -minimize"
363 elif [[ $1 = '-mlp' ]]
366 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread"
367 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
371 elif [[ $1 = '-mlpdebug' ]]
373 JAVAOPTS="$JAVAOPTS -mlpdebug"
375 elif [[ $1 = '-check' ]]
378 JAVAOPTS="$JAVAOPTS -conscheck"
379 elif [[ $1 = '-enable-assertions' ]]
381 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
382 elif [[ $1 = '-specdir' ]]
388 elif [[ $1 = '-debug' ]]
391 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
392 elif [[ $1 = '-rawpath' ]]
395 elif [[ $1 = '-runtimedebug' ]]
397 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
398 elif [[ $1 = '-dsmcaching' ]]
400 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
401 elif [[ $1 = '-rangeprefetch' ]]
403 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
404 elif [[ $1 = '-nooptimize' ]]
406 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
407 elif [[ $1 = '-optimize' ]]
409 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
410 elif [[ $1 = '-thread' ]]
412 JAVAOPTS="$JAVAOPTS -thread"
413 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
415 elif [[ $1 = '-recovery' ]]
417 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
419 elif [[ $1 = '-distributioninfo' ]]
421 JAVAOPTS="$JAVAOPTS -distributioninfo"
422 elif [[ $1 = '-disall' ]]
424 JAVAOPTS="$JAVAOPTS -disall"
425 elif [[ $1 = '-disstart' ]]
427 JAVAOPTS="$JAVAOPTS -disstart $2"
429 elif [[ $1 = '-noc' ]]
432 elif [[ $1 = '-curdir' ]]
436 elif [[ $1 = '-outputdir' ]]
438 JAVAOPTS="$JAVAOPTS -outputdir $2"
441 SRCFILES="$SRCFILES $1"
446 BUILDDIR="$CURDIR/$tmpbuilddirectory"
454 if $CHECKFLAG #Generate structure files for repair tool
456 JAVAOPTS="$JAVAOPTS -struct structfile"
466 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
468 #base bristlecone files
469 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
475 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
478 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
481 #threading java stuff
482 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
485 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
488 # Build bristlecone/java sources
492 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
493 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
494 -dir $BUILDDIR $JAVAOPTS $SRCFILES
498 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
501 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
502 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
509 if $EXITAFTERANALYSIS
514 # Build all of the consistency specs
516 if $CHECKFLAG # CHECKFLAG
519 mkdir $BUILDDIR/specdir
520 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
522 echo > $BUILDDIR/specs
524 # compile specs into C code
525 for i in * # iterate over all directories
527 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
530 cat $BUILDDIR/structfile.struct $i.label > $i.struct
531 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
532 cp size.[c,h] $BUILDDIR/specdir
533 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
534 echo $i >> $BUILDDIR/specs
536 done # iterate over all directories
542 echo > $BUILDDIR/checkers.h
543 for i in `cat $BUILDDIR/specs`
545 gcc -O0 -g -fbounds-check -c $i\_aux.c
546 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
550 #build and link everything
555 MAKEFILE="Makefile.raw"
561 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
565 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
570 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
575 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
579 then # profile version
580 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
583 if $ACCURATEPROFILEFLAG
584 then # accurateprofile version
585 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
590 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
594 then #INTERRUPT version
595 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
596 fi #INTERRUPT version
600 MAKEFILE="$MAKEFILE.io"
601 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
603 MAKEFILE="$MAKEFILE.$RAWCONFIG"
606 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
611 cp ../Runtime/RAW/*.c ./
612 cp ../Runtime/RAW/*.h ./
613 cp ../Runtime/RAW/*.S ./
614 cp ../Runtime/RAW/*.s ./
615 cp ../$tmpbuilddirectory/*.c ./
616 cp ../$tmpbuilddirectory/*.h ./
622 TILERADIR="$CURDIR/tilera"
623 MAKEFILE="Makefile.tilera.$TILERACONFIG"
624 SIMHVC="sim.hvc.$TILERACONFIG"
625 PCIHVC="pci.hvc.$TILERACONFIG"
631 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
635 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
640 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
645 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
649 then # profile version
650 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
653 if $ACCURATEPROFILEFLAG
654 then # accurateprofile version
655 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
660 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
664 then #INTERRUPT version
665 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
666 fi #INTERRUPT version
669 then #MULTICOREGC version
670 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
673 cp $ROBUSTROOT/Tilera/Runtime/$MAKEFILE ./Makefile
674 cp $ROBUSTROOT/Tilera/Runtime/$SIMHVC ./sim.hvc
675 cp $ROBUSTROOT/Tilera/Runtime/$PCIHVC ./pci.hvc
676 cp $ROBUSTROOT/Tilera/Runtime/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
677 cp ../Runtime/multicoretask.c ./
678 cp ../Runtime/multicoreruntime.c ./
679 cp ../Runtime/Queue.c ./
680 cp ../Runtime/file.c ./
681 cp ../Runtime/math.c ./
682 cp ../Runtime/object.c ./
683 cp ../Runtime/GenericHashtable.c ./
684 cp ../Runtime/SimpleHash.c ./
685 cp ../Runtime/ObjectHash.c ./
686 cp ../Runtime/socket.c ./
687 cp ../Runtime/mem.c ./
688 cp ../Runtime/multicoregarbage.c ./
689 cp ../Runtime/GenericHashtable.h ./
690 cp ../Runtime/mem.h ./
691 cp ../Runtime/multicoreruntime.h ./
692 cp ../Runtime/object.h ./
693 cp ../Runtime/ObjectHash.h ./
694 cp ../Runtime/Queue.h ./
695 cp ../Runtime/runtime.h ./
696 cp ../Runtime/SimpleHash.h ./
697 cp ../Runtime/multicoregc.h ./
698 cp ../Runtime/multicoregarbage.h ./
699 cp ../Runtime/multicorehelper.h ./
700 cp ../Tilera/Runtime/*.c ./
701 cp ../Tilera/Runtime/*.h ./
702 cp ../Tilera/lib/* ./
703 cp ../$tmpbuilddirectory/*.c ./
704 cp ../$tmpbuilddirectory/*.h ./
708 else #!RAWFLAG && !TILERAFLAG
711 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
716 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
718 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
721 FILES="$RUNTIMEFILE \
722 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
723 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
724 $ROBUSTROOT/Runtime/ObjectHash.c \
725 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
726 $ROBUSTROOT/Runtime/math.c \
727 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
731 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
736 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
743 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
744 FILES="$FILES $DSMRECOVERYRUNTIME/trans.c $DSMRECOVERYRUNTIME/mcpileq.c $DSMRECOVERYRUNTIME/objstr.c $DSMRECOVERYRUNTIME/dstm.c $DSMRECOVERYRUNTIME/mlookup.c $DSMRECOVERYRUNTIME/clookup.c $DSMRECOVERYRUNTIME/llookup.c $DSMRECOVERYRUNTIME/tlookup.c $DSMRECOVERYRUNTIME/threadnotify.c $DSMRECOVERYRUNTIME/dstmserver.c $DSMRECOVERYRUNTIME/plookup.c $DSMRECOVERYRUNTIME/ip.c $DSMRECOVERYRUNTIME/queue.c $DSMRECOVERYRUNTIME/prelookup.c $DSMRECOVERYRUNTIME/machinepile.c $ROBUSTROOT/Runtime/localobjects.c $ROBUSTROOT/Runtime/thread.c $DSMRECOVERYRUNTIME/sockpool.c $DSMRECOVERYRUNTIME/addUdpEnhance.c $DSMRECOVERYRUNTIME/signal.c $DSMRECOVERYRUNTIME/gCollect.c $DSMRECOVERYRUNTIME/addPrefetchEnhance.c $DSMRECOVERYRUNTIME/dsmlock.c"
746 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
747 FILES="$FILES $DSMRUNTIME/trans.c $DSMRUNTIME/mcpileq.c $DSMRUNTIME/objstr.c $DSMRUNTIME/dstm.c $DSMRUNTIME/clookup.c $DSMRUNTIME/llookup.c $DSMRUNTIME/threadnotify.c $DSMRUNTIME/dstmserver.c $DSMRUNTIME/plookup.c $DSMRUNTIME/ip.c $DSMRUNTIME/queue.c $DSMRUNTIME/altprelookup.c $DSMRUNTIME/machinepile.c $ROBUSTROOT/Runtime/localobjects.c $ROBUSTROOT/Runtime/thread.c $DSMRUNTIME/sockpool.c $DSMRUNTIME/addUdpEnhance.c $DSMRUNTIME/signal.c $DSMRUNTIME/gCollect.c $DSMRUNTIME/addPrefetchEnhance.c $DSMRUNTIME/dsmlock.c $DSMRUNTIME/prefetch.c $DSMRUNTIME/altmlookup.c"
752 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
753 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
758 FILES="$FILES $STMRUNTIME/sandbox.c"
763 FILES="$FILES $DSMRUNTIME/abortreaders.c"
768 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
773 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
774 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
775 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
780 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
783 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
785 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
788 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
790 if $THREADSIMULATEFLAG
792 # -lpthread for pthread functions, -lrt for message queue functions
793 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
799 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
800 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
805 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
810 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
811 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
816 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
821 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
822 -c $tmpbuilddirectory/methods.c -lm
827 gcc $INCLUDES $EXTRAOPTIONS \
828 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
830 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
831 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin