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
25 echo BAMBOO Multicore options
26 echo -scheduling do task scheduling
27 echo -multicore generate multi-core version binary
28 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
29 echo "-cacheflush enable cache flush in raw version binary (should be used togethere with -raw)"
30 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
31 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
32 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
33 echo -printscheduling print out scheduling graphs
34 echo -printschedulesim print out scheduling simulator result graphs
35 echo -abcclose close the array boundary check
36 echo "-tilera_bme generate tilera version binary for Bare Mental Environment (should be used together with -multicore"
37 echo "-tilera_zlinux generate tilera version binary for Zero-Overhead Linux with multi-process mode (should be used together with -multicore"
38 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
39 echo "-raw generate raw version binary (should be used together with -multicore)"
40 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
41 echo -multicoregc generate multi-core binary with garbage collection
42 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
43 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
44 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
45 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
46 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
47 echo -gcprofile build with gcprofile options
48 echo -accurateprofile build with accurate profile information including pre/post task processing info
49 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
52 echo -builddir setup different build directory
53 echo -robustroot set up the ROBUSTROOT to directory other than default one
54 echo -readset turn on readset
55 echo -mac distributed shared memory mac support
56 echo -check generate check code
57 echo -dmalloc link in dmalloc
58 echo -64bit compile for 64 bit machine
59 echo -32bit compile for 32 bit machine
60 echo -joptimize java compiler optimizations
61 echo -recover compile task code
62 echo -fastcheck fast checkpointing for Bristlecone
63 echo -specdir directory
64 echo -printflat print out flat representation
65 echo -selfloop task - this task cannot self loop forever
66 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
67 echo -taskstate do task state analysis
68 echo -tagstate do tag state analysis
69 echo -optional enable optional
70 echo -debug generate debug symbols
71 echo -prefetch do prefetch analysis
72 echo -garbagestats Print garbage collection statistics
73 echo -webinterface enable web interface
74 echo -runtimedebug printout runtime debug messages
75 echo "-thread use support for multiple threads"
76 echo "-optimize call gcc with -O9 (optimize)"
77 echo "-nooptimize call gcc with -O0 (do not optimize)"
78 echo -curdir directory
79 echo -mainclass class with main method
81 echo -nojava do not run bristlecone compiler
82 echo -instructionfailures inject code for instructionfailures
83 echo -profile build with profile options
84 echo "-enable-assertions execute assert statements during compilation"
85 echo -justanalyze exit after compiler analyses complete
86 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
87 echo "-disall execute to collect whole distribution"
88 echo "-disstart specify the start number of distribution information collection"
89 echo -assembly generate assembly
90 echo -recovery compile recovery code
91 echo -dsmtask support work and task class library
92 echo -recoverystats print out recovery record
96 tmpbuilddirectory="tmpbuilddirectory"
100 ROBUSTROOT=~/research/Robust/src
101 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
102 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
103 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
104 REPAIRROOT=~/research/Repair/RepairCompiler/
122 TILERAZLINUXFLAG=false
130 ACCURATEPROFILEFLAG=false
133 THREADSIMULATEFLAG=false;
134 MULTICOREGCFLAG=false;
135 GCMEMLOCALFLAG=false;
136 GCMEMFIXEDFLAG=false;
137 GCMEMMIXEDFLAG=false;
138 GCMEMGLOBALFLAG=false;
149 EXITAFTERANALYSIS=false
153 TILERAN1COREFLAG=false
163 if [[ $1 = '-help' ]]
167 elif [[ $1 = '-justanalyze' ]]
169 EXITAFTERANALYSIS=true
170 elif [[ $1 = '-assembly' ]]
173 elif [[ $1 = '-abortreaders' ]]
176 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
177 JAVAOPTS="$JAVAOPTS -abortreaders"
178 elif [[ $1 = '-sandbox' ]]
181 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
182 JAVAOPTS="$JAVAOPTS -sandbox"
183 elif [[ $1 = '-numa' ]]
185 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
187 elif [[ $1 = '-robustroot' ]]
191 elif [[ $1 = '-builddir' ]]
193 tmpbuilddirectory="$2"
195 elif [[ $1 = '-nojava' ]]
198 elif [[ $1 = '-eventmonitor' ]]
200 JAVAOPTS="$JAVAOPTS -eventmonitor"
202 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
203 elif [[ $1 = '-garbagestats' ]]
205 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
206 elif [[ $1 = '-64bit' ]]
208 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
209 elif [[ $1 = '-32bit' ]]
211 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
212 elif [[ $1 = '-fastcheck' ]]
214 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
215 JAVAOPTS="$JAVAOPTS -fastcheck"
221 elif [[ $1 = '-mainclass' ]]
223 JAVAOPTS="$JAVAOPTS -mainclass $2"
225 elif [[ $1 = '-selfloop' ]]
227 JAVAOPTS="$JAVAOPTS -selfloop $2"
229 elif [[ $1 = '-excprefetch' ]]
231 JAVAOPTS="$JAVAOPTS -excprefetch $2"
233 elif [[ $1 = '-arraypad' ]]
235 JAVAOPTS="$JAVAOPTS -arraypad"
236 elif [[ $1 = '-dsm' ]]
238 JAVAOPTS="$JAVAOPTS -dsm"
240 elif [[ $1 = '-fastmemcpy' ]]
243 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
244 elif [[ $1 = '-singleTM' ]]
246 JAVAOPTS="$JAVAOPTS -singleTM"
247 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
249 elif [[ $1 = '-stmarray' ]]
251 JAVAOPTS="$JAVAOPTS -stmarray"
252 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
254 elif [[ $1 = '-dualview' ]]
256 JAVAOPTS="$JAVAOPTS -dualview"
257 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
259 elif [[ $1 = '-readset' ]]
261 JAVAOPTS="$JAVAOPTS -readset"
262 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
263 elif [[ $1 = '-stmdebug' ]]
265 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
266 elif [[ $1 = '-stmstats' ]]
268 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
269 elif [[ $1 = '-stmlog' ]]
271 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
272 elif [[ $1 = '-prefetch' ]]
274 JAVAOPTS="$JAVAOPTS -prefetch"
275 elif [[ $1 = '-transstats' ]]
277 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
278 elif [[ $1 = '-printflat' ]]
280 JAVAOPTS="$JAVAOPTS -printflat"
281 elif [[ $1 = '-trueprob' ]]
283 JAVAOPTS="$JAVAOPTS -trueprob $2"
285 elif [[ $1 = '-inlineatomic' ]]
287 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
289 elif [[ $1 = '-mac' ]]
291 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
292 elif [[ $1 = '-profile' ]]
295 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
296 elif [[ $1 = '-gcprofile' ]]
299 elif [[ $1 = '-accurateprofile' ]]
301 ACCURATEPROFILEFLAG=true
302 elif [[ $1 = '-useio' ]]
305 elif [[ $1 = '-taskstate' ]]
307 JAVAOPTS="$JAVAOPTS -taskstate"
308 elif [[ $1 = '-tagstate' ]]
310 JAVAOPTS="$JAVAOPTS -tagstate"
311 elif [[ $1 = '-scheduling' ]]
313 JAVAOPTS="$JAVAOPTS -scheduling"
314 elif [[ $1 = '-multicore' ]]
317 JAVAOPTS="$JAVAOPTS -multicore"
318 elif [[ $1 = '-numcore' ]]
320 JAVAOPTS="$JAVAOPTS -numcore $2"
321 if [[ "$2" -gt "1" ]]
323 TILERAN1COREFLAG=true
326 elif [[ $1 = '-numcore4gc' ]]
328 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
330 if [[ "$2" -eq "1" ]]
335 elif [[ $1 = '-raw' ]]
338 JAVAOPTS="$JAVAOPTS -raw"
339 elif [[ $1 = '-tilera_bme' ]]
343 elif [[ $1 = '-tilera_zlinux' ]]
346 TILERAZLINUXFLAG=true
347 elif [[ $1 = '-tileraconfig' ]]
351 elif [[ $1 = '-cacheflush' ]]
354 elif [[ $1 = '-rawconfig' ]]
358 elif [[ $1 = '-interrupt' ]]
361 elif [[ $1 = '-abcclose' ]]
363 JAVAOPTS="$JAVAOPTS -abcclose"
364 elif [[ $1 = '-optional' ]]
366 JAVAOPTS="$JAVAOPTS -optional"
368 elif [[ $1 = '-multicoregc' ]]
371 JAVAOPTS="$JAVAOPTS -multicoregc"
372 elif [[ $1 = '-gcmem_local' ]]
375 elif [[ $1 = '-gcmem_fixed' ]]
378 elif [[ $1 = '-gcmem_mixed' ]]
381 elif [[ $1 = '-gcmem_global' ]]
384 elif [[ $1 = '-dmalloc' ]]
387 elif [[ $1 = '-recover' ]]
390 JAVAOPTS="$JAVAOPTS -task"
391 elif [[ $1 = '-useprofile' ]]
393 JAVAOPTS="$JAVAOPTS -useprofile $2"
395 elif [[ $1 = '-webinterface' ]]
397 JAVAOPTS="$JAVAOPTS -webinterface"
398 elif [[ $1 = '-instructionfailures' ]]
400 JAVAOPTS="$JAVAOPTS -instructionfailures"
401 elif [[ $1 = '-joptimize' ]]
403 JAVAOPTS="$JAVAOPTS -optimize"
404 elif [[ $1 = '-dcopts' ]]
406 JAVAOPTS="$JAVAOPTS -dcopts"
407 elif [[ $1 = '-delaycomp' ]]
409 JAVAOPTS="$JAVAOPTS -delaycomp"
410 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
411 elif [[ $1 = '-hybrid' ]]
413 JAVAOPTS="$JAVAOPTS -hybrid"
414 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
415 elif [[ $1 = '-minimize' ]]
417 JAVAOPTS="$JAVAOPTS -minimize"
419 elif [[ $1 = '-ooojava' ]]
422 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
423 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
427 elif [[ $1 = '-mlp' ]]
430 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
431 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
435 elif [[ $1 = '-mlpdebug' ]]
437 JAVAOPTS="$JAVAOPTS -mlpdebug"
439 elif [[ $1 = '-check' ]]
442 JAVAOPTS="$JAVAOPTS -conscheck"
443 elif [[ $1 = '-enable-assertions' ]]
445 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
446 elif [[ $1 = '-specdir' ]]
452 elif [[ $1 = '-debug' ]]
455 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
456 elif [[ $1 = '-rawpath' ]]
459 elif [[ $1 = '-runtimedebug' ]]
461 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
462 elif [[ $1 = '-dsmcaching' ]]
464 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
465 elif [[ $1 = '-rangeprefetch' ]]
467 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
468 elif [[ $1 = '-nooptimize' ]]
470 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
471 elif [[ $1 = '-optimize' ]]
473 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
474 elif [[ $1 = '-thread' ]]
476 JAVAOPTS="$JAVAOPTS -thread"
477 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
479 elif [[ $1 = '-recovery' ]]
481 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
483 elif [[ $1 = '-recoverystats' ]]
485 JAVAOPTS="$JAVAOPTS -recoverystats"
486 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
487 elif [[ $1 = '-distributioninfo' ]]
489 JAVAOPTS="$JAVAOPTS -distributioninfo"
490 elif [[ $1 = '-disall' ]]
492 JAVAOPTS="$JAVAOPTS -disall"
493 elif [[ $1 = '-disstart' ]]
495 JAVAOPTS="$JAVAOPTS -disstart $2"
497 elif [[ $1 = '-noc' ]]
500 elif [[ $1 = '-curdir' ]]
504 elif [[ $1 = '-outputdir' ]]
506 JAVAOPTS="$JAVAOPTS -outputdir $2"
509 SRCFILES="$SRCFILES $1"
514 BUILDDIR="$CURDIR/$tmpbuilddirectory"
522 if $CHECKFLAG #Generate structure files for repair tool
524 JAVAOPTS="$JAVAOPTS -struct structfile"
534 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
536 #base bristlecone files
537 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
543 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
546 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
549 #threading java stuff
550 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
553 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
556 # Build bristlecone/java sources
560 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
561 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
562 -dir $BUILDDIR $JAVAOPTS $SRCFILES
566 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
569 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
570 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
577 if $EXITAFTERANALYSIS
582 # Build all of the consistency specs
584 if $CHECKFLAG # CHECKFLAG
587 mkdir $BUILDDIR/specdir
588 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
590 echo > $BUILDDIR/specs
592 # compile specs into C code
593 for i in * # iterate over all directories
595 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
598 cat $BUILDDIR/structfile.struct $i.label > $i.struct
599 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
600 cp size.[c,h] $BUILDDIR/specdir
601 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
602 echo $i >> $BUILDDIR/specs
604 done # iterate over all directories
610 echo > $BUILDDIR/checkers.h
611 for i in `cat $BUILDDIR/specs`
613 gcc -O0 -g -fbounds-check -c $i\_aux.c
614 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
618 #build and link everything
623 MAKEFILE="Makefile.raw"
629 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
633 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
638 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
643 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
647 then # profile version
648 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
651 if $ACCURATEPROFILEFLAG
652 then # accurateprofile version
653 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
658 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
662 then #INTERRUPT version
663 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
664 fi #INTERRUPT version
668 MAKEFILE="$MAKEFILE.io"
669 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
671 MAKEFILE="$MAKEFILE.$RAWCONFIG"
674 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
679 cp ../Runtime/RAW/*.c ./
680 cp ../Runtime/RAW/*.h ./
681 cp ../Runtime/RAW/*.S ./
682 cp ../Runtime/RAW/*.s ./
683 cp ../$tmpbuilddirectory/*.c ./
684 cp ../$tmpbuilddirectory/*.h ./
690 TILERADIR="$CURDIR/tilera"
694 MAKEFILE="Makefile.tilera.$TILERACONFIG"
695 SIMHVC="sim.hvc.$TILERACONFIG"
696 PCIHVC="pci.hvc.$TILERACONFIG"
700 then # not only with 1 core
704 elif $TILERAZLINUXFLAG
705 then # TILERAZLINUXFLAG
706 TILERA_INDIR="ZLinux"
707 MAKEFILE="Makefile.tilera.$TILERACONFIG"
714 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
718 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
719 elif $TILERAZLINUXFLAG
720 then # TILERAZLINUXFLAG
721 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
726 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
731 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
736 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
740 then # profile version
741 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
744 if $ACCURATEPROFILEFLAG
745 then # accurateprofile version
746 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
751 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
755 then #INTERRUPT version
756 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
757 fi #INTERRUPT version
760 then #MULTICOREGC version
761 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
765 then # GC_PROFILE version
766 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
770 then # SMEMLOCAL version
771 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
775 then # SMEMFIXED version
776 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
780 then # SMEMMIXED version
781 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
785 then # SMEMGLOBAL version
786 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
789 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
792 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
793 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
794 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
796 cp ../Runtime/multicoretask.c ./
797 cp ../Runtime/multicoreruntime.c ./
798 cp ../Runtime/Queue.c ./
799 cp ../Runtime/file.c ./
800 cp ../Runtime/math.c ./
801 cp ../Runtime/object.c ./
802 cp ../Runtime/GenericHashtable.c ./
803 cp ../Runtime/SimpleHash.c ./
804 cp ../Runtime/GCSharedHash.c ./
805 cp ../Runtime/ObjectHash.c ./
806 cp ../Runtime/socket.c ./
807 cp ../Runtime/mem.c ./
808 cp ../Runtime/multicoregarbage.c ./
809 cp ../Runtime/MGCHash.c ./
810 cp ../Runtime/GenericHashtable.h ./
811 cp ../Runtime/mem.h ./
812 cp ../Runtime/multicoreruntime.h ./
813 cp ../Runtime/object.h ./
814 cp ../Runtime/ObjectHash.h ./
815 cp ../Runtime/Queue.h ./
816 cp ../Runtime/runtime.h ./
817 cp ../Runtime/SimpleHash.h ./
818 cp ../Runtime/GCSharedHash.h ./
819 cp ../Runtime/multicoregc.h ./
820 cp ../Runtime/multicoregarbage.h ./
821 cp ../Runtime/multicorehelper.h ./
822 cp ../Runtime/MGCHash.h ./
823 cp ../Tilera/Runtime/*.c ./
824 cp ../Tilera/Runtime/*.h ./
825 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
826 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
828 then # TILERAZLINUXFLAG
829 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
831 cp ../Tilera/lib/* ./
832 cp ../$tmpbuilddirectory/*.c ./
833 cp ../$tmpbuilddirectory/*.h ./
837 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
840 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
845 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
847 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
850 FILES="$RUNTIMEFILE \
851 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
852 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
853 $ROBUSTROOT/Runtime/ObjectHash.c \
854 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
855 $ROBUSTROOT/Runtime/math.c \
856 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
860 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
865 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
870 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
877 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
878 FILES="$FILES $DSMRECOVERYRUNTIME/trans.c $DSMRECOVERYRUNTIME/mcpileq.c $DSMRECOVERYRUNTIME/objstr.c $DSMRECOVERYRUNTIME/dstm.c $DSMRECOVERYRUNTIME/altmlookup.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/altprelookup.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 $DSMRECOVERYRUNTIME/translist.c $DSMRECOVERYRUNTIME/paxos.c"
880 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
881 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"
887 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
888 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
895 FILES="$FILES $DSMRUNTIME/sandbox.c"
897 FILES="$FILES $STMRUNTIME/sandbox.c"
903 FILES="$FILES $DSMRUNTIME/abortreaders.c"
908 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
913 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
914 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
915 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
920 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
923 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
925 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
928 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
930 if $THREADSIMULATEFLAG
932 # -lpthread for pthread functions, -lrt for message queue functions
933 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
939 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
940 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
945 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
950 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
951 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
956 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
961 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
962 -c $tmpbuilddirectory/methods.c -lm
967 gcc $INCLUDES $EXTRAOPTIONS \
968 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
970 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
971 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin