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 -coreprof, turn on profiling API
21 echo -coreprof-eventwords NUM, space in words/thread for coreprof events
22 echo -coreprof-checkoverflow, ONLY use for debugging event overflow
23 echo -coreprof-enable EVENTNAME, only enable desired events to reduce overhead
24 echo EVENTNAME can be: cpe_main, cpe_runmalloc, cpe_runfree, cpe_poolalloc, cpe_count_poolalloc, cpe_count_poolreuse, cpe_workschedgrab, cpe_taskdispatch, cpe_preparememq, cpe_taskexecute, cpe_taskretire, cpe_taskstallvar, cpe_taskstallmem
25 echo "-ooojava <numberofcores> <maxseseage>"
26 echo -ooodebug general OOOJava debugging messages
27 echo -ooodebug-disable-task-mem-pool this is a tricky module, disable for simpler runtime
28 echo -mempool-detect-misuse turn on to find code misusing pool-allocated records
29 echo -rcr turn on runtime conflict resolver
30 echo -rcr_debug Shows weakly connected heaproots and which allocation sites were considered for traversal
31 echo -rcr_debug_verbose in addition to above, also prints out effects passed in, internal representation of effects, and internal representation of reach graph
32 echo -squeue use single queue
33 echo -corepin use core pinning
34 echo -nostalltr turn off RCR traversers that only handle conflicts between task and stallsite
35 echo -nolock turn off synchronization lock
37 echo Disjoint Reachability Analysis options
38 echo -disjoint enable analysis
39 echo -disjoint-k set k-limit for heap nodes per allocation site
40 echo "-disjoint-write-dots <all/final> write reach graphs for all method sols. or only final sols."
41 echo -disjoint-write-initial-contexts write reach graphs for callee initial contexts from all call sites
42 echo -disjoint-write-ihms write reach graphs for each call site\'s Initial Heap Model
43 echo "-disjoint-alias-file <filename> <normal/tabbed> write sharing for normal human reading or LaTeX tabbed"
44 echo "-disjoint-debug-callsite <callee> <caller> <visit to start> <num caps> <T/F stop after>"
45 echo " To debug call site, give callee caller symbols (ie foo) the analysis visit to start capturing, num captures to take, and whether to halt analysis after capturing"
46 echo "-disjoint-debug-snap-method <method> <visit to start> <num caps> <T/F stop after>"
47 echo " To take snapshots at statements, give method symbol, the analysis visit to start capturing, num captures to take, and whether to halt analsyis after capturing"
48 echo "-disjoint-dvisit-stack use stack strat to visit descriptors (tasks or methods)"
49 echo -disjoint-dvisit-stack-callees-on-top alternate stack strat
50 echo -disjoint-dvisit-pqueue use prio. q strat to visit descriptors
51 echo -disjoint-desire-determinism set above interproc for determinism
52 echo -disjoint-debug-scheduling debug when methods are scheduled for analysis
54 echo "-mlp <num cores> <max sese age> build mlp code"
55 echo -mlpdebug if mlp, report progress and interim results
58 echo -dsm distributed shared memory
59 echo -abortreaders abort readers immediately
60 echo -trueprob double - probabiltiy of true branch
61 echo -dsmcaching -enable caching in dsm runtime
63 echo BAMBOO Multicore options
64 echo -scheduling do task scheduling
65 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
66 echo "-disall execute to collect whole distribution"
67 echo "-disstart specify the start number of distribution information collection"
68 echo -multicore generate multi-core version binary
69 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
70 echo "-cacheflush enable cache flush in raw version binary (should be used togethere with -raw)"
71 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
72 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
73 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
74 echo -printscheduling print out scheduling graphs
75 echo -printschedulesim print out scheduling simulator result graphs
76 echo "-tilera_bme generate tilera version binary for Bare Mental Environment (should be used together with -multicore"
77 echo "-tilera_zlinux generate tilera version binary for Zero-Overhead Linux with multi-process mode (should be used together with -multicore"
78 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
79 echo "-raw generate raw version binary (should be used together with -multicore)"
80 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
81 echo "-tilera_memprof build the memprof version (should be used together with -tilera_xx) "
82 echo -accurateprofile build with accurate profile information including pre/post task processing info
83 echo -profile_interrupt build with profile information of interrupts
84 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
86 echo Multicore GC options
87 echo -multicoregc generate multi-core binary with garbage collection
88 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
89 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
90 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
91 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
92 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
93 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
94 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
95 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
96 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
97 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
98 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
99 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
100 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
101 echo -gcprofile build with gcprofile options
102 echo -mgc generate Multicore GC binary without task stuff
103 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
104 echo -gctbldebug generate GC_TBL_DEBUG code
107 echo -ssjava enables SSJava
111 echo -abcclose turnoff array boundary checks
112 echo -builddir setup different build directory
113 echo -robustroot set up the ROBUSTROOT to directory other than default one
114 echo -readset turn on readset
115 echo -mac distributed shared memory mac support
116 echo -check generate check code
117 echo -dmalloc link in dmalloc
118 echo -64bit compile for 64 bit machine
119 echo -32bit compile for 32 bit machine
120 echo -joptimize java compiler optimizations
121 echo -noloop turnoff loop optimizations
122 echo -recover compile task code
123 echo -fastcheck fast checkpointing for Bristlecone
124 echo -specdir directory
125 echo -printflat print out flat representation
126 echo -selfloop task - this task cannot self loop forever
127 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
128 echo -taskstate do task state analysis
129 echo -tagstate do tag state analysis
130 echo -optional enable optional
131 echo -debug generate debug symbols
132 echo -prefetch do prefetch analysis
133 echo -heapsize-mb NUM set initial heap size in MB, default is 256
134 echo -garbagestats Print garbage collection statistics
135 echo -webinterface enable web interface
136 echo -runtimedebug printout runtime debug messages
137 echo "-thread use support for multiple threads"
138 echo "-optimize call gcc with -O9 (optimize)"
139 echo "-nooptimize call gcc with -O0 (do not optimize)"
140 echo -curdir directory
141 echo -mainclass class with main method
143 echo -nojava do not run bristlecone compiler
144 echo -instructionfailures inject code for instructionfailures
145 echo -profile build with profile options
146 echo "-enable-assertions execute assert statements during compilation"
147 echo -justanalyze exit after compiler analyses complete
148 echo -assembly generate assembly
149 echo -recovery compile recovery code
150 echo -dsmtask support work and task class library
151 echo -recoverystats print out recovery record
152 echo -src-after-pp prints source code after preprocessor to tmp.c
153 echo -printlinenum print out line numbers in generated C codes
157 tmpbuilddirectory="tmpbuilddirectory"
164 ROBUSTROOT=~/research/Robust/src
165 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
166 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
167 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
168 REPAIRROOT=~/research/Repair/RepairCompiler/
184 RCR_DEBUG_VERBOSE=false
190 TILERAZLINUXFLAG=false
191 TILERAMEMPROFFLAG=false
201 ACCURATEPROFILEFLAG=false
202 PROFILEINTERRUPTFLAG=false
205 THREADSIMULATEFLAG=false;
206 MULTICOREGCFLAG=false;
207 GCMEMLOCALFLAG=false;
208 GCMEMFIXEDFLAG=false;
209 GCMEMMIXEDFLAG=false;
210 GCMEMGLOBALFLAG=false;
211 GCCACHELOCALFLAG=false;
212 GCCACHERANFLAG=false;
213 GCCONTROLLERNEARFLAG=false;
214 GCCONTROLLERREMOTEFLAG=false;
215 GCSMALLPAGESIZEFLAG=false;
216 GCLARGEPAGESIZEFLAG=false;
217 GCLARGEPAGESIZE2FLAG=false;
218 GCLARGESHAREDHEAPFLAG=false;
219 GCSMALLPAGESIZEFLAG2=false;
220 GCLARGESHAREDHEAPFLAG2=false;
221 GCCACHEADAPTFLAG=false
222 GCCACHEADAPTPOLICYFLAG=false
223 GCCACHEADAPTPOLICY=''
224 GCCACHESAMPLINGFLAG=false
227 OBJECTLOCKDEBUGFLAG=false
239 EXITAFTERANALYSIS=false
242 TILERAN1COREFLAG=false
243 TILERA56COREFLAG=false
253 if [[ $1 = '-help' ]]
257 elif [[ $1 = '-jni' ]]
260 JAVAOPTS="$JAVAOPTS -jni"
261 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
262 elif [[ $1 = '-justanalyze' ]]
264 EXITAFTERANALYSIS=true
265 elif [[ $1 = '-src-after-pp' ]]
268 elif [[ $1 = '-assembly' ]]
271 elif [[ $1 = '-abortreaders' ]]
274 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
275 JAVAOPTS="$JAVAOPTS -abortreaders"
276 elif [[ $1 = '-sandbox' ]]
279 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
280 JAVAOPTS="$JAVAOPTS -sandbox"
281 elif [[ $1 = '-numa' ]]
283 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
285 elif [[ $1 = '-robustroot' ]]
289 elif [[ $1 = '-builddir' ]]
291 tmpbuilddirectory="$2"
293 elif [[ $1 = '-nojava' ]]
296 elif [[ $1 = '-eventmonitor' ]]
298 JAVAOPTS="$JAVAOPTS -eventmonitor"
300 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
301 elif [[ $1 = '-garbagestats' ]]
303 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
304 elif [[ $1 = '-64bit' ]]
306 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
307 elif [[ $1 = '-32bit' ]]
309 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
310 elif [[ $1 = '-fastcheck' ]]
312 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
313 JAVAOPTS="$JAVAOPTS -fastcheck"
319 elif [[ $1 = '-mainclass' ]]
321 JAVAOPTS="$JAVAOPTS -mainclass $2"
323 elif [[ $1 = '-selfloop' ]]
325 JAVAOPTS="$JAVAOPTS -selfloop $2"
327 elif [[ $1 = '-excprefetch' ]]
329 JAVAOPTS="$JAVAOPTS -excprefetch $2"
331 elif [[ $1 = '-arraypad' ]]
333 JAVAOPTS="$JAVAOPTS -arraypad"
334 elif [[ $1 = '-dsm' ]]
336 JAVAOPTS="$JAVAOPTS -dsm"
338 elif [[ $1 = '-fastmemcpy' ]]
341 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
342 elif [[ $1 = '-singleTM' ]]
344 JAVAOPTS="$JAVAOPTS -singleTM"
345 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
347 elif [[ $1 = '-stmarray' ]]
349 JAVAOPTS="$JAVAOPTS -stmarray"
350 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
352 elif [[ $1 = '-dualview' ]]
354 JAVAOPTS="$JAVAOPTS -dualview"
355 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
357 elif [[ $1 = '-readset' ]]
359 JAVAOPTS="$JAVAOPTS -readset"
360 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
361 elif [[ $1 = '-stmdebug' ]]
363 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
364 elif [[ $1 = '-stmstats' ]]
366 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
367 elif [[ $1 = '-stmlog' ]]
369 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
370 elif [[ $1 = '-prefetch' ]]
372 JAVAOPTS="$JAVAOPTS -prefetch"
373 elif [[ $1 = '-transstats' ]]
375 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
376 elif [[ $1 = '-printflat' ]]
378 JAVAOPTS="$JAVAOPTS -printflat"
379 elif [[ $1 = '-trueprob' ]]
381 JAVAOPTS="$JAVAOPTS -trueprob $2"
383 elif [[ $1 = '-inlineatomic' ]]
385 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
387 elif [[ $1 = '-mac' ]]
389 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
390 elif [[ $1 = '-squeue' ]]
392 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
393 elif [[ $1 = '-corepin' ]]
395 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
397 elif [[ $1 = '-profile' ]]
400 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
401 elif [[ $1 = '-gcprofile' ]]
404 elif [[ $1 = '-gcprofile_s' ]]
407 elif [[ $1 = '-accurateprofile' ]]
409 ACCURATEPROFILEFLAG=true
410 elif [[ $1 = '-profile_interrupt' ]]
412 PROFILEINTERRUPTFLAG=true
413 elif [[ $1 = '-useio' ]]
416 elif [[ $1 = '-taskstate' ]]
418 JAVAOPTS="$JAVAOPTS -taskstate"
419 elif [[ $1 = '-tagstate' ]]
421 JAVAOPTS="$JAVAOPTS -tagstate"
422 elif [[ $1 = '-scheduling' ]]
424 JAVAOPTS="$JAVAOPTS -scheduling"
425 elif [[ $1 = '-multicore' ]]
428 JAVAOPTS="$JAVAOPTS -multicore"
429 elif [[ $1 = '-numcore' ]]
431 JAVAOPTS="$JAVAOPTS -numcore $2"
433 if [[ "$2" -gt "1" ]]
435 TILERAN1COREFLAG=true
436 if [[ "$2" -eq "56" ]]
438 TILERA56COREFLAG=true
442 elif [[ $1 = '-numcore4gc' ]]
444 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
447 elif [[ $1 = '-raw' ]]
450 JAVAOPTS="$JAVAOPTS -raw"
451 elif [[ $1 = '-tilera_bme' ]]
455 elif [[ $1 = '-tilera_zlinux' ]]
458 TILERAZLINUXFLAG=true
459 elif [[ $1 = '-tilera_memprof' ]]
461 TILERAMEMPROFFLAG=true
462 elif [[ $1 = '-tileraconfig' ]]
466 elif [[ $1 = '-cacheflush' ]]
469 elif [[ $1 = '-rawconfig' ]]
473 elif [[ $1 = '-interrupt' ]]
476 elif [[ $1 = '-abcclose' ]]
478 JAVAOPTS="$JAVAOPTS -abcclose"
479 elif [[ $1 = '-optional' ]]
481 JAVAOPTS="$JAVAOPTS -optional"
483 elif [[ $1 = '-multicoregc' ]]
486 JAVAOPTS="$JAVAOPTS -multicoregc"
487 elif [[ $1 = '-gcmem_local' ]]
490 elif [[ $1 = '-gcmem_fixed' ]]
493 elif [[ $1 = '-gcmem_mixed' ]]
496 elif [[ $1 = '-gcmem_global' ]]
499 elif [[ $1 = '-gccache_local' ]]
501 GCCACHELOCALFLAG=true
502 elif [[ $1 = '-gccache_ran' ]]
505 elif [[ $1 = '-gccontroller_near' ]]
507 GCCONTROLLERNEARFLAG=true
508 elif [[ $1 = '-gccontroller_remote' ]]
510 GCCONTROLLERREMOTEFLAG=true
511 elif [[ $1 = '-gcsmallpagesize' ]]
513 GCSMALLPAGESIZEFLAG=true
514 elif [[ $1 = '-gcsmallpagesize2' ]]
516 GCSMALLPAGESIZEFLAG2=true
517 elif [[ $1 = '-gclargepagesize' ]]
519 GCLARGEPAGESIZEFLAG=true
520 elif [[ $1 = '-gclargepagesize2' ]]
522 GCLARGEPAGESIZE2FLAG=true
523 elif [[ $1 = '-gclargesharedheap' ]]
525 GCLARGESHAREDHEAPFLAG=true
526 elif [[ $1 = '-gclargesharedheap2' ]]
528 GCLARGESHAREDHEAPFLAG2=true
529 elif [[ $1 = '-gccacheadapt' ]]
531 GCCACHEADAPTFLAG=true
532 elif [[ $1 = '-gccacheadaptpolicy' ]]
534 GCCACHEADAPTPOLICYFLAG=true
535 GCCACHEADAPTPOLICY="$2"
537 elif [[ $1 = '-gccachesampling' ]]
539 GCCACHESAMPLINGFLAG=true
540 elif [[ $1 = '-mgc' ]]
543 JAVAOPTS="$JAVAOPTS -mgc"
544 elif [[ $1 = '-mgcintel' ]]
547 elif [[ $1 = '-objectlockdebug' ]]
549 OBJECTLOCKDEBUGFLAG=true
550 JAVAOPTS="$JAVAOPTS -objectlockdebug"
551 elif [[ $1 = '-gctbldebug' ]]
554 elif [[ $1 = '-dmalloc' ]]
557 elif [[ $1 = '-recover' ]]
560 JAVAOPTS="$JAVAOPTS -task"
561 elif [[ $1 = '-useprofile' ]]
563 JAVAOPTS="$JAVAOPTS -useprofile $2"
565 elif [[ $1 = '-webinterface' ]]
567 JAVAOPTS="$JAVAOPTS -webinterface"
568 elif [[ $1 = '-instructionfailures' ]]
570 JAVAOPTS="$JAVAOPTS -instructionfailures"
571 elif [[ $1 = '-joptimize' ]]
573 JAVAOPTS="$JAVAOPTS -optimize"
574 elif [[ $1 = '-noloop' ]]
576 JAVAOPTS="$JAVAOPTS -noloop"
577 elif [[ $1 = '-dcopts' ]]
579 JAVAOPTS="$JAVAOPTS -dcopts"
580 elif [[ $1 = '-delaycomp' ]]
582 JAVAOPTS="$JAVAOPTS -delaycomp"
583 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
584 elif [[ $1 = '-hybrid' ]]
586 JAVAOPTS="$JAVAOPTS -hybrid"
587 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
588 elif [[ $1 = '-minimize' ]]
590 JAVAOPTS="$JAVAOPTS -minimize"
592 elif [[ $1 = '-ooojava' ]]
595 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
596 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
600 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
602 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
604 elif [[ $1 = '-mempool-detect-misuse' ]]
606 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
608 elif [[ $1 = '-heapsize-mb' ]]
610 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
613 elif [[ $1 = '-nostalltr' ]]
615 JAVAOPTS="$JAVAOPTS -nostalltr"
617 elif [[ $1 = '-printlinenum' ]]
619 JAVAOPTS="$JAVAOPTS -printlinenum"
621 elif [[ $1 = '-rcr' ]]
623 JAVAOPTS="$JAVAOPTS -rcr"
625 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
627 elif [[ $1 = '-rcr_debug' ]]
629 JAVAOPTS="$JAVAOPTS -rcr_debug"
632 elif [[ $1 = '-rcr_debug_verbose' ]]
634 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
635 RCR_DEBUG_VERBOSE=true
637 elif [[ $1 = '-debug-deque' ]]
639 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
641 elif [[ $1 = '-nolock' ]]
643 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
645 elif [[ $1 = '-coreprof' ]]
648 JAVAOPTS="$JAVAOPTS -coreprof"
649 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
651 elif [[ $1 = '-coreprof-eventwords' ]]
653 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
656 elif [[ $1 = '-coreprof-checkoverflow' ]]
658 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
660 elif [[ $1 = '-coreprof-enable' ]]
662 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
665 elif [[ $1 = '-mlp' ]]
668 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
669 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
673 elif [[ $1 = '-mlpdebug' ]]
675 JAVAOPTS="$JAVAOPTS -mlpdebug"
677 elif [[ $1 = '-check' ]]
680 JAVAOPTS="$JAVAOPTS -conscheck"
681 elif [[ $1 = '-enable-assertions' ]]
683 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
684 elif [[ $1 = '-specdir' ]]
690 elif [[ $1 = '-debug' ]]
693 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
694 elif [[ $1 = '-rawpath' ]]
697 elif [[ $1 = '-runtimedebug' ]]
699 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
700 elif [[ $1 = '-dsmcaching' ]]
702 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
703 elif [[ $1 = '-rangeprefetch' ]]
705 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
706 elif [[ $1 = '-nooptimize' ]]
708 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
709 elif [[ $1 = '-optimize' ]]
711 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
712 elif [[ $1 = '-thread' ]]
714 JAVAOPTS="$JAVAOPTS -thread"
715 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
717 elif [[ $1 = '-recovery' ]]
719 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
721 elif [[ $1 = '-recoverystats' ]]
723 JAVAOPTS="$JAVAOPTS -recoverystats"
724 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
725 elif [[ $1 = '-distributioninfo' ]]
727 JAVAOPTS="$JAVAOPTS -distributioninfo"
728 elif [[ $1 = '-disall' ]]
730 JAVAOPTS="$JAVAOPTS -disall"
731 elif [[ $1 = '-disstart' ]]
733 JAVAOPTS="$JAVAOPTS -disstart $2"
735 elif [[ $1 = '-noc' ]]
738 elif [[ $1 = '-curdir' ]]
742 elif [[ $1 = '-outputdir' ]]
744 JAVAOPTS="$JAVAOPTS -outputdir $2"
747 SRCFILES="$SRCFILES $1"
752 BUILDDIR="$CURDIR/$tmpbuilddirectory"
754 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
762 if $CHECKFLAG #Generate structure files for repair tool
764 JAVAOPTS="$JAVAOPTS -struct structfile"
770 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/java/lang/ -classlibrary $ROBUSTROOT/ClassLibrary/java/io/"
773 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
776 #base multicore gc files
777 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
783 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
785 #base bristlecone files
786 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
791 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
794 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
797 #threading java stuff
798 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
801 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
804 # Build bristlecone/java sources
808 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
809 -dir $BUILDDIR $JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ \
810 -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ $SRCFILES
814 #if ! ${ROBUSTROOT}/ourjava -Xms5m -Xmx100m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
817 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS -classlibrary \
818 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
825 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
826 $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/ -dir $BUILDDIR -precise \
834 if $EXITAFTERANALYSIS
839 # Build all of the consistency specs
841 if $CHECKFLAG # CHECKFLAG
844 mkdir $BUILDDIR/specdir
845 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
847 echo > $BUILDDIR/specs
849 # compile specs into C code
850 for i in * # iterate over all directories
852 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
855 cat $BUILDDIR/structfile.struct $i.label > $i.struct
856 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
857 cp size.[c,h] $BUILDDIR/specdir
858 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
859 echo $i >> $BUILDDIR/specs
861 done # iterate over all directories
867 echo > $BUILDDIR/checkers.h
868 for i in `cat $BUILDDIR/specs`
870 gcc -O0 -g -fbounds-check -c $i\_aux.c
871 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
875 #build and link everything
880 MAKEFILE="Makefile.raw"
886 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
890 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DCACHEFLUSH"
895 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
900 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
904 then # profile version
905 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
908 if $ACCURATEPROFILEFLAG
909 then # accurateprofile version
910 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
915 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
919 then #INTERRUPT version
920 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
921 fi #INTERRUPT version
925 MAKEFILE="$MAKEFILE.io"
926 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
928 MAKEFILE="$MAKEFILE.$RAWCONFIG"
931 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
936 cp $BAMBOORUNTIME/*.c ./
937 cp $BAMBOORUNTIME/*.h ./
938 cp $BAMBOORUNTIME/RAW/*.c ./
939 cp $BAMBOORUNTIME/RAW/*.h ./
940 cp $BAMBOORUNTIME/RAW/*.S ./
941 cp $BAMBOORUNTIME/RAW/*.s ./
942 cp ../$tmpbuilddirectory/*.c ./
943 cp ../$tmpbuilddirectory/*.h ./
949 TILERADIR="$CURDIR/tilera"
953 MAKEFILE="Makefile.tilera.$TILERACORES"
954 #SIMHVC="sim.hvc.$TILERACONFIG"
955 PCIHVC="pci.hvc.$TILERACORES"
960 elif $TILERAZLINUXFLAG
961 then # TILERAZLINUXFLAG
962 TILERA_INDIR="ZLinux"
963 MAKEFILE="Makefile.tilera.$TILERACONFIG"
973 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
975 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
980 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
983 if $OBJECTLOCKDEBUGFLAG
985 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
988 if $TILERAMEMPROFFLAG
989 then # not only with 1 core
990 PCIHVC="$PCIHVC.memprof"
991 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
996 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
997 elif $TILERAZLINUXFLAG
998 then # TILERAZLINUXFLAG
999 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1004 TILERACFLAGS="${TILERACFLAGS} -DCACHEFLUSH"
1009 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1014 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1018 then # profile version
1019 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1022 if $ACCURATEPROFILEFLAG
1023 then # accurateprofile version
1024 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1027 if $PROFILEINTERRUPTFLAG
1028 then # profile_interrupt version
1029 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1033 then # useio version
1034 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1038 then #INTERRUPT version
1039 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1040 fi #INTERRUPT version
1044 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1048 then #MULTICOREGC version
1049 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1053 then # GC_PROFILE version
1054 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1058 then # GC_PROFILE_S version
1059 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1063 then # SMEMLOCAL version
1064 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1068 then # SMEMFIXED version
1069 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1073 then # SMEMMIXED version
1074 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1078 then # SMEMGLOBAL version
1079 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1082 if $GCCACHELOCALFLAG
1083 then # CACHE_LOCAL version
1084 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1088 then # CACHE_RAN version
1089 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1092 if $GCCONTROLLERNEARFLAG
1093 then # CONTROLLER_NEAR version
1094 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1097 if $GCCONTROLLERREMOTEFLAG
1098 then # CONTROLLER_REMOTE version
1099 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1102 if $GCSMALLPAGESIZEFLAG
1103 then # GC_SMALLPAGESIZE version
1104 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1107 if $GCLARGEPAGESIZEFLAG
1108 then # GC_LARGEPAGESIZE version
1109 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1112 if $GCLARGEPAGESIZE2FLAG
1113 then # GC_LARGEPAGESIZE2 version
1114 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1117 if $GCLARGESHAREDHEAPFLAG
1118 then # GC_LARGESHAREDHEAP version
1119 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1122 if $GCSMALLPAGESIZEFLAG2
1123 then # GC_SMALLPAGESIZE2 version
1124 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1127 if $GCLARGESHAREDHEAPFLAG2
1128 then # GC_LARGESHAREDHEAP2 version
1129 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1132 if $GCCACHEADAPTFLAG
1133 then # GC_CACHE_ADAPT version
1134 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1137 if $GCCACHEADAPTPOLICYFLAG
1138 then # GC_CACHE_ADAPT version
1139 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1142 if $GCCACHESAMPLINGFLAG
1143 then # GC_CACHE_ADAPT version
1144 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1149 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1151 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1154 then # TILERABMEFLAG
1155 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1156 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1157 if $TILERA56COREFLAG
1159 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1161 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1164 cp ../Runtime/Queue.c ./
1165 cp ../Runtime/file.c ./
1166 cp ../Runtime/math.c ./
1169 cp ../Runtime/object.c ./
1171 cp ../Runtime/GenericHashtable.c ./
1172 cp ../Runtime/SimpleHash.c ./
1173 cp ../Runtime/ObjectHash.c ./
1174 cp ../Runtime/socket.c ./
1175 cp ../Runtime/mem.c ./
1176 cp ../Runtime/GenericHashtable.h ./
1177 cp ../Runtime/mem.h ./
1180 cp ../Runtime/object.h ./
1182 cp ../Runtime/ObjectHash.h ./
1183 cp ../Runtime/Queue.h ./
1184 cp ../Runtime/runtime.h ./
1185 cp ../Runtime/SimpleHash.h ./
1186 cp $BAMBOORUNTIME/multicoretask.c ./
1187 cp $BAMBOORUNTIME/multicoreruntime.c ./
1188 cp $BAMBOORUNTIME/multicoremem.c ./
1189 cp $BAMBOORUNTIME/multicoregarbage.c ./
1190 cp $BAMBOORUNTIME/GCSharedHash.c ./
1191 cp $BAMBOORUNTIME/MGCHash.c ./
1192 cp $BAMBOORUNTIME/multicoreruntime.h ./
1193 cp $BAMBOORUNTIME/multicoremem.h ./
1194 cp $BAMBOORUNTIME/multicoregarbage.h ./
1195 cp $BAMBOORUNTIME/multicorecache.h ./
1196 cp $BAMBOORUNTIME/multicoregc.h ./
1197 cp $BAMBOORUNTIME/multicorehelper.h ./
1198 cp $BAMBOORUNTIME/GCSharedHash.h ./
1199 cp $BAMBOORUNTIME/MGCHash.h ./
1200 cp ../Tilera/Runtime/*.c ./
1201 cp ../Tilera/Runtime/*.h ./
1202 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1203 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1204 if $TILERAZLINUXFLAG
1205 then # TILERAZLINUXFLAG
1206 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1208 #if $TILERAMEMPROFFLAG
1209 #then # TILERAMEMPROFFLAG
1210 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1214 cp ../Tilera/Runtime/MGC/*.c ./
1215 cp ../Tilera/Runtime/MGC/*.h ./
1217 cp ../Tilera/lib/* ./
1218 cp ../$tmpbuilddirectory/*.c ./
1219 cp ../$tmpbuilddirectory/*.h ./
1223 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1226 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1231 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1232 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1234 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1237 FILES="$RUNTIMEFILE \
1238 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1239 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1240 $ROBUSTROOT/Runtime/ObjectHash.c \
1241 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1242 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1243 $ROBUSTROOT/Runtime/math.c \
1244 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1248 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1253 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1258 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1263 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1270 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1271 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"
1273 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1274 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"
1280 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1281 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1288 FILES="$FILES $DSMRUNTIME/sandbox.c"
1290 FILES="$FILES $STMRUNTIME/sandbox.c"
1296 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1301 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1306 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1311 FILES="$FILES $tmpbuilddirectory/RuntimeConflictResolver.c $ROBUSTROOT/Runtime/oooJava/hashRCR.c $ROBUSTROOT/Runtime/oooJava/Queue_RCR.c $ROBUSTROOT/Runtime/oooJava/hashStructure.c $ROBUSTROOT/Runtime/oooJava/trqueue.c $ROBUSTROOT/Runtime/oooJava/rcr_runtime.c"
1316 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1317 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1318 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1321 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1327 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1330 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1332 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1335 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1337 if $THREADSIMULATEFLAG
1339 # -lpthread for pthread functions, -lrt for message queue functions
1340 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1346 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1347 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1352 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1357 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1358 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1363 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1367 echo EXTRAOPTIONS=$EXTRAOPTIONS
1371 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1372 -c $tmpbuilddirectory/methods.c -lm
1379 NONMULTICOREOPTS=-DPRECISE_GC
1384 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1385 $tmpbuilddirectory/methods.c $FILES > tmp.c
1388 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1389 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin