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"
18 echo -dsm distributed shared memory
19 echo -abortreaders abort readers immediately
20 echo -trueprob double - probabiltiy of true branch
21 echo -dsmcaching -enable caching in dsm runtime
24 echo -builddir setup different build directory
25 echo -robustroot set up the ROBUSTROOT to directory other than default one
26 echo -readset turn on readset
27 echo -mac distributed shared memory mac support
28 echo -check generate check code
29 echo -dmalloc link in dmalloc
30 echo -64bit compile for 64 bit machine
31 echo -32bit compile for 32 bit machine
32 echo -joptimize java compiler optimizations
33 echo -recover compile task code
34 echo -fastcheck fast checkpointing for Bristlecone
35 echo -specdir directory
36 echo -printflat print out flat representation
37 echo -selfloop task - this task cannot self loop forever
38 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
39 echo -taskstate do task state analysis
40 echo -tagstate do tag state analysis
41 echo -scheduling do task scheduling
42 echo -multicore generate multi-core version binary
43 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
44 echo "-cacheflush enable cache flush in raw version binary (should be used togethere with -raw)"
45 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
46 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
47 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
48 echo -printscheduling print out scheduling graphs
49 echo -printschedulesim print out scheduling simulator result graphs
50 echo -abcclose close the array boundary check
51 echo "-tilera generate tilera version binary (should be used together with -multicore"
52 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
53 echo "-raw generate raw version binary (should be used together with -multicore)"
54 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
55 echo -threadsimulate generate multi-thread simulate version binary
56 echo -multicoregc generate multi-core binary with garbage collection
57 echo -optional enable optional
58 echo -debug generate debug symbols
59 echo -prefetch do prefetch analysis
60 echo -garbagestats Print garbage collection statistics
61 echo -webinterface enable web interface
62 echo -runtimedebug printout runtime debug messages
63 echo "-thread use support for multiple threads"
64 echo "-optimize call gcc with -O9 (optimize)"
65 echo "-nooptimize call gcc with -O0 (do not optimize)"
66 echo -curdir directory
67 echo -mainclass class with main method
69 echo -nojava do not run bristlecone compiler
70 echo -instructionfailures inject code for instructionfailures
71 echo -profile build with profile options
72 echo -accurateprofile build with accurate profile information including pre/post task processing info
73 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
74 echo "-enable-assertions execute assert statements during compilation"
75 echo -justanalyze exit after compiler analyses complete
76 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
77 echo "-disall execute to collect whole distribution"
78 echo "-disstart specify the start number of distribution information collection"
79 echo -assembly generate assembly
83 tmpbuilddirectory="tmpbuilddirectory"
86 ROBUSTROOT=~/research/Robust/src
87 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
88 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
89 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
90 REPAIRROOT=~/research/Repair/RepairCompiler/
112 ACCURATEPROFILEFLAG=false
115 THREADSIMULATEFLAG=false;
116 MULTICOREGCFLAG=false;
127 EXITAFTERANALYSIS=false
138 if [[ $1 = '-help' ]]
142 elif [[ $1 = '-justanalyze' ]]
144 EXITAFTERANALYSIS=true
145 elif [[ $1 = '-assembly' ]]
148 elif [[ $1 = '-abortreaders' ]]
151 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
152 JAVAOPTS="$JAVAOPTS -abortreaders"
153 elif [[ $1 = '-sandbox' ]]
156 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
157 JAVAOPTS="$JAVAOPTS -sandbox"
158 elif [[ $1 = '-robustroot' ]]
162 elif [[ $1 = '-builddir' ]]
164 tmpbuilddirectory="$2"
166 elif [[ $1 = '-nojava' ]]
169 elif [[ $1 = '-garbagestats' ]]
171 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
172 elif [[ $1 = '-64bit' ]]
174 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
175 elif [[ $1 = '-32bit' ]]
177 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
178 elif [[ $1 = '-fastcheck' ]]
180 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
181 JAVAOPTS="$JAVAOPTS -fastcheck"
187 elif [[ $1 = '-mainclass' ]]
189 JAVAOPTS="$JAVAOPTS -mainclass $2"
191 elif [[ $1 = '-selfloop' ]]
193 JAVAOPTS="$JAVAOPTS -selfloop $2"
195 elif [[ $1 = '-excprefetch' ]]
197 JAVAOPTS="$JAVAOPTS -excprefetch $2"
199 elif [[ $1 = '-arraypad' ]]
201 JAVAOPTS="$JAVAOPTS -arraypad"
202 elif [[ $1 = '-dsm' ]]
204 JAVAOPTS="$JAVAOPTS -dsm"
206 elif [[ $1 = '-fastmemcpy' ]]
209 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
210 elif [[ $1 = '-singleTM' ]]
212 JAVAOPTS="$JAVAOPTS -singleTM"
213 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
215 elif [[ $1 = '-stmarray' ]]
217 JAVAOPTS="$JAVAOPTS -stmarray"
218 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
220 elif [[ $1 = '-dualview' ]]
222 JAVAOPTS="$JAVAOPTS -dualview"
223 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
225 elif [[ $1 = '-readset' ]]
227 JAVAOPTS="$JAVAOPTS -readset"
228 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
229 elif [[ $1 = '-stmdebug' ]]
231 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
232 elif [[ $1 = '-stmstats' ]]
234 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
235 elif [[ $1 = '-stmlog' ]]
237 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
238 elif [[ $1 = '-prefetch' ]]
240 JAVAOPTS="$JAVAOPTS -prefetch"
241 elif [[ $1 = '-transstats' ]]
243 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
244 elif [[ $1 = '-printflat' ]]
246 JAVAOPTS="$JAVAOPTS -printflat"
247 elif [[ $1 = '-trueprob' ]]
249 JAVAOPTS="$JAVAOPTS -trueprob $2"
251 elif [[ $1 = '-inlineatomic' ]]
253 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
255 elif [[ $1 = '-mac' ]]
257 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
258 elif [[ $1 = '-profile' ]]
261 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
262 elif [[ $1 = '-accurateprofile' ]]
264 ACCURATEPROFILEFLAG=true
265 elif [[ $1 = '-useio' ]]
268 elif [[ $1 = '-taskstate' ]]
270 JAVAOPTS="$JAVAOPTS -taskstate"
271 elif [[ $1 = '-tagstate' ]]
273 JAVAOPTS="$JAVAOPTS -tagstate"
274 elif [[ $1 = '-scheduling' ]]
276 JAVAOPTS="$JAVAOPTS -scheduling"
277 elif [[ $1 = '-multicore' ]]
280 JAVAOPTS="$JAVAOPTS -multicore"
281 elif [[ $1 = '-numcore' ]]
283 JAVAOPTS="$JAVAOPTS -numcore $2"
285 elif [[ $1 = '-raw' ]]
288 JAVAOPTS="$JAVAOPTS -raw"
289 elif [[ $1 = '-tilera' ]]
292 elif [[ $1 = '-tileraconfig' ]]
296 elif [[ $1 = '-cacheflush' ]]
299 elif [[ $1 = '-rawconfig' ]]
303 elif [[ $1 = '-interrupt' ]]
306 elif [[ $1 = '-threadsimulate' ]]
308 THREADSIMULATEFLAG=true
309 elif [[ $1 = '-abcclose' ]]
311 JAVAOPTS="$JAVAOPTS -abcclose"
312 elif [[ $1 = '-optional' ]]
314 JAVAOPTS="$JAVAOPTS -optional"
316 elif [[ $1 = '-multicoregc' ]]
319 JAVAOPTS="$JAVAOPTS -multicoregc"
320 elif [[ $1 = '-dmalloc' ]]
323 elif [[ $1 = '-recover' ]]
326 JAVAOPTS="$JAVAOPTS -task"
327 elif [[ $1 = '-useprofile' ]]
329 JAVAOPTS="$JAVAOPTS -useprofile $2"
331 elif [[ $1 = '-webinterface' ]]
333 JAVAOPTS="$JAVAOPTS -webinterface"
334 elif [[ $1 = '-instructionfailures' ]]
336 JAVAOPTS="$JAVAOPTS -instructionfailures"
337 elif [[ $1 = '-joptimize' ]]
339 JAVAOPTS="$JAVAOPTS -optimize"
340 elif [[ $1 = '-dcopts' ]]
342 JAVAOPTS="$JAVAOPTS -dcopts"
343 elif [[ $1 = '-delaycomp' ]]
345 JAVAOPTS="$JAVAOPTS -delaycomp"
346 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
347 elif [[ $1 = '-hybrid' ]]
349 JAVAOPTS="$JAVAOPTS -hybrid"
350 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
351 elif [[ $1 = '-minimize' ]]
353 JAVAOPTS="$JAVAOPTS -minimize"
355 elif [[ $1 = '-mlp' ]]
358 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread"
359 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
363 elif [[ $1 = '-mlpdebug' ]]
365 JAVAOPTS="$JAVAOPTS -mlpdebug"
367 elif [[ $1 = '-check' ]]
370 JAVAOPTS="$JAVAOPTS -conscheck"
371 elif [[ $1 = '-enable-assertions' ]]
373 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
374 elif [[ $1 = '-specdir' ]]
380 elif [[ $1 = '-debug' ]]
383 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
384 elif [[ $1 = '-rawpath' ]]
387 elif [[ $1 = '-runtimedebug' ]]
389 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
390 elif [[ $1 = '-dsmcaching' ]]
392 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
393 elif [[ $1 = '-rangeprefetch' ]]
395 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
396 elif [[ $1 = '-nooptimize' ]]
398 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
399 elif [[ $1 = '-optimize' ]]
401 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
402 elif [[ $1 = '-thread' ]]
404 JAVAOPTS="$JAVAOPTS -thread"
405 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
407 elif [[ $1 = '-recovery' ]]
409 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
411 elif [[ $1 = '-distributioninfo' ]]
413 JAVAOPTS="$JAVAOPTS -distributioninfo"
414 elif [[ $1 = '-disall' ]]
416 JAVAOPTS="$JAVAOPTS -disall"
417 elif [[ $1 = '-disstart' ]]
419 JAVAOPTS="$JAVAOPTS -disstart $2"
421 elif [[ $1 = '-noc' ]]
424 elif [[ $1 = '-curdir' ]]
428 elif [[ $1 = '-outputdir' ]]
430 JAVAOPTS="$JAVAOPTS -outputdir $2"
433 SRCFILES="$SRCFILES $1"
438 BUILDDIR="$CURDIR/$tmpbuilddirectory"
446 if $CHECKFLAG #Generate structure files for repair tool
448 JAVAOPTS="$JAVAOPTS -struct structfile"
458 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
460 #base bristlecone files
461 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
467 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
470 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
473 #threading java stuff
474 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
477 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
480 # Build bristlecone/java sources
484 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
485 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
486 -dir $BUILDDIR $JAVAOPTS $SRCFILES
490 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
493 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
494 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
501 if $EXITAFTERANALYSIS
506 # Build all of the consistency specs
508 if $CHECKFLAG # CHECKFLAG
511 mkdir $BUILDDIR/specdir
512 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
514 echo > $BUILDDIR/specs
516 # compile specs into C code
517 for i in * # iterate over all directories
519 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
522 cat $BUILDDIR/structfile.struct $i.label > $i.struct
523 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
524 cp size.[c,h] $BUILDDIR/specdir
525 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
526 echo $i >> $BUILDDIR/specs
528 done # iterate over all directories
534 echo > $BUILDDIR/checkers.h
535 for i in `cat $BUILDDIR/specs`
537 gcc -O0 -g -fbounds-check -c $i\_aux.c
538 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
542 #build and link everything
547 MAKEFILE="Makefile.raw"
553 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
557 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
562 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
567 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
571 then # profile version
572 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
575 if $ACCURATEPROFILEFLAG
576 then # accurateprofile version
577 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
582 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
586 then #INTERRUPT version
587 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
588 fi #INTERRUPT version
592 MAKEFILE="$MAKEFILE.io"
593 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
595 MAKEFILE="$MAKEFILE.$RAWCONFIG"
598 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
603 cp ../Runtime/RAW/*.c ./
604 cp ../Runtime/RAW/*.h ./
605 cp ../Runtime/RAW/*.S ./
606 cp ../Runtime/RAW/*.s ./
607 cp ../$tmpbuilddirectory/*.c ./
608 cp ../$tmpbuilddirectory/*.h ./
614 TILERADIR="$CURDIR/tilera"
615 MAKEFILE="Makefile.tilera.$TILERACONFIG"
616 SIMHVC="sim.hvc.$TILERACONFIG"
617 PCIHVC="pci.hvc.$TILERACONFIG"
623 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT"
627 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
632 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
637 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
641 then # profile version
642 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
645 if $ACCURATEPROFILEFLAG
646 then # accurateprofile version
647 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
652 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
656 then #INTERRUPT version
657 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
658 fi #INTERRUPT version
661 then #MULTICOREGC version
662 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC"
665 cp $ROBUSTROOT/Tilera/Runtime/$MAKEFILE ./Makefile
666 cp $ROBUSTROOT/Tilera/Runtime/$SIMHVC ./sim.hvc
667 cp $ROBUSTROOT/Tilera/Runtime/$PCIHVC ./pci.hvc
668 cp $ROBUSTROOT/Tilera/Runtime/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
669 cp ../Runtime/multicoretask.c ./
670 cp ../Runtime/multicoreruntime.c ./
671 cp ../Runtime/Queue.c ./
672 cp ../Runtime/file.c ./
673 cp ../Runtime/math.c ./
674 cp ../Runtime/object.c ./
675 cp ../Runtime/GenericHashtable.c ./
676 cp ../Runtime/SimpleHash.c ./
677 cp ../Runtime/ObjectHash.c ./
678 cp ../Runtime/socket.c ./
679 cp ../Runtime/mem.c ./
680 cp ../Runtime/multicoregarbage.c ./
681 cp ../Runtime/GenericHashtable.h ./
682 cp ../Runtime/mem.h ./
683 cp ../Runtime/multicoreruntime.h ./
684 cp ../Runtime/object.h ./
685 cp ../Runtime/ObjectHash.h ./
686 cp ../Runtime/Queue.h ./
687 cp ../Runtime/runtime.h ./
688 cp ../Runtime/SimpleHash.h ./
689 cp ../Runtime/multicoregc.h ./
690 cp ../Runtime/multicoregarbage.h ./
691 cp ../Runtime/multicorehelper.h ./
692 cp ../Tilera/Runtime/*.c ./
693 cp ../Tilera/Runtime/*.h ./
694 cp ../Tilera/lib/* ./
695 cp ../$tmpbuilddirectory/*.c ./
696 cp ../$tmpbuilddirectory/*.h ./
700 else #!RAWFLAG && !TILERAFLAG
703 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
708 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
710 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
713 FILES="$RUNTIMEFILE \
714 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
715 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
716 $ROBUSTROOT/Runtime/ObjectHash.c \
717 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
718 $ROBUSTROOT/Runtime/math.c \
719 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
723 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
730 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
731 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"
733 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
734 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"
739 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
740 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
745 FILES="$FILES $STMRUNTIME/sandbox.c"
750 FILES="$FILES $DSMRUNTIME/abortreaders.c"
755 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
760 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
761 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
762 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
767 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
770 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
772 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
775 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
777 if $THREADSIMULATEFLAG
779 # -lpthread for pthread functions, -lrt for message queue functions
780 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
786 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
787 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
792 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
797 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
798 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
803 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
808 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
809 -c $tmpbuilddirectory/methods.c -lm
814 gcc $INCLUDES $EXTRAOPTIONS \
815 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
817 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
818 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin