4 echo -robustroot set up the ROBUSTROOT to directory other than default one
5 echo -dsm distributed shared memory
6 echo -singleTM single machine committing transactions
7 echo -readset turn on readset
8 echo -stmdebug STM debug
9 echo "-stmstats prints single machine commit (stm) statistics for the benchmark"
10 echo -fastmemcpy use fast memcpy
11 echo -abortreaders abort readers immediately
12 echo -sandbox sandbox transactions
13 echo -trueprob double - probabiltiy of true branch
14 echo -dsmcaching -enable caching in dsm runtime
15 echo -mac distributed shared memory mac support
16 echo -check generate check code
17 echo -dmalloc link in dmalloc
18 echo -64bit compile for 64 bit machine
19 echo -32bit compile for 32 bit machine
20 echo -joptimize java compiler optimizations
21 echo -dcopts conflict optimizations for transactional memory
22 echo -recover compile task code
23 echo -fastcheck fast checkpointing for Bristlecone
24 echo -specdir directory
25 echo -printflat print out flat representation
26 echo -selfloop task - this task cannot self loop forever
27 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
28 echo -taskstate do task state analysis
29 echo -tagstate do tag state analysis
30 echo -scheduling do task scheduling
31 echo -multicore generate multi-core version binary
32 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
33 echo "-cacheflush enable cache flush in raw version binary (should be used togethere with -raw)"
34 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
35 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
36 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
37 echo -printscheduling print out scheduling graphs
38 echo -printschedulesim print out scheduling simulator result graphs
39 echo -abcclose close the array boundary check
40 echo "-tilera generate tilera version binary (should be used together with -multicore"
41 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
42 echo "-raw generate raw version binary (should be used together with -multicore)"
43 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
44 echo -threadsimulate generate multi-thread simulate version binary
45 echo -optional enable optional
46 echo -debug generate debug symbols
47 echo -prefetch do prefetch analysis
48 echo -transstats generates transaction stats on commits and aborts
49 echo -garbagestats Print garbage collection statistics
50 echo -webinterface enable web interface
51 echo -runtimedebug printout runtime debug messages
52 echo -inlineatomic depth inline methods inside of transactions to specified depth
53 echo "-thread use support for multiple threads"
54 echo "-optimize call gcc with -O9 (optimize)"
55 echo "-nooptimize call gcc with -O0 (do not optimize)"
56 echo -curdir directory
57 echo -mainclass class with main method
59 echo -nojava do not run bristlecone compiler
60 echo -instructionfailures inject code for instructionfailures
61 echo -profile build with profile options
62 echo -accurateprofile build with accurate profile information including pre/post task processing info
63 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
64 echo "-enable-assertions execute assert statements during compilation"
65 echo -justanalyze exit after compiler analyses complete
66 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
67 echo "-disall execute to collect whole distribution"
68 echo "-disstart specify the start number of distribution information collection"
69 echo -assembly generate assembly
75 ROBUSTROOT=~/research/Robust/src
76 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
77 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
78 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
79 REPAIRROOT=~/research/Repair/RepairCompiler/
99 ACCURATEPROFILEFLAG=false
102 THREADSIMULATEFLAG=false;
113 EXITAFTERANALYSIS=false
124 if [[ $1 = '-help' ]]
128 elif [[ $1 = '-justanalyze' ]]
130 EXITAFTERANALYSIS=true
131 elif [[ $1 = '-assembly' ]]
134 elif [[ $1 = '-abortreaders' ]]
137 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
138 JAVAOPTS="$JAVAOPTS -abortreaders"
139 elif [[ $1 = '-sandbox' ]]
142 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
143 JAVAOPTS="$JAVAOPTS -sandbox"
144 elif [[ $1 = '-robustroot' ]]
148 elif [[ $1 = '-nojava' ]]
151 elif [[ $1 = '-garbagestats' ]]
153 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
154 elif [[ $1 = '-64bit' ]]
156 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64"
157 elif [[ $1 = '-32bit' ]]
159 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
160 elif [[ $1 = '-fastcheck' ]]
162 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
163 JAVAOPTS="$JAVAOPTS -fastcheck"
169 elif [[ $1 = '-mainclass' ]]
171 JAVAOPTS="$JAVAOPTS -mainclass $2"
173 elif [[ $1 = '-selfloop' ]]
175 JAVAOPTS="$JAVAOPTS -selfloop $2"
177 elif [[ $1 = '-excprefetch' ]]
179 JAVAOPTS="$JAVAOPTS -excprefetch $2"
181 elif [[ $1 = '-arraypad' ]]
183 JAVAOPTS="$JAVAOPTS -arraypad"
184 elif [[ $1 = '-dsm' ]]
186 JAVAOPTS="$JAVAOPTS -dsm"
188 elif [[ $1 = '-fastmemcpy' ]]
191 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
192 elif [[ $1 = '-singleTM' ]]
194 JAVAOPTS="$JAVAOPTS -singleTM"
195 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
197 elif [[ $1 = '-readset' ]]
199 JAVAOPTS="$JAVAOPTS -readset"
200 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
201 elif [[ $1 = '-stmdebug' ]]
203 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
204 elif [[ $1 = '-stmstats' ]]
206 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
207 elif [[ $1 = '-stmlog' ]]
209 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
210 elif [[ $1 = '-prefetch' ]]
212 JAVAOPTS="$JAVAOPTS -prefetch"
213 elif [[ $1 = '-transstats' ]]
215 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
216 elif [[ $1 = '-printflat' ]]
218 JAVAOPTS="$JAVAOPTS -printflat"
219 elif [[ $1 = '-trueprob' ]]
221 JAVAOPTS="$JAVAOPTS -trueprob $2"
223 elif [[ $1 = '-inlineatomic' ]]
225 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
227 elif [[ $1 = '-mac' ]]
229 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
230 elif [[ $1 = '-profile' ]]
233 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
234 elif [[ $1 = '-accurateprofile' ]]
236 ACCURATEPROFILEFLAG=true
237 elif [[ $1 = '-useio' ]]
240 elif [[ $1 = '-taskstate' ]]
242 JAVAOPTS="$JAVAOPTS -taskstate"
243 elif [[ $1 = '-tagstate' ]]
245 JAVAOPTS="$JAVAOPTS -tagstate"
246 elif [[ $1 = '-scheduling' ]]
248 JAVAOPTS="$JAVAOPTS -scheduling"
249 elif [[ $1 = '-multicore' ]]
252 JAVAOPTS="$JAVAOPTS -multicore"
253 elif [[ $1 = '-numcore' ]]
255 JAVAOPTS="$JAVAOPTS -numcore $2"
257 elif [[ $1 = '-raw' ]]
260 JAVAOPTS="$JAVAOPTS -raw"
261 elif [[ $1 = '-tilera' ]]
264 elif [[ $1 = '-tileraconfig' ]]
268 elif [[ $1 = '-cacheflush' ]]
271 elif [[ $1 = '-rawconfig' ]]
275 elif [[ $1 = '-interrupt' ]]
278 elif [[ $1 = '-threadsimulate' ]]
280 THREADSIMULATEFLAG=true
281 elif [[ $1 = '-abcclose' ]]
283 JAVAOPTS="$JAVAOPTS -abcclose"
284 elif [[ $1 = '-optional' ]]
286 JAVAOPTS="$JAVAOPTS -optional"
288 elif [[ $1 = '-dmalloc' ]]
291 elif [[ $1 = '-recover' ]]
294 JAVAOPTS="$JAVAOPTS -task"
295 elif [[ $1 = '-useprofile' ]]
297 JAVAOPTS="$JAVAOPTS -useprofile $2"
299 elif [[ $1 = '-webinterface' ]]
301 JAVAOPTS="$JAVAOPTS -webinterface"
302 elif [[ $1 = '-instructionfailures' ]]
304 JAVAOPTS="$JAVAOPTS -instructionfailures"
305 elif [[ $1 = '-joptimize' ]]
307 JAVAOPTS="$JAVAOPTS -optimize"
308 elif [[ $1 = '-dcopts' ]]
310 JAVAOPTS="$JAVAOPTS -dcopts"
311 elif [[ $1 = '-delaycomp' ]]
313 JAVAOPTS="$JAVAOPTS -delaycomp"
314 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
315 elif [[ $1 = '-minimize' ]]
317 JAVAOPTS="$JAVAOPTS -minimize"
319 elif [[ $1 = '-mlp' ]]
322 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread"
323 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
327 elif [[ $1 = '-mlpdebug' ]]
329 JAVAOPTS="$JAVAOPTS -mlpdebug"
331 elif [[ $1 = '-check' ]]
334 JAVAOPTS="$JAVAOPTS -conscheck"
335 elif [[ $1 = '-enable-assertions' ]]
337 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
338 elif [[ $1 = '-specdir' ]]
344 elif [[ $1 = '-debug' ]]
347 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
348 elif [[ $1 = '-rawpath' ]]
351 elif [[ $1 = '-runtimedebug' ]]
353 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
354 elif [[ $1 = '-dsmcaching' ]]
356 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
357 elif [[ $1 = '-rangeprefetch' ]]
359 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
360 elif [[ $1 = '-nooptimize' ]]
362 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
363 elif [[ $1 = '-optimize' ]]
365 EXTRAOPTIONS="$EXTRAOPTIONS -O9"
366 elif [[ $1 = '-thread' ]]
368 JAVAOPTS="$JAVAOPTS -thread"
369 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
371 elif [[ $1 = '-recovery' ]]
373 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
375 elif [[ $1 = '-distributioninfo' ]]
377 JAVAOPTS="$JAVAOPTS -distributioninfo"
378 elif [[ $1 = '-disall' ]]
380 JAVAOPTS="$JAVAOPTS -disall"
381 elif [[ $1 = '-disstart' ]]
383 JAVAOPTS="$JAVAOPTS -disstart $2"
385 elif [[ $1 = '-noc' ]]
388 elif [[ $1 = '-curdir' ]]
392 elif [[ $1 = '-outputdir' ]]
394 JAVAOPTS="$JAVAOPTS -outputdir $2"
397 SRCFILES="$SRCFILES $1"
402 BUILDDIR="$CURDIR/tmpbuilddirectory"
410 if $CHECKFLAG #Generate structure files for repair tool
412 JAVAOPTS="$JAVAOPTS -struct structfile"
422 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
424 #base bristlecone files
425 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
431 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
434 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
437 #threading java stuff
438 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
441 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
444 # Build bristlecone/java sources
448 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
449 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ \
450 -dir $BUILDDIR $JAVAOPTS $SRCFILES
454 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
457 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
458 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
465 if $EXITAFTERANALYSIS
470 # Build all of the consistency specs
472 if $CHECKFLAG # CHECKFLAG
475 mkdir $BUILDDIR/specdir
476 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
478 echo > $BUILDDIR/specs
480 # compile specs into C code
481 for i in * # iterate over all directories
483 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
486 cat $BUILDDIR/structfile.struct $i.label > $i.struct
487 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
488 cp size.[c,h] $BUILDDIR/specdir
489 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
490 echo $i >> $BUILDDIR/specs
492 done # iterate over all directories
498 echo > $BUILDDIR/checkers.h
499 for i in `cat $BUILDDIR/specs`
501 gcc -O0 -g -fbounds-check -c $i\_aux.c
502 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
506 #build and link everything
511 MAKEFILE="Makefile.raw"
517 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
521 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
526 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
531 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
535 then # profile version
536 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
539 if $ACCURATEPROFILEFLAG
540 then # accurateprofile version
541 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
546 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
550 then #INTERRUPT version
551 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
552 fi #INTERRUPT version
556 MAKEFILE="$MAKEFILE.io"
557 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
559 MAKEFILE="$MAKEFILE.$RAWCONFIG"
562 cp $ROBUSTROOT/Runtime/RAW/$MAKEFILE ./Makefile
567 cp ../Runtime/RAW/*.c ./
568 cp ../Runtime/RAW/*.h ./
569 cp ../Runtime/RAW/*.S ./
570 cp ../Runtime/RAW/*.s ./
571 cp ../tmpbuilddirectory/*.c ./
572 cp ../tmpbuilddirectory/*.h ./
578 TILERADIR="$CURDIR/tilera"
579 MAKEFILE="Makefile.tilera.$TILERACONFIG"
580 SIMHVC="sim.hvc.$TILERACONFIG"
581 PCIHVC="pci.hvc.$TILERACONFIG"
587 export TILERACFLAGS="-DTASK -DMULTICORE"
591 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
596 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
601 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
605 then # profile version
606 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
609 if $ACCURATEPROFILEFLAG
610 then # accurateprofile version
611 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
616 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
620 then #INTERRUPT version
621 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
622 fi #INTERRUPT version
624 cp $ROBUSTROOT/Tilera/Runtime/$MAKEFILE ./Makefile
625 cp $ROBUSTROOT/Tilera/Runtime/$SIMHVC ./sim.hvc
626 cp $ROBUSTROOT/Tilera/Runtime/$PCIHVC ./pci.hvc
627 cp $ROBUSTROOT/Tilera/Runtime/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
628 cp ../Runtime/multicoretask.c ./
629 cp ../Runtime/multicoreruntime.c ./
630 cp ../Runtime/Queue.c ./
631 cp ../Runtime/file.c ./
632 cp ../Runtime/math.c ./
633 cp ../Runtime/object.c ./
634 cp ../Runtime/GenericHashtable.c ./
635 cp ../Runtime/SimpleHash.c ./
636 cp ../Runtime/ObjectHash.c ./
637 cp ../Runtime/socket.c ./
638 cp ../Runtime/mem.c ./
639 cp ../Runtime/GenericHashtable.h ./
640 cp ../Runtime/mem.h ./
641 cp ../Runtime/multicoreruntime.h ./
642 cp ../Runtime/object.h ./
643 cp ../Runtime/ObjectHash.h ./
644 cp ../Runtime/Queue.h ./
645 cp ../Runtime/runtime.h ./
646 cp ../Runtime/SimpleHash.h ./
647 cp ../Tilera/Runtime/*.c ./
648 cp ../Tilera/Runtime/*.h ./
649 cp ../Tilera/lib/* ./
650 cp ../tmpbuilddirectory/*.c ./
651 cp ../tmpbuilddirectory/*.h ./
655 else #!RAWFLAG && !TILERAFLAG
658 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
663 RUNTIMEFILE="$ROBUSTROOT/Runtime/multicoreruntime.c $ROBUSTROOT/Runtime/multicoretask.c"
665 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
668 FILES="$RUNTIMEFILE \
669 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
670 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
671 $ROBUSTROOT/Runtime/ObjectHash.c \
672 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
673 $ROBUSTROOT/Runtime/math.c \
674 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
678 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
685 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
686 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"
688 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
689 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"
694 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
695 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/singleTMCommit.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c"
700 FILES="$FILES $STMRUNTIME/sandbox.c"
705 FILES="$FILES $DSMRUNTIME/abortreaders.c"
710 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
715 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
716 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
717 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
722 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
725 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
727 FILES="$FILES tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
730 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
732 if $THREADSIMULATEFLAG
734 # -lpthread for pthread functions, -lrt for message queue functions
735 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
741 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
742 FILES="$FILES tmpbuilddirectory/optionalarrays.c"
747 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
752 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
753 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
758 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
763 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
764 -c tmpbuilddirectory/methods.c -lm
769 gcc $INCLUDES $EXTRAOPTIONS \
770 tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin
772 gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
773 tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin