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"
17 echo "-eventmonitor turn on transaction event trace recording"
20 echo -dsm distributed shared memory
21 echo -abortreaders abort readers immediately
22 echo -trueprob double - probabiltiy of true branch
23 echo -dsmcaching -enable caching in dsm runtime
26 echo -builddir setup different build directory
27 echo -robustroot set up the ROBUSTROOT to directory other than default one
28 echo -readset turn on readset
29 echo -mac distributed shared memory mac support
30 echo -check generate check code
31 echo -dmalloc link in dmalloc
32 echo -64bit compile for 64 bit machine
33 echo -32bit compile for 32 bit machine
34 echo -joptimize java compiler optimizations
35 echo -recover compile task code
36 echo -fastcheck fast checkpointing for Bristlecone
37 echo -specdir directory
38 echo -printflat print out flat representation
39 echo -selfloop task - this task cannot self loop forever
40 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
41 echo -taskstate do task state analysis
42 echo -tagstate do tag state analysis
43 echo -scheduling do task scheduling
44 echo -multicore generate multi-core version binary
45 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
46 echo "-cacheflush enable cache flush in raw version binary (should be used togethere with -raw)"
47 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
48 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
49 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
50 echo -printscheduling print out scheduling graphs
51 echo -printschedulesim print out scheduling simulator result graphs
52 echo -abcclose close the array boundary check
53 echo "-tilera generate tilera version binary (should be used together with -multicore"
54 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
55 echo "-raw generate raw version binary (should be used together with -multicore)"
56 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
57 echo -threadsimulate generate multi-thread simulate version binary
58 echo -multicoregc generate multi-core binary with garbage collection
59 echo -optional enable optional
60 echo -debug generate debug symbols
61 echo -prefetch do prefetch analysis
62 echo -garbagestats Print garbage collection statistics
63 echo -webinterface enable web interface
64 echo -runtimedebug printout runtime debug messages
65 echo "-thread use support for multiple threads"
66 echo "-optimize call gcc with -O9 (optimize)"
67 echo "-nooptimize call gcc with -O0 (do not optimize)"
68 echo -curdir directory
69 echo -mainclass class with main method
71 echo -nojava do not run bristlecone compiler
72 echo -instructionfailures inject code for instructionfailures
73 echo -profile build with profile options
74 echo -accurateprofile build with accurate profile information including pre/post task processing info
75 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
76 echo "-enable-assertions execute assert statements during compilation"
77 echo -justanalyze exit after compiler analyses complete
78 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
79 echo "-disall execute to collect whole distribution"
80 echo "-disstart specify the start number of distribution information collection"
81 echo -assembly generate assembly
85 tmpbuilddirectory="tmpbuilddirectory"
89 ROBUSTROOT=~/research/Robust/src
90 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
91 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
92 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
93 REPAIRROOT=~/research/Repair/RepairCompiler/
116 ACCURATEPROFILEFLAG=false
119 THREADSIMULATEFLAG=false;
120 MULTICOREGCFLAG=false;
131 EXITAFTERANALYSIS=false
143 if [[ $1 = '-help' ]]
147 elif [[ $1 = '-justanalyze' ]]
149 EXITAFTERANALYSIS=true
150 elif [[ $1 = '-assembly' ]]
153 elif [[ $1 = '-abortreaders' ]]
156 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
157 JAVAOPTS="$JAVAOPTS -abortreaders"
158 elif [[ $1 = '-sandbox' ]]
161 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
162 JAVAOPTS="$JAVAOPTS -sandbox"
163 elif [[ $1 = '-numa' ]]
165 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
167 elif [[ $1 = '-robustroot' ]]
171 elif [[ $1 = '-builddir' ]]
173 tmpbuilddirectory="$2"
175 elif [[ $1 = '-nojava' ]]
178 elif [[ $1 = '-eventmonitor' ]]
180 JAVAOPTS="$JAVAOPTS -eventmonitor"
182 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
183 elif [[ $1 = '-garbagestats' ]]
185 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
186 elif [[ $1 = '-64bit' ]]
188 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
189 elif [[ $1 = '-32bit' ]]
191 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
192 elif [[ $1 = '-fastcheck' ]]
194 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
195 JAVAOPTS="$JAVAOPTS -fastcheck"
201 elif [[ $1 = '-mainclass' ]]
203 JAVAOPTS="$JAVAOPTS -mainclass $2"
205 elif [[ $1 = '-selfloop' ]]
207 JAVAOPTS="$JAVAOPTS -selfloop $2"
209 elif [[ $1 = '-excprefetch' ]]
211 JAVAOPTS="$JAVAOPTS -excprefetch $2"
213 elif [[ $1 = '-arraypad' ]]
215 JAVAOPTS="$JAVAOPTS -arraypad"
216 elif [[ $1 = '-dsm' ]]
218 JAVAOPTS="$JAVAOPTS -dsm"
220 elif [[ $1 = '-fastmemcpy' ]]
223 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
224 elif [[ $1 = '-singleTM' ]]
226 JAVAOPTS="$JAVAOPTS -singleTM"
227 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
229 elif [[ $1 = '-stmarray' ]]
231 JAVAOPTS="$JAVAOPTS -stmarray"
232 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
234 elif [[ $1 = '-dualview' ]]
236 JAVAOPTS="$JAVAOPTS -dualview"
237 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
239 elif [[ $1 = '-readset' ]]
241 JAVAOPTS="$JAVAOPTS -readset"
242 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
243 elif [[ $1 = '-stmdebug' ]]
245 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
246 elif [[ $1 = '-stmstats' ]]
248 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
249 elif [[ $1 = '-stmlog' ]]
251 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
252 elif [[ $1 = '-prefetch' ]]
254 JAVAOPTS="$JAVAOPTS -prefetch"
255 elif [[ $1 = '-transstats' ]]
257 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
258 elif [[ $1 = '-printflat' ]]
260 JAVAOPTS="$JAVAOPTS -printflat"
261 elif [[ $1 = '-trueprob' ]]
263 JAVAOPTS="$JAVAOPTS -trueprob $2"
265 elif [[ $1 = '-inlineatomic' ]]
267 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
269 elif [[ $1 = '-mac' ]]
271 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
272 elif [[ $1 = '-profile' ]]
275 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
276 elif [[ $1 = '-accurateprofile' ]]
278 ACCURATEPROFILEFLAG=true
279 elif [[ $1 = '-useio' ]]
282 elif [[ $1 = '-taskstate' ]]
284 JAVAOPTS="$JAVAOPTS -taskstate"
285 elif [[ $1 = '-tagstate' ]]
287 JAVAOPTS="$JAVAOPTS -tagstate"
288 elif [[ $1 = '-scheduling' ]]
290 JAVAOPTS="$JAVAOPTS -scheduling"
291 elif [[ $1 = '-multicore' ]]
294 JAVAOPTS="$JAVAOPTS -multicore"
295 elif [[ $1 = '-numcore' ]]
297 JAVAOPTS="$JAVAOPTS -numcore $2"
300 elif [[ $1 = '-raw' ]]
303 JAVAOPTS="$JAVAOPTS -raw"
304 elif [[ $1 = '-tilera' ]]
307 elif [[ $1 = '-tileraconfig' ]]
311 elif [[ $1 = '-cacheflush' ]]
314 elif [[ $1 = '-rawconfig' ]]
318 elif [[ $1 = '-interrupt' ]]
321 elif [[ $1 = '-threadsimulate' ]]
323 THREADSIMULATEFLAG=true
324 elif [[ $1 = '-abcclose' ]]
326 JAVAOPTS="$JAVAOPTS -abcclose"
327 elif [[ $1 = '-optional' ]]
329 JAVAOPTS="$JAVAOPTS -optional"
331 elif [[ $1 = '-multicoregc' ]]
334 JAVAOPTS="$JAVAOPTS -multicoregc"
335 elif [[ $1 = '-dmalloc' ]]
338 elif [[ $1 = '-recover' ]]
341 JAVAOPTS="$JAVAOPTS -task"
342 elif [[ $1 = '-useprofile' ]]
344 JAVAOPTS="$JAVAOPTS -useprofile $2"
346 elif [[ $1 = '-webinterface' ]]
348 JAVAOPTS="$JAVAOPTS -webinterface"
349 elif [[ $1 = '-instructionfailures' ]]
351 JAVAOPTS="$JAVAOPTS -instructionfailures"
352 elif [[ $1 = '-joptimize' ]]
354 JAVAOPTS="$JAVAOPTS -optimize"
355 elif [[ $1 = '-dcopts' ]]
357 JAVAOPTS="$JAVAOPTS -dcopts"
358 elif [[ $1 = '-delaycomp' ]]
360 JAVAOPTS="$JAVAOPTS -delaycomp"
361 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
362 elif [[ $1 = '-hybrid' ]]
364 JAVAOPTS="$JAVAOPTS -hybrid"
365 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
366 elif [[ $1 = '-minimize' ]]
368 JAVAOPTS="$JAVAOPTS -minimize"
370 elif [[ $1 = '-mlp' ]]
373 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread"
374 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
378 elif [[ $1 = '-mlpdebug' ]]
380 JAVAOPTS="$JAVAOPTS -mlpdebug"
382 elif [[ $1 = '-check' ]]
385 JAVAOPTS="$JAVAOPTS -conscheck"
386 elif [[ $1 = '-enable-assertions' ]]
388 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
389 elif [[ $1 = '-specdir' ]]
395 elif [[ $1 = '-debug' ]]
398 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
399 elif [[ $1 = '-rawpath' ]]
402 elif [[ $1 = '-runtimedebug' ]]
404 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
405 elif [[ $1 = '-dsmcaching' ]]
407 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
408 elif [[ $1 = '-rangeprefetch' ]]
410 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
411 elif [[ $1 = '-nooptimize' ]]
413 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
414 elif [[ $1 = '-optimize' ]]
416 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
417 elif [[ $1 = '-thread' ]]
419 JAVAOPTS="$JAVAOPTS -thread"
420 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
422 elif [[ $1 = '-recovery' ]]
424 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
426 elif [[ $1 = '-distributioninfo' ]]
428 JAVAOPTS="$JAVAOPTS -distributioninfo"
429 elif [[ $1 = '-disall' ]]
431 JAVAOPTS="$JAVAOPTS -disall"
432 elif [[ $1 = '-disstart' ]]
434 JAVAOPTS="$JAVAOPTS -disstart $2"
436 elif [[ $1 = '-noc' ]]
439 elif [[ $1 = '-curdir' ]]
443 elif [[ $1 = '-outputdir' ]]
445 JAVAOPTS="$JAVAOPTS -outputdir $2"
448 SRCFILES="$SRCFILES $1"
453 BUILDDIR="$CURDIR/$tmpbuilddirectory"
461 if $CHECKFLAG #Generate structure files for repair tool
463 JAVAOPTS="$JAVAOPTS -struct structfile"
473 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
475 #base bristlecone files
476 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
482 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
485 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
488 #threading java stuff
489 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
492 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
495 # Build bristlecone/java sources
499 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
500 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
501 -dir $BUILDDIR $JAVAOPTS $SRCFILES
505 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
508 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
509 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
516 if $EXITAFTERANALYSIS
521 # Build all of the consistency specs
523 if $CHECKFLAG # CHECKFLAG
526 mkdir $BUILDDIR/specdir
527 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
529 echo > $BUILDDIR/specs
531 # compile specs into C code
532 for i in * # iterate over all directories
534 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
537 cat $BUILDDIR/structfile.struct $i.label > $i.struct
538 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
539 cp size.[c,h] $BUILDDIR/specdir
540 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
541 echo $i >> $BUILDDIR/specs
543 done # iterate over all directories
549 echo > $BUILDDIR/checkers.h
550 for i in `cat $BUILDDIR/specs`
552 gcc -O0 -g -fbounds-check -c $i\_aux.c
553 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
557 #build and link everything
562 MAKEFILE="Makefile.raw"
568 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
572 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
577 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
582 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
586 then # profile version
587 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
590 if $ACCURATEPROFILEFLAG
591 then # accurateprofile version
592 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
597 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
601 then #INTERRUPT version
602 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
603 fi #INTERRUPT version
607 MAKEFILE="$MAKEFILE.io"
608 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
610 MAKEFILE="$MAKEFILE.$RAWCONFIG"
613 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
618 cp ../Runtime/RAW/*.c ./
619 cp ../Runtime/RAW/*.h ./
620 cp ../Runtime/RAW/*.S ./
621 cp ../Runtime/RAW/*.s ./
622 cp ../$tmpbuilddirectory/*.c ./
623 cp ../$tmpbuilddirectory/*.h ./
629 TILERADIR="$CURDIR/tilera"
630 MAKEFILE="Makefile.tilera.$TILERACONFIG"
631 SIMHVC="sim.hvc.$TILERACONFIG"
632 PCIHVC="pci.hvc.$TILERACONFIG"
638 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
642 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
647 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
652 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
656 then # profile version
657 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
660 if $ACCURATEPROFILEFLAG
661 then # accurateprofile version
662 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
667 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
671 then #INTERRUPT version
672 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
673 fi #INTERRUPT version
676 then #MULTICOREGC version
677 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
680 cp $ROBUSTROOT/Tilera/Runtime/$MAKEFILE ./Makefile
681 cp $ROBUSTROOT/Tilera/Runtime/$SIMHVC ./sim.hvc
682 cp $ROBUSTROOT/Tilera/Runtime/$PCIHVC ./pci.hvc
683 cp $ROBUSTROOT/Tilera/Runtime/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
684 cp ../Runtime/multicoretask.c ./
685 cp ../Runtime/multicoreruntime.c ./
686 cp ../Runtime/Queue.c ./
687 cp ../Runtime/file.c ./
688 cp ../Runtime/math.c ./
689 cp ../Runtime/object.c ./
690 cp ../Runtime/GenericHashtable.c ./
691 cp ../Runtime/SimpleHash.c ./
692 cp ../Runtime/ObjectHash.c ./
693 cp ../Runtime/socket.c ./
694 cp ../Runtime/mem.c ./
695 cp ../Runtime/multicoregarbage.c ./
696 cp ../Runtime/GenericHashtable.h ./
697 cp ../Runtime/mem.h ./
698 cp ../Runtime/multicoreruntime.h ./
699 cp ../Runtime/object.h ./
700 cp ../Runtime/ObjectHash.h ./
701 cp ../Runtime/Queue.h ./
702 cp ../Runtime/runtime.h ./
703 cp ../Runtime/SimpleHash.h ./
704 cp ../Runtime/multicoregc.h ./
705 cp ../Runtime/multicoregarbage.h ./
706 cp ../Runtime/multicorehelper.h ./
707 cp ../Tilera/Runtime/*.c ./
708 cp ../Tilera/Runtime/*.h ./
709 cp ../Tilera/lib/* ./
710 cp ../$tmpbuilddirectory/*.c ./
711 cp ../$tmpbuilddirectory/*.h ./
715 else #!RAWFLAG && !TILERAFLAG
718 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
723 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
725 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
728 FILES="$RUNTIMEFILE \
729 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
730 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
731 $ROBUSTROOT/Runtime/ObjectHash.c \
732 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
733 $ROBUSTROOT/Runtime/math.c \
734 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
738 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
743 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
748 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
755 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
756 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"
758 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
759 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"
764 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
765 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
770 FILES="$FILES $STMRUNTIME/sandbox.c"
775 FILES="$FILES $DSMRUNTIME/abortreaders.c"
780 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
785 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
786 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
787 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
792 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
795 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
797 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
800 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
802 if $THREADSIMULATEFLAG
804 # -lpthread for pthread functions, -lrt for message queue functions
805 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
811 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
812 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
817 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
822 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
823 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
828 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
833 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
834 -c $tmpbuilddirectory/methods.c -lm
839 gcc $INCLUDES $EXTRAOPTIONS \
840 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
842 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
843 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin