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 -gcprofile build with gcprofile options
44 echo -accurateprofile build with accurate profile information including pre/post task processing info
45 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
48 echo -builddir setup different build directory
49 echo -robustroot set up the ROBUSTROOT to directory other than default one
50 echo -readset turn on readset
51 echo -mac distributed shared memory mac support
52 echo -check generate check code
53 echo -dmalloc link in dmalloc
54 echo -64bit compile for 64 bit machine
55 echo -32bit compile for 32 bit machine
56 echo -joptimize java compiler optimizations
57 echo -recover compile task code
58 echo -fastcheck fast checkpointing for Bristlecone
59 echo -specdir directory
60 echo -printflat print out flat representation
61 echo -selfloop task - this task cannot self loop forever
62 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
63 echo -taskstate do task state analysis
64 echo -tagstate do tag state analysis
65 echo -optional enable optional
66 echo -debug generate debug symbols
67 echo -prefetch do prefetch analysis
68 echo -garbagestats Print garbage collection statistics
69 echo -webinterface enable web interface
70 echo -runtimedebug printout runtime debug messages
71 echo "-thread use support for multiple threads"
72 echo "-optimize call gcc with -O9 (optimize)"
73 echo "-nooptimize call gcc with -O0 (do not optimize)"
74 echo -curdir directory
75 echo -mainclass class with main method
77 echo -nojava do not run bristlecone compiler
78 echo -instructionfailures inject code for instructionfailures
79 echo -profile build with profile options
80 echo "-enable-assertions execute assert statements during compilation"
81 echo -justanalyze exit after compiler analyses complete
82 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
83 echo "-disall execute to collect whole distribution"
84 echo "-disstart specify the start number of distribution information collection"
85 echo -assembly generate assembly
86 echo -recovery compile recovery code
87 echo -dsmtask support work and task class library
88 echo -recoverystats print out recovery record
92 tmpbuilddirectory="tmpbuilddirectory"
96 ROBUSTROOT=~/research/Robust/src
97 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
98 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
99 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
100 REPAIRROOT=~/research/Repair/RepairCompiler/
118 TILERAZLINUXFLAG=false
126 ACCURATEPROFILEFLAG=false
129 THREADSIMULATEFLAG=false;
130 MULTICOREGCFLAG=false;
141 EXITAFTERANALYSIS=false
153 if [[ $1 = '-help' ]]
157 elif [[ $1 = '-justanalyze' ]]
159 EXITAFTERANALYSIS=true
160 elif [[ $1 = '-assembly' ]]
163 elif [[ $1 = '-abortreaders' ]]
166 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
167 JAVAOPTS="$JAVAOPTS -abortreaders"
168 elif [[ $1 = '-sandbox' ]]
171 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
172 JAVAOPTS="$JAVAOPTS -sandbox"
173 elif [[ $1 = '-numa' ]]
175 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
177 elif [[ $1 = '-robustroot' ]]
181 elif [[ $1 = '-builddir' ]]
183 tmpbuilddirectory="$2"
185 elif [[ $1 = '-nojava' ]]
188 elif [[ $1 = '-eventmonitor' ]]
190 JAVAOPTS="$JAVAOPTS -eventmonitor"
192 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
193 elif [[ $1 = '-garbagestats' ]]
195 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
196 elif [[ $1 = '-64bit' ]]
198 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
199 elif [[ $1 = '-32bit' ]]
201 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
202 elif [[ $1 = '-fastcheck' ]]
204 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
205 JAVAOPTS="$JAVAOPTS -fastcheck"
211 elif [[ $1 = '-mainclass' ]]
213 JAVAOPTS="$JAVAOPTS -mainclass $2"
215 elif [[ $1 = '-selfloop' ]]
217 JAVAOPTS="$JAVAOPTS -selfloop $2"
219 elif [[ $1 = '-excprefetch' ]]
221 JAVAOPTS="$JAVAOPTS -excprefetch $2"
223 elif [[ $1 = '-arraypad' ]]
225 JAVAOPTS="$JAVAOPTS -arraypad"
226 elif [[ $1 = '-dsm' ]]
228 JAVAOPTS="$JAVAOPTS -dsm"
230 elif [[ $1 = '-fastmemcpy' ]]
233 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
234 elif [[ $1 = '-singleTM' ]]
236 JAVAOPTS="$JAVAOPTS -singleTM"
237 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
239 elif [[ $1 = '-stmarray' ]]
241 JAVAOPTS="$JAVAOPTS -stmarray"
242 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
244 elif [[ $1 = '-dualview' ]]
246 JAVAOPTS="$JAVAOPTS -dualview"
247 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
249 elif [[ $1 = '-readset' ]]
251 JAVAOPTS="$JAVAOPTS -readset"
252 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
253 elif [[ $1 = '-stmdebug' ]]
255 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
256 elif [[ $1 = '-stmstats' ]]
258 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
259 elif [[ $1 = '-stmlog' ]]
261 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
262 elif [[ $1 = '-prefetch' ]]
264 JAVAOPTS="$JAVAOPTS -prefetch"
265 elif [[ $1 = '-transstats' ]]
267 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
268 elif [[ $1 = '-printflat' ]]
270 JAVAOPTS="$JAVAOPTS -printflat"
271 elif [[ $1 = '-trueprob' ]]
273 JAVAOPTS="$JAVAOPTS -trueprob $2"
275 elif [[ $1 = '-inlineatomic' ]]
277 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
279 elif [[ $1 = '-mac' ]]
281 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
282 elif [[ $1 = '-profile' ]]
285 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
286 elif [[ $1 = '-gcprofile' ]]
289 elif [[ $1 = '-accurateprofile' ]]
291 ACCURATEPROFILEFLAG=true
292 elif [[ $1 = '-useio' ]]
295 elif [[ $1 = '-taskstate' ]]
297 JAVAOPTS="$JAVAOPTS -taskstate"
298 elif [[ $1 = '-tagstate' ]]
300 JAVAOPTS="$JAVAOPTS -tagstate"
301 elif [[ $1 = '-scheduling' ]]
303 JAVAOPTS="$JAVAOPTS -scheduling"
304 elif [[ $1 = '-multicore' ]]
307 JAVAOPTS="$JAVAOPTS -multicore"
308 elif [[ $1 = '-numcore' ]]
310 JAVAOPTS="$JAVAOPTS -numcore $2"
312 elif [[ $1 = '-numcore4gc' ]]
314 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
317 elif [[ $1 = '-raw' ]]
320 JAVAOPTS="$JAVAOPTS -raw"
321 elif [[ $1 = '-tilera_bme' ]]
325 elif [[ $1 = '-tilera_zlinux' ]]
328 TILERAZLINUXFLAG=true
329 elif [[ $1 = '-tileraconfig' ]]
333 elif [[ $1 = '-cacheflush' ]]
336 elif [[ $1 = '-rawconfig' ]]
340 elif [[ $1 = '-interrupt' ]]
343 elif [[ $1 = '-abcclose' ]]
345 JAVAOPTS="$JAVAOPTS -abcclose"
346 elif [[ $1 = '-optional' ]]
348 JAVAOPTS="$JAVAOPTS -optional"
350 elif [[ $1 = '-multicoregc' ]]
353 JAVAOPTS="$JAVAOPTS -multicoregc"
354 elif [[ $1 = '-dmalloc' ]]
357 elif [[ $1 = '-recover' ]]
360 JAVAOPTS="$JAVAOPTS -task"
361 elif [[ $1 = '-useprofile' ]]
363 JAVAOPTS="$JAVAOPTS -useprofile $2"
365 elif [[ $1 = '-webinterface' ]]
367 JAVAOPTS="$JAVAOPTS -webinterface"
368 elif [[ $1 = '-instructionfailures' ]]
370 JAVAOPTS="$JAVAOPTS -instructionfailures"
371 elif [[ $1 = '-joptimize' ]]
373 JAVAOPTS="$JAVAOPTS -optimize"
374 elif [[ $1 = '-dcopts' ]]
376 JAVAOPTS="$JAVAOPTS -dcopts"
377 elif [[ $1 = '-delaycomp' ]]
379 JAVAOPTS="$JAVAOPTS -delaycomp"
380 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
381 elif [[ $1 = '-hybrid' ]]
383 JAVAOPTS="$JAVAOPTS -hybrid"
384 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
385 elif [[ $1 = '-minimize' ]]
387 JAVAOPTS="$JAVAOPTS -minimize"
389 elif [[ $1 = '-ooojava' ]]
392 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
393 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
397 elif [[ $1 = '-mlp' ]]
400 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
401 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
405 elif [[ $1 = '-mlpdebug' ]]
407 JAVAOPTS="$JAVAOPTS -mlpdebug"
409 elif [[ $1 = '-check' ]]
412 JAVAOPTS="$JAVAOPTS -conscheck"
413 elif [[ $1 = '-enable-assertions' ]]
415 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
416 elif [[ $1 = '-specdir' ]]
422 elif [[ $1 = '-debug' ]]
425 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
426 elif [[ $1 = '-rawpath' ]]
429 elif [[ $1 = '-runtimedebug' ]]
431 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
432 elif [[ $1 = '-dsmcaching' ]]
434 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
435 elif [[ $1 = '-rangeprefetch' ]]
437 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
438 elif [[ $1 = '-nooptimize' ]]
440 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
441 elif [[ $1 = '-optimize' ]]
443 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
444 elif [[ $1 = '-thread' ]]
446 JAVAOPTS="$JAVAOPTS -thread"
447 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
449 elif [[ $1 = '-recovery' ]]
451 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
453 elif [[ $1 = '-recoverystats' ]]
455 JAVAOPTS="$JAVAOPTS -recoverystats"
456 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
457 elif [[ $1 = '-distributioninfo' ]]
459 JAVAOPTS="$JAVAOPTS -distributioninfo"
460 elif [[ $1 = '-disall' ]]
462 JAVAOPTS="$JAVAOPTS -disall"
463 elif [[ $1 = '-disstart' ]]
465 JAVAOPTS="$JAVAOPTS -disstart $2"
467 elif [[ $1 = '-noc' ]]
470 elif [[ $1 = '-curdir' ]]
474 elif [[ $1 = '-outputdir' ]]
476 JAVAOPTS="$JAVAOPTS -outputdir $2"
479 SRCFILES="$SRCFILES $1"
484 BUILDDIR="$CURDIR/$tmpbuilddirectory"
492 if $CHECKFLAG #Generate structure files for repair tool
494 JAVAOPTS="$JAVAOPTS -struct structfile"
504 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
506 #base bristlecone files
507 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
513 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
516 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
519 #threading java stuff
520 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
523 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
526 # Build bristlecone/java sources
530 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
531 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
532 -dir $BUILDDIR $JAVAOPTS $SRCFILES
536 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
539 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
540 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
547 if $EXITAFTERANALYSIS
552 # Build all of the consistency specs
554 if $CHECKFLAG # CHECKFLAG
557 mkdir $BUILDDIR/specdir
558 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
560 echo > $BUILDDIR/specs
562 # compile specs into C code
563 for i in * # iterate over all directories
565 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
568 cat $BUILDDIR/structfile.struct $i.label > $i.struct
569 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
570 cp size.[c,h] $BUILDDIR/specdir
571 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
572 echo $i >> $BUILDDIR/specs
574 done # iterate over all directories
580 echo > $BUILDDIR/checkers.h
581 for i in `cat $BUILDDIR/specs`
583 gcc -O0 -g -fbounds-check -c $i\_aux.c
584 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
588 #build and link everything
593 MAKEFILE="Makefile.raw"
599 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
603 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
608 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
613 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
617 then # profile version
618 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
621 if $ACCURATEPROFILEFLAG
622 then # accurateprofile version
623 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
628 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
632 then #INTERRUPT version
633 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
634 fi #INTERRUPT version
638 MAKEFILE="$MAKEFILE.io"
639 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
641 MAKEFILE="$MAKEFILE.$RAWCONFIG"
644 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
649 cp ../Runtime/RAW/*.c ./
650 cp ../Runtime/RAW/*.h ./
651 cp ../Runtime/RAW/*.S ./
652 cp ../Runtime/RAW/*.s ./
653 cp ../$tmpbuilddirectory/*.c ./
654 cp ../$tmpbuilddirectory/*.h ./
660 TILERADIR="$CURDIR/tilera"
664 MAKEFILE="Makefile.tilera.$TILERACONFIG"
665 SIMHVC="sim.hvc.$TILERACONFIG"
666 PCIHVC="pci.hvc.$TILERACONFIG"
667 elif $TILERAZLINUXFLAG
668 then # TILERAZLINUXFLAG
669 TILERA_INDIR="ZLinux"
670 MAKEFILE="Makefile.tilera.$TILERACONFIG"
677 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
681 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
682 elif $TILERAZLINUXFLAG
683 then # TILERAZLINUXFLAG
684 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
689 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
694 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
699 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
703 then # profile version
704 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
707 if $ACCURATEPROFILEFLAG
708 then # accurateprofile version
709 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
714 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
718 then #INTERRUPT version
719 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
720 fi #INTERRUPT version
723 then #MULTICOREGC version
724 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
728 then # GC_PROFILE version
729 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
732 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
735 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
736 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
737 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
739 cp ../Runtime/multicoretask.c ./
740 cp ../Runtime/multicoreruntime.c ./
741 cp ../Runtime/Queue.c ./
742 cp ../Runtime/file.c ./
743 cp ../Runtime/math.c ./
744 cp ../Runtime/object.c ./
745 cp ../Runtime/GenericHashtable.c ./
746 cp ../Runtime/SimpleHash.c ./
747 cp ../Runtime/GCSharedHash.c ./
748 cp ../Runtime/ObjectHash.c ./
749 cp ../Runtime/socket.c ./
750 cp ../Runtime/mem.c ./
751 cp ../Runtime/multicoregarbage.c ./
752 cp ../Runtime/MGCHash.c ./
753 cp ../Runtime/GenericHashtable.h ./
754 cp ../Runtime/mem.h ./
755 cp ../Runtime/multicoreruntime.h ./
756 cp ../Runtime/object.h ./
757 cp ../Runtime/ObjectHash.h ./
758 cp ../Runtime/Queue.h ./
759 cp ../Runtime/runtime.h ./
760 cp ../Runtime/SimpleHash.h ./
761 cp ../Runtime/GCSharedHash.h ./
762 cp ../Runtime/multicoregc.h ./
763 cp ../Runtime/multicoregarbage.h ./
764 cp ../Runtime/multicorehelper.h ./
765 cp ../Runtime/MGCHash.h ./
766 cp ../Tilera/Runtime/*.c ./
767 cp ../Tilera/Runtime/*.h ./
768 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
769 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
771 then # TILERAZLINUXFLAG
772 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
774 cp ../Tilera/lib/* ./
775 cp ../$tmpbuilddirectory/*.c ./
776 cp ../$tmpbuilddirectory/*.h ./
780 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
783 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
788 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
790 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
793 FILES="$RUNTIMEFILE \
794 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
795 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
796 $ROBUSTROOT/Runtime/ObjectHash.c \
797 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
798 $ROBUSTROOT/Runtime/math.c \
799 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
803 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
808 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
813 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
820 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
821 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"
823 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
824 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"
830 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
831 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
838 FILES="$FILES $DSMRUNTIME/sandbox.c"
840 FILES="$FILES $STMRUNTIME/sandbox.c"
846 FILES="$FILES $DSMRUNTIME/abortreaders.c"
851 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
856 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
857 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
858 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
863 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
866 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
868 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
871 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
873 if $THREADSIMULATEFLAG
875 # -lpthread for pthread functions, -lrt for message queue functions
876 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
882 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
883 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
888 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
893 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
894 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
899 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
904 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
905 -c $tmpbuilddirectory/methods.c -lm
910 gcc $INCLUDES $EXTRAOPTIONS \
911 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
913 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
914 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin