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 -pointsto-check-v-runtime check allocation site of pointer targets at runtime to help verify heap analysis results
56 echo "-mlp <num cores> <max sese age> build mlp code"
57 echo -mlpdebug if mlp, report progress and interim results
60 echo -dsm distributed shared memory
61 echo -abortreaders abort readers immediately
62 echo -trueprob double - probabiltiy of true branch
63 echo -dsmcaching -enable caching in dsm runtime
65 echo BAMBOO Multicore options
66 echo -scheduling do task scheduling
67 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
68 echo "-disall execute to collect whole distribution"
69 echo "-disstart specify the start number of distribution information collection"
70 echo -multicore generate multi-core version binary
71 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
72 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
73 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
74 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
75 echo -printscheduling print out scheduling graphs
76 echo -printschedulesim print out scheduling simulator result graphs
77 echo "-tilera_bme generate tilera version binary for Bare Mental Environment (should be used together with -multicore"
78 echo "-tilera_zlinux generate tilera version binary for Zero-Overhead Linux with multi-process mode (should be used together with -multicore"
79 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
80 echo "-raw generate raw version binary (should be used together with -multicore)"
81 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
82 echo "-tilera_memprof build the memprof version (should be used together with -tilera_xx) "
83 echo -accurateprofile build with accurate profile information including pre/post task processing info
84 echo -profile_interrupt build with profile information of interrupts
85 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
87 echo Multicore GC options
88 echo -multicoregc generate multi-core binary with garbage collection
89 echo -pmc parallel collector
90 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
91 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
92 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
93 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
94 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
95 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
96 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
97 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
98 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
99 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
100 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
101 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
102 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
103 echo -gcprofile build with gcprofile options
104 echo -mgc generate Multicore GC binary without task stuff
105 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
106 echo -gctbldebug generate GC_TBL_DEBUG code
109 echo -ssjava enables SSJava
110 echo -ssjavadebug reports interim results
114 echo -abcclose turnoff array boundary checks
115 echo -builddir setup different build directory
116 echo -robustroot set up the ROBUSTROOT to directory other than default one
117 echo -readset turn on readset
118 echo -mac distributed shared memory mac support
119 echo -check generate check code
120 echo -dmalloc link in dmalloc
121 echo -64bit compile for 64 bit machine
122 echo -32bit compile for 32 bit machine
123 echo -joptimize java compiler optimizations
124 echo -noloop turnoff loop optimizations
125 echo -recover compile task code
126 echo -fastcheck fast checkpointing for Bristlecone
127 echo -specdir directory
128 echo -printflat print out flat representation
129 echo -selfloop task - this task cannot self loop forever
130 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
131 echo -taskstate do task state analysis
132 echo -tagstate do tag state analysis
133 echo -optional enable optional
134 echo -debug generate debug symbols
135 echo -prefetch do prefetch analysis
136 echo -heapsize-mb NUM set initial heap size in MB, default is 256
137 echo -garbagestats Print garbage collection statistics
138 echo -webinterface enable web interface
139 echo -runtimedebug printout runtime debug messages
140 echo "-thread use support for multiple threads"
141 echo "-optimize call gcc with -O9 (optimize)"
142 echo "-nooptimize call gcc with -O0 (do not optimize)"
143 echo -curdir directory
144 echo -mainclass class with main method
146 echo -nojava do not run bristlecone compiler
147 echo -instructionfailures inject code for instructionfailures
148 echo -profile build with profile options
149 echo "-enable-assertions execute assert statements during compilation"
150 echo -justanalyze exit after compiler analyses complete
151 echo -assembly generate assembly
152 echo -recovery compile recovery code
153 echo -dsmtask support work and task class library
154 echo -recoverystats print out recovery record
155 echo -src-after-pp prints source code after preprocessor to tmp.c
156 echo -capture-null-dereferences generates code to warn before derefencing null
157 echo -printlinenum print out line numbers in generated C codes
161 tmpbuilddirectory="tmpbuilddirectory"
169 ROBUSTROOT=~/research/Robust/src
170 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
171 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
172 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
173 REPAIRROOT=~/research/Repair/RepairCompiler/
189 RCR_DEBUG_VERBOSE=false
195 TILERAZLINUXFLAG=false
196 TILERAMEMPROFFLAG=false
205 ACCURATEPROFILEFLAG=false
206 PROFILEINTERRUPTFLAG=false
209 THREADSIMULATEFLAG=false;
210 MULTICOREGCFLAG=false;
212 GCMEMLOCALFLAG=false;
213 GCMEMFIXEDFLAG=false;
214 GCMEMMIXEDFLAG=false;
215 GCMEMGLOBALFLAG=false;
216 GCCACHELOCALFLAG=false;
217 GCCACHERANFLAG=false;
218 GCCONTROLLERNEARFLAG=false;
219 GCCONTROLLERREMOTEFLAG=false;
220 GCSMALLPAGESIZEFLAG=false;
221 GCLARGEPAGESIZEFLAG=false;
222 GCLARGEPAGESIZE2FLAG=false;
223 GCLARGESHAREDHEAPFLAG=false;
224 GCSMALLPAGESIZEFLAG2=false;
225 GCLARGESHAREDHEAPFLAG2=false;
226 GCCACHEADAPTFLAG=false
227 GCCACHEADAPTPOLICYFLAG=false
228 GCCACHEADAPTPOLICY=''
229 GCCACHESAMPLINGFLAG=false
232 OBJECTLOCKDEBUGFLAG=false
244 EXITAFTERANALYSIS=false
247 TILERAN1COREFLAG=false
248 TILERA56COREFLAG=false
258 if [[ $1 = '-help' ]]
262 elif [[ $1 = '-jni' ]]
265 JAVAOPTS="$JAVAOPTS -jni"
266 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
267 elif [[ $1 = '-justanalyze' ]]
269 EXITAFTERANALYSIS=true
270 elif [[ $1 = '-capture-null-dereferences' ]]
272 JAVAOPTS="$JAVAOPTS -capture-null-dereferences"
273 EXTRAOPTIONS="$EXTRAOPTIONS -DCAPTURE_NULL_DEREFERENCES"
274 elif [[ $1 = '-src-after-pp' ]]
277 elif [[ $1 = '-assembly' ]]
280 elif [[ $1 = '-abortreaders' ]]
283 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
284 JAVAOPTS="$JAVAOPTS -abortreaders"
285 elif [[ $1 = '-sandbox' ]]
288 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
289 JAVAOPTS="$JAVAOPTS -sandbox"
290 elif [[ $1 = '-numa' ]]
292 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
294 elif [[ $1 = '-robustroot' ]]
298 elif [[ $1 = '-builddir' ]]
300 tmpbuilddirectory="$2"
302 elif [[ $1 = '-nojava' ]]
305 elif [[ $1 = '-eventmonitor' ]]
307 JAVAOPTS="$JAVAOPTS -eventmonitor"
309 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
310 elif [[ $1 = '-garbagestats' ]]
312 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
313 elif [[ $1 = '-64bit' ]]
315 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
316 elif [[ $1 = '-32bit' ]]
318 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
319 elif [[ $1 = '-fastcheck' ]]
321 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
322 JAVAOPTS="$JAVAOPTS -fastcheck"
328 elif [[ $1 = '-mainclass' ]]
330 JAVAOPTS="$JAVAOPTS -mainclass $2"
332 elif [[ $1 = '-selfloop' ]]
334 JAVAOPTS="$JAVAOPTS -selfloop $2"
336 elif [[ $1 = '-excprefetch' ]]
338 JAVAOPTS="$JAVAOPTS -excprefetch $2"
340 elif [[ $1 = '-arraypad' ]]
342 JAVAOPTS="$JAVAOPTS -arraypad"
343 elif [[ $1 = '-dsm' ]]
345 JAVAOPTS="$JAVAOPTS -dsm"
347 elif [[ $1 = '-fastmemcpy' ]]
350 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
351 elif [[ $1 = '-singleTM' ]]
353 JAVAOPTS="$JAVAOPTS -singleTM"
354 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
356 elif [[ $1 = '-stmarray' ]]
358 JAVAOPTS="$JAVAOPTS -stmarray"
359 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
361 elif [[ $1 = '-dualview' ]]
363 JAVAOPTS="$JAVAOPTS -dualview"
364 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
366 elif [[ $1 = '-readset' ]]
368 JAVAOPTS="$JAVAOPTS -readset"
369 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
370 elif [[ $1 = '-stmdebug' ]]
372 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
373 elif [[ $1 = '-stmstats' ]]
375 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
376 elif [[ $1 = '-stmlog' ]]
378 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
379 elif [[ $1 = '-prefetch' ]]
381 JAVAOPTS="$JAVAOPTS -prefetch"
382 elif [[ $1 = '-transstats' ]]
384 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
385 elif [[ $1 = '-printflat' ]]
387 JAVAOPTS="$JAVAOPTS -printflat"
388 elif [[ $1 = '-trueprob' ]]
390 JAVAOPTS="$JAVAOPTS -trueprob $2"
392 elif [[ $1 = '-inlineatomic' ]]
394 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
396 elif [[ $1 = '-mac' ]]
398 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
399 elif [[ $1 = '-squeue' ]]
401 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
402 elif [[ $1 = '-corepin' ]]
404 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
406 elif [[ $1 = '-profile' ]]
409 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
410 elif [[ $1 = '-gcprofile' ]]
413 elif [[ $1 = '-gcprofile_s' ]]
416 elif [[ $1 = '-accurateprofile' ]]
418 ACCURATEPROFILEFLAG=true
419 elif [[ $1 = '-profile_interrupt' ]]
421 PROFILEINTERRUPTFLAG=true
422 elif [[ $1 = '-useio' ]]
425 elif [[ $1 = '-taskstate' ]]
427 JAVAOPTS="$JAVAOPTS -taskstate"
428 elif [[ $1 = '-tagstate' ]]
430 JAVAOPTS="$JAVAOPTS -tagstate"
431 elif [[ $1 = '-scheduling' ]]
433 JAVAOPTS="$JAVAOPTS -scheduling"
434 elif [[ $1 = '-multicore' ]]
437 JAVAOPTS="$JAVAOPTS -multicore"
438 elif [[ $1 = '-numcore' ]]
440 JAVAOPTS="$JAVAOPTS -numcore $2"
442 if [[ "$2" -gt "1" ]]
444 TILERAN1COREFLAG=true
445 if [[ "$2" -eq "56" ]]
447 TILERA56COREFLAG=true
451 elif [[ $1 = '-numcore4gc' ]]
453 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
456 elif [[ $1 = '-raw' ]]
459 JAVAOPTS="$JAVAOPTS -raw"
460 elif [[ $1 = '-tilera_bme' ]]
464 elif [[ $1 = '-tilera_zlinux' ]]
467 TILERAZLINUXFLAG=true
468 elif [[ $1 = '-tilera_memprof' ]]
470 TILERAMEMPROFFLAG=true
471 elif [[ $1 = '-tileraconfig' ]]
475 elif [[ $1 = '-rawconfig' ]]
479 elif [[ $1 = '-interrupt' ]]
482 elif [[ $1 = '-abcclose' ]]
484 JAVAOPTS="$JAVAOPTS -abcclose"
485 elif [[ $1 = '-optional' ]]
487 JAVAOPTS="$JAVAOPTS -optional"
489 elif [[ $1 = '-multicoregc' ]]
492 JAVAOPTS="$JAVAOPTS -multicoregc"
493 elif [[ $1 = '-pmc' ]]
496 JAVAOPTS="$JAVAOPTS -pmc"
497 elif [[ $1 = '-gcmem_local' ]]
500 elif [[ $1 = '-gcmem_fixed' ]]
503 elif [[ $1 = '-gcmem_mixed' ]]
506 elif [[ $1 = '-gcmem_global' ]]
509 elif [[ $1 = '-gccache_local' ]]
511 GCCACHELOCALFLAG=true
512 elif [[ $1 = '-gccache_ran' ]]
515 elif [[ $1 = '-gccontroller_near' ]]
517 GCCONTROLLERNEARFLAG=true
518 elif [[ $1 = '-gccontroller_remote' ]]
520 GCCONTROLLERREMOTEFLAG=true
521 elif [[ $1 = '-gcsmallpagesize' ]]
523 GCSMALLPAGESIZEFLAG=true
524 elif [[ $1 = '-gcsmallpagesize2' ]]
526 GCSMALLPAGESIZEFLAG2=true
527 elif [[ $1 = '-gclargepagesize' ]]
529 GCLARGEPAGESIZEFLAG=true
530 elif [[ $1 = '-gclargepagesize2' ]]
532 GCLARGEPAGESIZE2FLAG=true
533 elif [[ $1 = '-gclargesharedheap' ]]
535 GCLARGESHAREDHEAPFLAG=true
536 elif [[ $1 = '-gclargesharedheap2' ]]
538 GCLARGESHAREDHEAPFLAG2=true
539 elif [[ $1 = '-gccacheadapt' ]]
541 GCCACHEADAPTFLAG=true
542 elif [[ $1 = '-gccacheadaptpolicy' ]]
544 GCCACHEADAPTPOLICYFLAG=true
545 GCCACHEADAPTPOLICY="$2"
547 elif [[ $1 = '-gccachesampling' ]]
549 GCCACHESAMPLINGFLAG=true
550 elif [[ $1 = '-mgc' ]]
553 JAVAOPTS="$JAVAOPTS -mgc"
554 elif [[ $1 = '-mgcintel' ]]
557 elif [[ $1 = '-objectlockdebug' ]]
559 OBJECTLOCKDEBUGFLAG=true
560 JAVAOPTS="$JAVAOPTS -objectlockdebug"
561 elif [[ $1 = '-gctbldebug' ]]
564 elif [[ $1 = '-dmalloc' ]]
567 elif [[ $1 = '-recover' ]]
570 JAVAOPTS="$JAVAOPTS -task"
571 elif [[ $1 = '-useprofile' ]]
573 JAVAOPTS="$JAVAOPTS -useprofile $2"
575 elif [[ $1 = '-webinterface' ]]
577 JAVAOPTS="$JAVAOPTS -webinterface"
578 elif [[ $1 = '-instructionfailures' ]]
580 JAVAOPTS="$JAVAOPTS -instructionfailures"
581 elif [[ $1 = '-joptimize' ]]
583 JAVAOPTS="$JAVAOPTS -optimize"
584 elif [[ $1 = '-noloop' ]]
586 JAVAOPTS="$JAVAOPTS -noloop"
587 elif [[ $1 = '-dcopts' ]]
589 JAVAOPTS="$JAVAOPTS -dcopts"
590 elif [[ $1 = '-delaycomp' ]]
592 JAVAOPTS="$JAVAOPTS -delaycomp"
593 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
594 elif [[ $1 = '-hybrid' ]]
596 JAVAOPTS="$JAVAOPTS -hybrid"
597 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
598 elif [[ $1 = '-minimize' ]]
600 JAVAOPTS="$JAVAOPTS -minimize"
602 elif [[ $1 = '-ooojava' ]]
605 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
606 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
610 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
612 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
614 elif [[ $1 = '-ssjava' ]]
617 JAVAOPTS="$JAVAOPTS -ssjava"
619 elif [[ $1 = '-ssjavadebug' ]]
621 JAVAOPTS="$JAVAOPTS -ssjavadebug"
623 elif [[ $1 = '-mempool-detect-misuse' ]]
625 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
627 elif [[ $1 = '-heapsize-mb' ]]
629 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
632 elif [[ $1 = '-nostalltr' ]]
634 JAVAOPTS="$JAVAOPTS -nostalltr"
636 elif [[ $1 = '-printlinenum' ]]
638 JAVAOPTS="$JAVAOPTS -printlinenum"
640 elif [[ $1 = '-rcr' ]]
642 JAVAOPTS="$JAVAOPTS -rcr"
644 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
646 elif [[ $1 = '-rcr_debug' ]]
648 JAVAOPTS="$JAVAOPTS -rcr_debug"
651 elif [[ $1 = '-rcr_debug_verbose' ]]
653 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
654 RCR_DEBUG_VERBOSE=true
656 elif [[ $1 = '-debug-deque' ]]
658 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
660 elif [[ $1 = '-nolock' ]]
662 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
664 elif [[ $1 = '-coreprof' ]]
667 JAVAOPTS="$JAVAOPTS -coreprof"
668 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
670 elif [[ $1 = '-coreprof-eventwords' ]]
672 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
675 elif [[ $1 = '-coreprof-checkoverflow' ]]
677 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
679 elif [[ $1 = '-coreprof-enable' ]]
681 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
684 elif [[ $1 = '-mlp' ]]
687 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
688 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
692 elif [[ $1 = '-mlpdebug' ]]
694 JAVAOPTS="$JAVAOPTS -mlpdebug"
696 elif [[ $1 = '-check' ]]
699 JAVAOPTS="$JAVAOPTS -conscheck"
700 elif [[ $1 = '-enable-assertions' ]]
702 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
703 elif [[ $1 = '-specdir' ]]
709 elif [[ $1 = '-debug' ]]
712 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
713 elif [[ $1 = '-rawpath' ]]
716 elif [[ $1 = '-runtimedebug' ]]
718 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
719 elif [[ $1 = '-dsmcaching' ]]
721 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
722 elif [[ $1 = '-rangeprefetch' ]]
724 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
725 elif [[ $1 = '-nooptimize' ]]
727 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
728 elif [[ $1 = '-optimize' ]]
730 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
731 elif [[ $1 = '-thread' ]]
733 JAVAOPTS="$JAVAOPTS -thread"
734 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
736 elif [[ $1 = '-recovery' ]]
738 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
740 elif [[ $1 = '-recoverystats' ]]
742 JAVAOPTS="$JAVAOPTS -recoverystats"
743 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
744 elif [[ $1 = '-distributioninfo' ]]
746 JAVAOPTS="$JAVAOPTS -distributioninfo"
747 elif [[ $1 = '-disall' ]]
749 JAVAOPTS="$JAVAOPTS -disall"
750 elif [[ $1 = '-disstart' ]]
752 JAVAOPTS="$JAVAOPTS -disstart $2"
754 elif [[ $1 = '-noc' ]]
757 elif [[ $1 = '-curdir' ]]
761 elif [[ $1 = '-outputdir' ]]
763 JAVAOPTS="$JAVAOPTS -outputdir $2"
766 SRCFILES="$SRCFILES $1"
771 BUILDDIR="$CURDIR/$tmpbuilddirectory"
773 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
781 if $CHECKFLAG #Generate structure files for repair tool
783 JAVAOPTS="$JAVAOPTS -struct structfile"
788 #########################
790 #########################
793 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference"
797 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
801 #base multicore gc files
802 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
806 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJava"
814 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
816 #base bristlecone files
817 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
823 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
827 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
831 #threading java stuff
832 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
836 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
840 # everyone gets this except ssjava!
843 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
845 #########################
847 #########################
851 # Build bristlecone/java sources
855 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
856 -dir $BUILDDIR $JAVAOPTS $SRCFILES
864 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
865 -dir $BUILDDIR -precise $SRCFILES
872 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
873 -dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
880 if $EXITAFTERANALYSIS
885 # Build all of the consistency specs
887 if $CHECKFLAG # CHECKFLAG
890 mkdir $BUILDDIR/specdir
891 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
893 echo > $BUILDDIR/specs
895 # compile specs into C code
896 for i in * # iterate over all directories
898 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
901 cat $BUILDDIR/structfile.struct $i.label > $i.struct
902 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
903 cp size.[c,h] $BUILDDIR/specdir
904 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
905 echo $i >> $BUILDDIR/specs
907 done # iterate over all directories
913 echo > $BUILDDIR/checkers.h
914 for i in `cat $BUILDDIR/specs`
916 gcc -O0 -g -fbounds-check -c $i\_aux.c
917 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
921 #build and link everything
926 MAKEFILE="Makefile.raw"
932 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
936 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
941 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
945 then # profile version
946 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
949 if $ACCURATEPROFILEFLAG
950 then # accurateprofile version
951 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
956 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
960 then #INTERRUPT version
961 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
962 fi #INTERRUPT version
966 MAKEFILE="$MAKEFILE.io"
967 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
969 MAKEFILE="$MAKEFILE.$RAWCONFIG"
972 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
977 cp $BAMBOORUNTIME/*.c ./
978 cp $BAMBOORUNTIME/*.h ./
979 cp $BAMBOORUNTIME/RAW/*.c ./
980 cp $BAMBOORUNTIME/RAW/*.h ./
981 cp $BAMBOORUNTIME/RAW/*.S ./
982 cp $BAMBOORUNTIME/RAW/*.s ./
983 cp ../$tmpbuilddirectory/*.c ./
984 cp ../$tmpbuilddirectory/*.h ./
990 TILERADIR="$CURDIR/tilera"
994 MAKEFILE="Makefile.tilera.$TILERACORES"
995 #SIMHVC="sim.hvc.$TILERACONFIG"
996 PCIHVC="pci.hvc.$TILERACORES"
1001 elif $TILERAZLINUXFLAG
1002 then # TILERAZLINUXFLAG
1003 TILERA_INDIR="ZLinux"
1004 MAKEFILE="Makefile.tilera.$TILERACONFIG"
1014 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
1016 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
1021 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
1024 if $OBJECTLOCKDEBUGFLAG
1026 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
1029 if $TILERAMEMPROFFLAG
1030 then # not only with 1 core
1031 PCIHVC="$PCIHVC.memprof"
1032 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
1036 then # TILERABMEFLAG
1037 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
1038 elif $TILERAZLINUXFLAG
1039 then # TILERAZLINUXFLAG
1040 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1045 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1050 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1054 then # profile version
1055 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1058 if $ACCURATEPROFILEFLAG
1059 then # accurateprofile version
1060 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1063 if $PROFILEINTERRUPTFLAG
1064 then # profile_interrupt version
1065 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1069 then # useio version
1070 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1074 then #INTERRUPT version
1075 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1076 fi #INTERRUPT version
1080 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1084 then #MULTICOREGC version
1085 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1089 then #MULTICOREGC version
1090 TILERACFLAGS="${TILERACFLAGS} -DPMC_GC -D${GCCORES}"
1094 then # GC_PROFILE version
1095 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1099 then # GC_PROFILE_S version
1100 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1104 then # SMEMLOCAL version
1105 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1109 then # SMEMFIXED version
1110 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1114 then # SMEMMIXED version
1115 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1119 then # SMEMGLOBAL version
1120 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1123 if $GCCACHELOCALFLAG
1124 then # CACHE_LOCAL version
1125 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1129 then # CACHE_RAN version
1130 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1133 if $GCCONTROLLERNEARFLAG
1134 then # CONTROLLER_NEAR version
1135 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1138 if $GCCONTROLLERREMOTEFLAG
1139 then # CONTROLLER_REMOTE version
1140 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1143 if $GCSMALLPAGESIZEFLAG
1144 then # GC_SMALLPAGESIZE version
1145 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1148 if $GCLARGEPAGESIZEFLAG
1149 then # GC_LARGEPAGESIZE version
1150 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1153 if $GCLARGEPAGESIZE2FLAG
1154 then # GC_LARGEPAGESIZE2 version
1155 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1158 if $GCLARGESHAREDHEAPFLAG
1159 then # GC_LARGESHAREDHEAP version
1160 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1163 if $GCSMALLPAGESIZEFLAG2
1164 then # GC_SMALLPAGESIZE2 version
1165 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1168 if $GCLARGESHAREDHEAPFLAG2
1169 then # GC_LARGESHAREDHEAP2 version
1170 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1173 if $GCCACHEADAPTFLAG
1174 then # GC_CACHE_ADAPT version
1175 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1178 if $GCCACHEADAPTPOLICYFLAG
1179 then # GC_CACHE_ADAPT version
1180 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1183 if $GCCACHESAMPLINGFLAG
1184 then # GC_CACHE_ADAPT version
1185 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1190 cp $ROBUSTROOT/Tilera/Runtime/PMC/$MAKEFILE ./Makefile
1193 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1195 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1198 then # TILERABMEFLAG
1199 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1200 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1201 if $TILERA56COREFLAG
1203 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1205 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1208 cp ../Runtime/Queue.c ./
1209 cp ../Runtime/file.c ./
1210 cp ../Runtime/math.c ./
1213 cp ../Runtime/object.c ./
1215 cp ../Runtime/GenericHashtable.c ./
1216 cp ../Runtime/SimpleHash.c ./
1217 cp ../Runtime/ObjectHash.c ./
1218 cp ../Runtime/socket.c ./
1219 cp ../Runtime/mem.c ./
1220 cp ../Runtime/GenericHashtable.h ./
1221 cp ../Runtime/mem.h ./
1224 cp ../Runtime/object.h ./
1226 cp ../Runtime/ObjectHash.h ./
1227 cp ../Runtime/Queue.h ./
1228 cp ../Runtime/runtime.h ./
1229 cp ../Runtime/SimpleHash.h ./
1230 cp ../Runtime/objtypes.h ./
1231 cp $BAMBOORUNTIME/*.c ./
1232 cp $BAMBOORUNTIME/*.h ./
1233 cp ../Tilera/Runtime/*.c ./
1234 cp ../Tilera/Runtime/*.h ./
1235 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1236 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1237 if $TILERAZLINUXFLAG
1238 then # TILERAZLINUXFLAG
1239 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1241 #if $TILERAMEMPROFFLAG
1242 #then # TILERAMEMPROFFLAG
1243 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1247 cp ../Tilera/Runtime/MGC/*.c ./
1248 cp ../Tilera/Runtime/MGC/*.h ./
1250 cp ../Tilera/lib/* ./
1251 cp ../$tmpbuilddirectory/*.c ./
1252 cp ../$tmpbuilddirectory/*.h ./
1258 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1261 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1266 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1267 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1269 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1272 FILES="$RUNTIMEFILE \
1273 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1274 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1275 $ROBUSTROOT/Runtime/ObjectHash.c \
1276 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1277 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1278 $ROBUSTROOT/Runtime/math.c \
1279 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1283 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1288 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1293 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1298 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1305 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1306 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"
1308 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1309 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"
1315 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1316 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1323 FILES="$FILES $DSMRUNTIME/sandbox.c"
1325 FILES="$FILES $STMRUNTIME/sandbox.c"
1331 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1336 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1341 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1346 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"
1351 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1352 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1353 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1356 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1362 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1365 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1367 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1370 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1372 if $THREADSIMULATEFLAG
1374 # -lpthread for pthread functions, -lrt for message queue functions
1375 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1381 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1382 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1387 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1392 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1393 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1398 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1402 echo EXTRAOPTIONS=$EXTRAOPTIONS
1406 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1407 -c $tmpbuilddirectory/methods.c -lm
1414 NONMULTICOREOPTS=-DPRECISE_GC
1419 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1420 $tmpbuilddirectory/methods.c $FILES > tmp.c
1423 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1424 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin