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 "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
60 echo -optional enable optional
61 echo -debug generate debug symbols
62 echo -prefetch do prefetch analysis
63 echo -garbagestats Print garbage collection statistics
64 echo -webinterface enable web interface
65 echo -runtimedebug printout runtime debug messages
66 echo "-thread use support for multiple threads"
67 echo "-optimize call gcc with -O9 (optimize)"
68 echo "-nooptimize call gcc with -O0 (do not optimize)"
69 echo -curdir directory
70 echo -mainclass class with main method
72 echo -nojava do not run bristlecone compiler
73 echo -instructionfailures inject code for instructionfailures
74 echo -profile build with profile options
75 echo -accurateprofile build with accurate profile information including pre/post task processing info
76 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
77 echo "-enable-assertions execute assert statements during compilation"
78 echo -justanalyze exit after compiler analyses complete
79 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
80 echo "-disall execute to collect whole distribution"
81 echo "-disstart specify the start number of distribution information collection"
82 echo -assembly generate assembly
83 echo -recovery compile recovery code
84 echo -dsmtask support work and task class library
85 echo -recoverystats print out recovery record
89 tmpbuilddirectory="tmpbuilddirectory"
93 ROBUSTROOT=~/research/Robust/src
94 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
95 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
96 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
97 REPAIRROOT=~/research/Repair/RepairCompiler/
120 ACCURATEPROFILEFLAG=false
123 THREADSIMULATEFLAG=false;
124 MULTICOREGCFLAG=false;
135 EXITAFTERANALYSIS=false
147 if [[ $1 = '-help' ]]
151 elif [[ $1 = '-justanalyze' ]]
153 EXITAFTERANALYSIS=true
154 elif [[ $1 = '-assembly' ]]
157 elif [[ $1 = '-abortreaders' ]]
160 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
161 JAVAOPTS="$JAVAOPTS -abortreaders"
162 elif [[ $1 = '-sandbox' ]]
165 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
166 JAVAOPTS="$JAVAOPTS -sandbox"
167 elif [[ $1 = '-numa' ]]
169 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
171 elif [[ $1 = '-robustroot' ]]
175 elif [[ $1 = '-builddir' ]]
177 tmpbuilddirectory="$2"
179 elif [[ $1 = '-nojava' ]]
182 elif [[ $1 = '-eventmonitor' ]]
184 JAVAOPTS="$JAVAOPTS -eventmonitor"
186 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
187 elif [[ $1 = '-garbagestats' ]]
189 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
190 elif [[ $1 = '-64bit' ]]
192 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
193 elif [[ $1 = '-32bit' ]]
195 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
196 elif [[ $1 = '-fastcheck' ]]
198 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
199 JAVAOPTS="$JAVAOPTS -fastcheck"
205 elif [[ $1 = '-mainclass' ]]
207 JAVAOPTS="$JAVAOPTS -mainclass $2"
209 elif [[ $1 = '-selfloop' ]]
211 JAVAOPTS="$JAVAOPTS -selfloop $2"
213 elif [[ $1 = '-excprefetch' ]]
215 JAVAOPTS="$JAVAOPTS -excprefetch $2"
217 elif [[ $1 = '-arraypad' ]]
219 JAVAOPTS="$JAVAOPTS -arraypad"
220 elif [[ $1 = '-dsm' ]]
222 JAVAOPTS="$JAVAOPTS -dsm"
224 elif [[ $1 = '-fastmemcpy' ]]
227 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
228 elif [[ $1 = '-singleTM' ]]
230 JAVAOPTS="$JAVAOPTS -singleTM"
231 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
233 elif [[ $1 = '-stmarray' ]]
235 JAVAOPTS="$JAVAOPTS -stmarray"
236 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
238 elif [[ $1 = '-dualview' ]]
240 JAVAOPTS="$JAVAOPTS -dualview"
241 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
243 elif [[ $1 = '-readset' ]]
245 JAVAOPTS="$JAVAOPTS -readset"
246 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
247 elif [[ $1 = '-stmdebug' ]]
249 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
250 elif [[ $1 = '-stmstats' ]]
252 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
253 elif [[ $1 = '-stmlog' ]]
255 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
256 elif [[ $1 = '-prefetch' ]]
258 JAVAOPTS="$JAVAOPTS -prefetch"
259 elif [[ $1 = '-transstats' ]]
261 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
262 elif [[ $1 = '-printflat' ]]
264 JAVAOPTS="$JAVAOPTS -printflat"
265 elif [[ $1 = '-trueprob' ]]
267 JAVAOPTS="$JAVAOPTS -trueprob $2"
269 elif [[ $1 = '-inlineatomic' ]]
271 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
273 elif [[ $1 = '-mac' ]]
275 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
276 elif [[ $1 = '-profile' ]]
279 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
280 elif [[ $1 = '-accurateprofile' ]]
282 ACCURATEPROFILEFLAG=true
283 elif [[ $1 = '-useio' ]]
286 elif [[ $1 = '-taskstate' ]]
288 JAVAOPTS="$JAVAOPTS -taskstate"
289 elif [[ $1 = '-tagstate' ]]
291 JAVAOPTS="$JAVAOPTS -tagstate"
292 elif [[ $1 = '-scheduling' ]]
294 JAVAOPTS="$JAVAOPTS -scheduling"
295 elif [[ $1 = '-multicore' ]]
298 JAVAOPTS="$JAVAOPTS -multicore"
299 elif [[ $1 = '-numcore' ]]
301 JAVAOPTS="$JAVAOPTS -numcore $2"
304 elif [[ $1 = '-numcore4gc' ]]
306 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
308 elif [[ $1 = '-raw' ]]
311 JAVAOPTS="$JAVAOPTS -raw"
312 elif [[ $1 = '-tilera' ]]
315 elif [[ $1 = '-tileraconfig' ]]
319 elif [[ $1 = '-cacheflush' ]]
322 elif [[ $1 = '-rawconfig' ]]
326 elif [[ $1 = '-interrupt' ]]
329 elif [[ $1 = '-threadsimulate' ]]
331 THREADSIMULATEFLAG=true
332 elif [[ $1 = '-abcclose' ]]
334 JAVAOPTS="$JAVAOPTS -abcclose"
335 elif [[ $1 = '-optional' ]]
337 JAVAOPTS="$JAVAOPTS -optional"
339 elif [[ $1 = '-multicoregc' ]]
342 JAVAOPTS="$JAVAOPTS -multicoregc"
343 elif [[ $1 = '-dmalloc' ]]
346 elif [[ $1 = '-recover' ]]
349 JAVAOPTS="$JAVAOPTS -task"
350 elif [[ $1 = '-useprofile' ]]
352 JAVAOPTS="$JAVAOPTS -useprofile $2"
354 elif [[ $1 = '-webinterface' ]]
356 JAVAOPTS="$JAVAOPTS -webinterface"
357 elif [[ $1 = '-instructionfailures' ]]
359 JAVAOPTS="$JAVAOPTS -instructionfailures"
360 elif [[ $1 = '-joptimize' ]]
362 JAVAOPTS="$JAVAOPTS -optimize"
363 elif [[ $1 = '-dcopts' ]]
365 JAVAOPTS="$JAVAOPTS -dcopts"
366 elif [[ $1 = '-delaycomp' ]]
368 JAVAOPTS="$JAVAOPTS -delaycomp"
369 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
370 elif [[ $1 = '-hybrid' ]]
372 JAVAOPTS="$JAVAOPTS -hybrid"
373 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
374 elif [[ $1 = '-minimize' ]]
376 JAVAOPTS="$JAVAOPTS -minimize"
378 elif [[ $1 = '-mlp' ]]
381 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
382 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
386 elif [[ $1 = '-mlpdebug' ]]
388 JAVAOPTS="$JAVAOPTS -mlpdebug"
390 elif [[ $1 = '-check' ]]
393 JAVAOPTS="$JAVAOPTS -conscheck"
394 elif [[ $1 = '-enable-assertions' ]]
396 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
397 elif [[ $1 = '-specdir' ]]
403 elif [[ $1 = '-debug' ]]
406 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
407 elif [[ $1 = '-rawpath' ]]
410 elif [[ $1 = '-runtimedebug' ]]
412 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
413 elif [[ $1 = '-dsmcaching' ]]
415 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
416 elif [[ $1 = '-rangeprefetch' ]]
418 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
419 elif [[ $1 = '-nooptimize' ]]
421 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
422 elif [[ $1 = '-optimize' ]]
424 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
425 elif [[ $1 = '-thread' ]]
427 JAVAOPTS="$JAVAOPTS -thread"
428 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
430 elif [[ $1 = '-recovery' ]]
432 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
434 elif [[ $1 = '-recoverystats' ]]
436 JAVAOPTS="$JAVAOPTS -recoverystats"
437 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
438 elif [[ $1 = '-distributioninfo' ]]
440 JAVAOPTS="$JAVAOPTS -distributioninfo"
441 elif [[ $1 = '-disall' ]]
443 JAVAOPTS="$JAVAOPTS -disall"
444 elif [[ $1 = '-disstart' ]]
446 JAVAOPTS="$JAVAOPTS -disstart $2"
448 elif [[ $1 = '-noc' ]]
451 elif [[ $1 = '-curdir' ]]
455 elif [[ $1 = '-outputdir' ]]
457 JAVAOPTS="$JAVAOPTS -outputdir $2"
460 SRCFILES="$SRCFILES $1"
465 BUILDDIR="$CURDIR/$tmpbuilddirectory"
473 if $CHECKFLAG #Generate structure files for repair tool
475 JAVAOPTS="$JAVAOPTS -struct structfile"
485 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
487 #base bristlecone files
488 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
494 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
497 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
500 #threading java stuff
501 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
504 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
507 # Build bristlecone/java sources
511 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
512 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
513 -dir $BUILDDIR $JAVAOPTS $SRCFILES
517 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
520 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
521 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
528 if $EXITAFTERANALYSIS
533 # Build all of the consistency specs
535 if $CHECKFLAG # CHECKFLAG
538 mkdir $BUILDDIR/specdir
539 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
541 echo > $BUILDDIR/specs
543 # compile specs into C code
544 for i in * # iterate over all directories
546 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
549 cat $BUILDDIR/structfile.struct $i.label > $i.struct
550 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
551 cp size.[c,h] $BUILDDIR/specdir
552 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
553 echo $i >> $BUILDDIR/specs
555 done # iterate over all directories
561 echo > $BUILDDIR/checkers.h
562 for i in `cat $BUILDDIR/specs`
564 gcc -O0 -g -fbounds-check -c $i\_aux.c
565 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
569 #build and link everything
574 MAKEFILE="Makefile.raw"
580 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
584 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
589 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
594 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
598 then # profile version
599 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
602 if $ACCURATEPROFILEFLAG
603 then # accurateprofile version
604 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
609 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
613 then #INTERRUPT version
614 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
615 fi #INTERRUPT version
619 MAKEFILE="$MAKEFILE.io"
620 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
622 MAKEFILE="$MAKEFILE.$RAWCONFIG"
625 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
630 cp ../Runtime/RAW/*.c ./
631 cp ../Runtime/RAW/*.h ./
632 cp ../Runtime/RAW/*.S ./
633 cp ../Runtime/RAW/*.s ./
634 cp ../$tmpbuilddirectory/*.c ./
635 cp ../$tmpbuilddirectory/*.h ./
641 TILERADIR="$CURDIR/tilera"
642 MAKEFILE="Makefile.tilera.$TILERACONFIG"
643 SIMHVC="sim.hvc.$TILERACONFIG"
644 PCIHVC="pci.hvc.$TILERACONFIG"
650 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
654 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
659 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
664 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
668 then # profile version
669 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
672 if $ACCURATEPROFILEFLAG
673 then # accurateprofile version
674 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
679 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
683 then #INTERRUPT version
684 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
685 fi #INTERRUPT version
688 then #MULTICOREGC version
689 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
692 cp $ROBUSTROOT/Tilera/Runtime/$MAKEFILE ./Makefile
693 cp $ROBUSTROOT/Tilera/Runtime/$SIMHVC ./sim.hvc
694 cp $ROBUSTROOT/Tilera/Runtime/$PCIHVC ./pci.hvc
695 cp $ROBUSTROOT/Tilera/Runtime/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
696 cp ../Runtime/multicoretask.c ./
697 cp ../Runtime/multicoreruntime.c ./
698 cp ../Runtime/Queue.c ./
699 cp ../Runtime/file.c ./
700 cp ../Runtime/math.c ./
701 cp ../Runtime/object.c ./
702 cp ../Runtime/GenericHashtable.c ./
703 cp ../Runtime/SimpleHash.c ./
704 cp ../Runtime/ObjectHash.c ./
705 cp ../Runtime/socket.c ./
706 cp ../Runtime/mem.c ./
707 cp ../Runtime/multicoregarbage.c ./
708 cp ../Runtime/GenericHashtable.h ./
709 cp ../Runtime/mem.h ./
710 cp ../Runtime/multicoreruntime.h ./
711 cp ../Runtime/object.h ./
712 cp ../Runtime/ObjectHash.h ./
713 cp ../Runtime/Queue.h ./
714 cp ../Runtime/runtime.h ./
715 cp ../Runtime/SimpleHash.h ./
716 cp ../Runtime/multicoregc.h ./
717 cp ../Runtime/multicoregarbage.h ./
718 cp ../Runtime/multicorehelper.h ./
719 cp ../Tilera/Runtime/*.c ./
720 cp ../Tilera/Runtime/*.h ./
721 cp ../Tilera/lib/* ./
722 cp ../$tmpbuilddirectory/*.c ./
723 cp ../$tmpbuilddirectory/*.h ./
727 else #!RAWFLAG && !TILERAFLAG
730 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
735 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
737 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
740 FILES="$RUNTIMEFILE \
741 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
742 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
743 $ROBUSTROOT/Runtime/ObjectHash.c \
744 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
745 $ROBUSTROOT/Runtime/math.c \
746 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
750 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
755 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
760 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
767 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
768 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"
770 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
771 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"
776 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
777 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
782 FILES="$FILES $STMRUNTIME/sandbox.c"
787 FILES="$FILES $DSMRUNTIME/abortreaders.c"
792 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
797 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
798 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
799 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
804 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
807 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
809 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
812 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
814 if $THREADSIMULATEFLAG
816 # -lpthread for pthread functions, -lrt for message queue functions
817 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
823 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
824 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
829 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
834 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
835 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
840 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
845 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
846 -c $tmpbuilddirectory/methods.c -lm
851 gcc $INCLUDES $EXTRAOPTIONS \
852 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
854 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
855 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin