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
140 if [[ $1 = '-help' ]]
144 elif [[ $1 = '-justanalyze' ]]
146 EXITAFTERANALYSIS=true
147 elif [[ $1 = '-assembly' ]]
150 elif [[ $1 = '-abortreaders' ]]
153 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
154 JAVAOPTS="$JAVAOPTS -abortreaders"
155 elif [[ $1 = '-sandbox' ]]
158 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
159 JAVAOPTS="$JAVAOPTS -sandbox"
160 elif [[ $1 = '-numa' ]]
162 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
164 elif [[ $1 = '-robustroot' ]]
168 elif [[ $1 = '-builddir' ]]
170 tmpbuilddirectory="$2"
172 elif [[ $1 = '-nojava' ]]
175 elif [[ $1 = '-garbagestats' ]]
177 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
178 elif [[ $1 = '-64bit' ]]
180 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
181 elif [[ $1 = '-32bit' ]]
183 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
184 elif [[ $1 = '-fastcheck' ]]
186 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
187 JAVAOPTS="$JAVAOPTS -fastcheck"
193 elif [[ $1 = '-mainclass' ]]
195 JAVAOPTS="$JAVAOPTS -mainclass $2"
197 elif [[ $1 = '-selfloop' ]]
199 JAVAOPTS="$JAVAOPTS -selfloop $2"
201 elif [[ $1 = '-excprefetch' ]]
203 JAVAOPTS="$JAVAOPTS -excprefetch $2"
205 elif [[ $1 = '-arraypad' ]]
207 JAVAOPTS="$JAVAOPTS -arraypad"
208 elif [[ $1 = '-dsm' ]]
210 JAVAOPTS="$JAVAOPTS -dsm"
212 elif [[ $1 = '-fastmemcpy' ]]
215 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
216 elif [[ $1 = '-singleTM' ]]
218 JAVAOPTS="$JAVAOPTS -singleTM"
219 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
221 elif [[ $1 = '-stmarray' ]]
223 JAVAOPTS="$JAVAOPTS -stmarray"
224 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
226 elif [[ $1 = '-dualview' ]]
228 JAVAOPTS="$JAVAOPTS -dualview"
229 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
231 elif [[ $1 = '-readset' ]]
233 JAVAOPTS="$JAVAOPTS -readset"
234 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
235 elif [[ $1 = '-stmdebug' ]]
237 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
238 elif [[ $1 = '-stmstats' ]]
240 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
241 elif [[ $1 = '-stmlog' ]]
243 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
244 elif [[ $1 = '-prefetch' ]]
246 JAVAOPTS="$JAVAOPTS -prefetch"
247 elif [[ $1 = '-transstats' ]]
249 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
250 elif [[ $1 = '-printflat' ]]
252 JAVAOPTS="$JAVAOPTS -printflat"
253 elif [[ $1 = '-trueprob' ]]
255 JAVAOPTS="$JAVAOPTS -trueprob $2"
257 elif [[ $1 = '-inlineatomic' ]]
259 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
261 elif [[ $1 = '-mac' ]]
263 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
264 elif [[ $1 = '-profile' ]]
267 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
268 elif [[ $1 = '-accurateprofile' ]]
270 ACCURATEPROFILEFLAG=true
271 elif [[ $1 = '-useio' ]]
274 elif [[ $1 = '-taskstate' ]]
276 JAVAOPTS="$JAVAOPTS -taskstate"
277 elif [[ $1 = '-tagstate' ]]
279 JAVAOPTS="$JAVAOPTS -tagstate"
280 elif [[ $1 = '-scheduling' ]]
282 JAVAOPTS="$JAVAOPTS -scheduling"
283 elif [[ $1 = '-multicore' ]]
286 JAVAOPTS="$JAVAOPTS -multicore"
287 elif [[ $1 = '-numcore' ]]
289 JAVAOPTS="$JAVAOPTS -numcore $2"
291 elif [[ $1 = '-raw' ]]
294 JAVAOPTS="$JAVAOPTS -raw"
295 elif [[ $1 = '-tilera' ]]
298 elif [[ $1 = '-tileraconfig' ]]
302 elif [[ $1 = '-cacheflush' ]]
305 elif [[ $1 = '-rawconfig' ]]
309 elif [[ $1 = '-interrupt' ]]
312 elif [[ $1 = '-threadsimulate' ]]
314 THREADSIMULATEFLAG=true
315 elif [[ $1 = '-abcclose' ]]
317 JAVAOPTS="$JAVAOPTS -abcclose"
318 elif [[ $1 = '-optional' ]]
320 JAVAOPTS="$JAVAOPTS -optional"
322 elif [[ $1 = '-multicoregc' ]]
325 JAVAOPTS="$JAVAOPTS -multicoregc"
326 elif [[ $1 = '-dmalloc' ]]
329 elif [[ $1 = '-recover' ]]
332 JAVAOPTS="$JAVAOPTS -task"
333 elif [[ $1 = '-useprofile' ]]
335 JAVAOPTS="$JAVAOPTS -useprofile $2"
337 elif [[ $1 = '-webinterface' ]]
339 JAVAOPTS="$JAVAOPTS -webinterface"
340 elif [[ $1 = '-instructionfailures' ]]
342 JAVAOPTS="$JAVAOPTS -instructionfailures"
343 elif [[ $1 = '-joptimize' ]]
345 JAVAOPTS="$JAVAOPTS -optimize"
346 elif [[ $1 = '-dcopts' ]]
348 JAVAOPTS="$JAVAOPTS -dcopts"
349 elif [[ $1 = '-delaycomp' ]]
351 JAVAOPTS="$JAVAOPTS -delaycomp"
352 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
353 elif [[ $1 = '-hybrid' ]]
355 JAVAOPTS="$JAVAOPTS -hybrid"
356 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
357 elif [[ $1 = '-minimize' ]]
359 JAVAOPTS="$JAVAOPTS -minimize"
361 elif [[ $1 = '-mlp' ]]
364 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread"
365 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
369 elif [[ $1 = '-mlpdebug' ]]
371 JAVAOPTS="$JAVAOPTS -mlpdebug"
373 elif [[ $1 = '-check' ]]
376 JAVAOPTS="$JAVAOPTS -conscheck"
377 elif [[ $1 = '-enable-assertions' ]]
379 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
380 elif [[ $1 = '-specdir' ]]
386 elif [[ $1 = '-debug' ]]
389 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
390 elif [[ $1 = '-rawpath' ]]
393 elif [[ $1 = '-runtimedebug' ]]
395 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
396 elif [[ $1 = '-dsmcaching' ]]
398 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
399 elif [[ $1 = '-rangeprefetch' ]]
401 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
402 elif [[ $1 = '-nooptimize' ]]
404 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
405 elif [[ $1 = '-optimize' ]]
407 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
408 elif [[ $1 = '-thread' ]]
410 JAVAOPTS="$JAVAOPTS -thread"
411 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
413 elif [[ $1 = '-recovery' ]]
415 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
417 elif [[ $1 = '-distributioninfo' ]]
419 JAVAOPTS="$JAVAOPTS -distributioninfo"
420 elif [[ $1 = '-disall' ]]
422 JAVAOPTS="$JAVAOPTS -disall"
423 elif [[ $1 = '-disstart' ]]
425 JAVAOPTS="$JAVAOPTS -disstart $2"
427 elif [[ $1 = '-noc' ]]
430 elif [[ $1 = '-curdir' ]]
434 elif [[ $1 = '-outputdir' ]]
436 JAVAOPTS="$JAVAOPTS -outputdir $2"
439 SRCFILES="$SRCFILES $1"
444 BUILDDIR="$CURDIR/$tmpbuilddirectory"
452 if $CHECKFLAG #Generate structure files for repair tool
454 JAVAOPTS="$JAVAOPTS -struct structfile"
464 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
466 #base bristlecone files
467 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
473 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
476 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
479 #threading java stuff
480 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
483 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
486 # Build bristlecone/java sources
490 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx2500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
491 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
492 -dir $BUILDDIR $JAVAOPTS $SRCFILES
496 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
499 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
500 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
507 if $EXITAFTERANALYSIS
512 # Build all of the consistency specs
514 if $CHECKFLAG # CHECKFLAG
517 mkdir $BUILDDIR/specdir
518 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
520 echo > $BUILDDIR/specs
522 # compile specs into C code
523 for i in * # iterate over all directories
525 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
528 cat $BUILDDIR/structfile.struct $i.label > $i.struct
529 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
530 cp size.[c,h] $BUILDDIR/specdir
531 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
532 echo $i >> $BUILDDIR/specs
534 done # iterate over all directories
540 echo > $BUILDDIR/checkers.h
541 for i in `cat $BUILDDIR/specs`
543 gcc -O0 -g -fbounds-check -c $i\_aux.c
544 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
548 #build and link everything
553 MAKEFILE="Makefile.raw"
559 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
563 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
568 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
573 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
577 then # profile version
578 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
581 if $ACCURATEPROFILEFLAG
582 then # accurateprofile version
583 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
588 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
592 then #INTERRUPT version
593 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
594 fi #INTERRUPT version
598 MAKEFILE="$MAKEFILE.io"
599 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
601 MAKEFILE="$MAKEFILE.$RAWCONFIG"
604 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
609 cp ../Runtime/RAW/*.c ./
610 cp ../Runtime/RAW/*.h ./
611 cp ../Runtime/RAW/*.S ./
612 cp ../Runtime/RAW/*.s ./
613 cp ../$tmpbuilddirectory/*.c ./
614 cp ../$tmpbuilddirectory/*.h ./
620 TILERADIR="$CURDIR/tilera"
621 MAKEFILE="Makefile.tilera.$TILERACONFIG"
622 SIMHVC="sim.hvc.$TILERACONFIG"
623 PCIHVC="pci.hvc.$TILERACONFIG"
629 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT"
633 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
638 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
643 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
647 then # profile version
648 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
651 if $ACCURATEPROFILEFLAG
652 then # accurateprofile version
653 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
658 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
662 then #INTERRUPT version
663 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
664 fi #INTERRUPT version
667 then #MULTICOREGC version
668 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC"
671 cp $ROBUSTROOT/Tilera/Runtime/$MAKEFILE ./Makefile
672 cp $ROBUSTROOT/Tilera/Runtime/$SIMHVC ./sim.hvc
673 cp $ROBUSTROOT/Tilera/Runtime/$PCIHVC ./pci.hvc
674 cp $ROBUSTROOT/Tilera/Runtime/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
675 cp ../Runtime/multicoretask.c ./
676 cp ../Runtime/multicoreruntime.c ./
677 cp ../Runtime/Queue.c ./
678 cp ../Runtime/file.c ./
679 cp ../Runtime/math.c ./
680 cp ../Runtime/object.c ./
681 cp ../Runtime/GenericHashtable.c ./
682 cp ../Runtime/SimpleHash.c ./
683 cp ../Runtime/ObjectHash.c ./
684 cp ../Runtime/socket.c ./
685 cp ../Runtime/mem.c ./
686 cp ../Runtime/multicoregarbage.c ./
687 cp ../Runtime/GenericHashtable.h ./
688 cp ../Runtime/mem.h ./
689 cp ../Runtime/multicoreruntime.h ./
690 cp ../Runtime/object.h ./
691 cp ../Runtime/ObjectHash.h ./
692 cp ../Runtime/Queue.h ./
693 cp ../Runtime/runtime.h ./
694 cp ../Runtime/SimpleHash.h ./
695 cp ../Runtime/multicoregc.h ./
696 cp ../Runtime/multicoregarbage.h ./
697 cp ../Runtime/multicorehelper.h ./
698 cp ../Tilera/Runtime/*.c ./
699 cp ../Tilera/Runtime/*.h ./
700 cp ../Tilera/lib/* ./
701 cp ../$tmpbuilddirectory/*.c ./
702 cp ../$tmpbuilddirectory/*.h ./
706 else #!RAWFLAG && !TILERAFLAG
709 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
714 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
716 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
719 FILES="$RUNTIMEFILE \
720 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
721 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
722 $ROBUSTROOT/Runtime/ObjectHash.c \
723 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
724 $ROBUSTROOT/Runtime/math.c \
725 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
729 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
734 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
741 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
742 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"
744 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
745 FILES="$FILES $DSMRUNTIME/trans.c $DSMRUNTIME/mcpileq.c $DSMRUNTIME/objstr.c $DSMRUNTIME/dstm.c $DSMRUNTIME/mlookup.c $DSMRUNTIME/clookup.c $DSMRUNTIME/llookup.c $DSMRUNTIME/threadnotify.c $DSMRUNTIME/dstmserver.c $DSMRUNTIME/plookup.c $DSMRUNTIME/ip.c $DSMRUNTIME/queue.c $DSMRUNTIME/prelookup.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"
750 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
751 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
756 FILES="$FILES $STMRUNTIME/sandbox.c"
761 FILES="$FILES $DSMRUNTIME/abortreaders.c"
766 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
771 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
772 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
773 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
778 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
781 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
783 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
786 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
788 if $THREADSIMULATEFLAG
790 # -lpthread for pthread functions, -lrt for message queue functions
791 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
797 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
798 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
803 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
808 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
809 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
814 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
819 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
820 -c $tmpbuilddirectory/methods.c -lm
825 gcc $INCLUDES $EXTRAOPTIONS \
826 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
828 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
829 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin