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
82 echo -recovery compile recovery code
83 echo -dsmtask support work and task class library
84 echo -recoverystats print out recovery record
88 tmpbuilddirectory="tmpbuilddirectory"
92 ROBUSTROOT=~/research/Robust/src
93 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
94 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
95 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
96 REPAIRROOT=~/research/Repair/RepairCompiler/
119 ACCURATEPROFILEFLAG=false
122 THREADSIMULATEFLAG=false;
123 MULTICOREGCFLAG=false;
134 EXITAFTERANALYSIS=false
146 if [[ $1 = '-help' ]]
150 elif [[ $1 = '-justanalyze' ]]
152 EXITAFTERANALYSIS=true
153 elif [[ $1 = '-assembly' ]]
156 elif [[ $1 = '-abortreaders' ]]
159 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
160 JAVAOPTS="$JAVAOPTS -abortreaders"
161 elif [[ $1 = '-sandbox' ]]
164 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
165 JAVAOPTS="$JAVAOPTS -sandbox"
166 elif [[ $1 = '-numa' ]]
168 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
170 elif [[ $1 = '-robustroot' ]]
174 elif [[ $1 = '-builddir' ]]
176 tmpbuilddirectory="$2"
178 elif [[ $1 = '-nojava' ]]
181 elif [[ $1 = '-eventmonitor' ]]
183 JAVAOPTS="$JAVAOPTS -eventmonitor"
185 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
186 elif [[ $1 = '-garbagestats' ]]
188 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
189 elif [[ $1 = '-64bit' ]]
191 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
192 elif [[ $1 = '-32bit' ]]
194 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
195 elif [[ $1 = '-fastcheck' ]]
197 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
198 JAVAOPTS="$JAVAOPTS -fastcheck"
204 elif [[ $1 = '-mainclass' ]]
206 JAVAOPTS="$JAVAOPTS -mainclass $2"
208 elif [[ $1 = '-selfloop' ]]
210 JAVAOPTS="$JAVAOPTS -selfloop $2"
212 elif [[ $1 = '-excprefetch' ]]
214 JAVAOPTS="$JAVAOPTS -excprefetch $2"
216 elif [[ $1 = '-arraypad' ]]
218 JAVAOPTS="$JAVAOPTS -arraypad"
219 elif [[ $1 = '-dsm' ]]
221 JAVAOPTS="$JAVAOPTS -dsm"
223 elif [[ $1 = '-fastmemcpy' ]]
226 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
227 elif [[ $1 = '-singleTM' ]]
229 JAVAOPTS="$JAVAOPTS -singleTM"
230 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
232 elif [[ $1 = '-stmarray' ]]
234 JAVAOPTS="$JAVAOPTS -stmarray"
235 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
237 elif [[ $1 = '-dualview' ]]
239 JAVAOPTS="$JAVAOPTS -dualview"
240 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
242 elif [[ $1 = '-readset' ]]
244 JAVAOPTS="$JAVAOPTS -readset"
245 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
246 elif [[ $1 = '-stmdebug' ]]
248 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
249 elif [[ $1 = '-stmstats' ]]
251 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
252 elif [[ $1 = '-stmlog' ]]
254 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
255 elif [[ $1 = '-prefetch' ]]
257 JAVAOPTS="$JAVAOPTS -prefetch"
258 elif [[ $1 = '-transstats' ]]
260 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
261 elif [[ $1 = '-printflat' ]]
263 JAVAOPTS="$JAVAOPTS -printflat"
264 elif [[ $1 = '-trueprob' ]]
266 JAVAOPTS="$JAVAOPTS -trueprob $2"
268 elif [[ $1 = '-inlineatomic' ]]
270 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
272 elif [[ $1 = '-mac' ]]
274 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
275 elif [[ $1 = '-profile' ]]
278 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
279 elif [[ $1 = '-accurateprofile' ]]
281 ACCURATEPROFILEFLAG=true
282 elif [[ $1 = '-useio' ]]
285 elif [[ $1 = '-taskstate' ]]
287 JAVAOPTS="$JAVAOPTS -taskstate"
288 elif [[ $1 = '-tagstate' ]]
290 JAVAOPTS="$JAVAOPTS -tagstate"
291 elif [[ $1 = '-scheduling' ]]
293 JAVAOPTS="$JAVAOPTS -scheduling"
294 elif [[ $1 = '-multicore' ]]
297 JAVAOPTS="$JAVAOPTS -multicore"
298 elif [[ $1 = '-numcore' ]]
300 JAVAOPTS="$JAVAOPTS -numcore $2"
303 elif [[ $1 = '-raw' ]]
306 JAVAOPTS="$JAVAOPTS -raw"
307 elif [[ $1 = '-tilera' ]]
310 elif [[ $1 = '-tileraconfig' ]]
314 elif [[ $1 = '-cacheflush' ]]
317 elif [[ $1 = '-rawconfig' ]]
321 elif [[ $1 = '-interrupt' ]]
324 elif [[ $1 = '-threadsimulate' ]]
326 THREADSIMULATEFLAG=true
327 elif [[ $1 = '-abcclose' ]]
329 JAVAOPTS="$JAVAOPTS -abcclose"
330 elif [[ $1 = '-optional' ]]
332 JAVAOPTS="$JAVAOPTS -optional"
334 elif [[ $1 = '-multicoregc' ]]
337 JAVAOPTS="$JAVAOPTS -multicoregc"
338 elif [[ $1 = '-dmalloc' ]]
341 elif [[ $1 = '-recover' ]]
344 JAVAOPTS="$JAVAOPTS -task"
345 elif [[ $1 = '-useprofile' ]]
347 JAVAOPTS="$JAVAOPTS -useprofile $2"
349 elif [[ $1 = '-webinterface' ]]
351 JAVAOPTS="$JAVAOPTS -webinterface"
352 elif [[ $1 = '-instructionfailures' ]]
354 JAVAOPTS="$JAVAOPTS -instructionfailures"
355 elif [[ $1 = '-joptimize' ]]
357 JAVAOPTS="$JAVAOPTS -optimize"
358 elif [[ $1 = '-dcopts' ]]
360 JAVAOPTS="$JAVAOPTS -dcopts"
361 elif [[ $1 = '-delaycomp' ]]
363 JAVAOPTS="$JAVAOPTS -delaycomp"
364 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
365 elif [[ $1 = '-hybrid' ]]
367 JAVAOPTS="$JAVAOPTS -hybrid"
368 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
369 elif [[ $1 = '-minimize' ]]
371 JAVAOPTS="$JAVAOPTS -minimize"
373 elif [[ $1 = '-mlp' ]]
376 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread"
377 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
381 elif [[ $1 = '-mlpdebug' ]]
383 JAVAOPTS="$JAVAOPTS -mlpdebug"
385 elif [[ $1 = '-check' ]]
388 JAVAOPTS="$JAVAOPTS -conscheck"
389 elif [[ $1 = '-enable-assertions' ]]
391 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
392 elif [[ $1 = '-specdir' ]]
398 elif [[ $1 = '-debug' ]]
401 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
402 elif [[ $1 = '-rawpath' ]]
405 elif [[ $1 = '-runtimedebug' ]]
407 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
408 elif [[ $1 = '-dsmcaching' ]]
410 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
411 elif [[ $1 = '-rangeprefetch' ]]
413 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
414 elif [[ $1 = '-nooptimize' ]]
416 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
417 elif [[ $1 = '-optimize' ]]
419 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
420 elif [[ $1 = '-thread' ]]
422 JAVAOPTS="$JAVAOPTS -thread"
423 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
425 elif [[ $1 = '-recovery' ]]
427 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
429 elif [[ $1 = '-recoverystats' ]]
431 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
432 elif [[ $1 = '-distributioninfo' ]]
434 JAVAOPTS="$JAVAOPTS -distributioninfo"
435 elif [[ $1 = '-disall' ]]
437 JAVAOPTS="$JAVAOPTS -disall"
438 elif [[ $1 = '-disstart' ]]
440 JAVAOPTS="$JAVAOPTS -disstart $2"
442 elif [[ $1 = '-noc' ]]
445 elif [[ $1 = '-curdir' ]]
449 elif [[ $1 = '-outputdir' ]]
451 JAVAOPTS="$JAVAOPTS -outputdir $2"
454 SRCFILES="$SRCFILES $1"
459 BUILDDIR="$CURDIR/$tmpbuilddirectory"
467 if $CHECKFLAG #Generate structure files for repair tool
469 JAVAOPTS="$JAVAOPTS -struct structfile"
479 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
481 #base bristlecone files
482 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
488 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
491 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
494 #threading java stuff
495 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
498 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
501 # Build bristlecone/java sources
505 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
506 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
507 -dir $BUILDDIR $JAVAOPTS $SRCFILES
511 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
514 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
515 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
522 if $EXITAFTERANALYSIS
527 # Build all of the consistency specs
529 if $CHECKFLAG # CHECKFLAG
532 mkdir $BUILDDIR/specdir
533 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
535 echo > $BUILDDIR/specs
537 # compile specs into C code
538 for i in * # iterate over all directories
540 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
543 cat $BUILDDIR/structfile.struct $i.label > $i.struct
544 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
545 cp size.[c,h] $BUILDDIR/specdir
546 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
547 echo $i >> $BUILDDIR/specs
549 done # iterate over all directories
555 echo > $BUILDDIR/checkers.h
556 for i in `cat $BUILDDIR/specs`
558 gcc -O0 -g -fbounds-check -c $i\_aux.c
559 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
563 #build and link everything
568 MAKEFILE="Makefile.raw"
574 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
578 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
583 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
588 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
592 then # profile version
593 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
596 if $ACCURATEPROFILEFLAG
597 then # accurateprofile version
598 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
603 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
607 then #INTERRUPT version
608 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
609 fi #INTERRUPT version
613 MAKEFILE="$MAKEFILE.io"
614 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
616 MAKEFILE="$MAKEFILE.$RAWCONFIG"
619 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
624 cp ../Runtime/RAW/*.c ./
625 cp ../Runtime/RAW/*.h ./
626 cp ../Runtime/RAW/*.S ./
627 cp ../Runtime/RAW/*.s ./
628 cp ../$tmpbuilddirectory/*.c ./
629 cp ../$tmpbuilddirectory/*.h ./
635 TILERADIR="$CURDIR/tilera"
636 MAKEFILE="Makefile.tilera.$TILERACONFIG"
637 SIMHVC="sim.hvc.$TILERACONFIG"
638 PCIHVC="pci.hvc.$TILERACONFIG"
644 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
648 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
653 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
658 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
662 then # profile version
663 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
666 if $ACCURATEPROFILEFLAG
667 then # accurateprofile version
668 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
673 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
677 then #INTERRUPT version
678 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
679 fi #INTERRUPT version
682 then #MULTICOREGC version
683 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
686 cp $ROBUSTROOT/Tilera/Runtime/$MAKEFILE ./Makefile
687 cp $ROBUSTROOT/Tilera/Runtime/$SIMHVC ./sim.hvc
688 cp $ROBUSTROOT/Tilera/Runtime/$PCIHVC ./pci.hvc
689 cp $ROBUSTROOT/Tilera/Runtime/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
690 cp ../Runtime/multicoretask.c ./
691 cp ../Runtime/multicoreruntime.c ./
692 cp ../Runtime/Queue.c ./
693 cp ../Runtime/file.c ./
694 cp ../Runtime/math.c ./
695 cp ../Runtime/object.c ./
696 cp ../Runtime/GenericHashtable.c ./
697 cp ../Runtime/SimpleHash.c ./
698 cp ../Runtime/ObjectHash.c ./
699 cp ../Runtime/socket.c ./
700 cp ../Runtime/mem.c ./
701 cp ../Runtime/multicoregarbage.c ./
702 cp ../Runtime/GenericHashtable.h ./
703 cp ../Runtime/mem.h ./
704 cp ../Runtime/multicoreruntime.h ./
705 cp ../Runtime/object.h ./
706 cp ../Runtime/ObjectHash.h ./
707 cp ../Runtime/Queue.h ./
708 cp ../Runtime/runtime.h ./
709 cp ../Runtime/SimpleHash.h ./
710 cp ../Runtime/multicoregc.h ./
711 cp ../Runtime/multicoregarbage.h ./
712 cp ../Runtime/multicorehelper.h ./
713 cp ../Tilera/Runtime/*.c ./
714 cp ../Tilera/Runtime/*.h ./
715 cp ../Tilera/lib/* ./
716 cp ../$tmpbuilddirectory/*.c ./
717 cp ../$tmpbuilddirectory/*.h ./
721 else #!RAWFLAG && !TILERAFLAG
724 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
729 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
731 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
734 FILES="$RUNTIMEFILE \
735 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
736 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
737 $ROBUSTROOT/Runtime/ObjectHash.c \
738 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
739 $ROBUSTROOT/Runtime/math.c \
740 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
744 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
749 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
754 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
761 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
762 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"
764 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
765 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"
770 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
771 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
776 FILES="$FILES $STMRUNTIME/sandbox.c"
781 FILES="$FILES $DSMRUNTIME/abortreaders.c"
786 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
791 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
792 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
793 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
798 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
801 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
803 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
806 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
808 if $THREADSIMULATEFLAG
810 # -lpthread for pthread functions, -lrt for message queue functions
811 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
817 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
818 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
823 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
828 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
829 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
834 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
839 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
840 -c $tmpbuilddirectory/methods.c -lm
845 gcc $INCLUDES $EXTRAOPTIONS \
846 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
848 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
849 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin