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
53 echo -do-definite-reach-analysis enable improved precision for disjoint reachability analysis
55 echo -pointsto-check-v-runtime check allocation site of pointer targets at runtime to help verify heap analysis results
57 echo "-mlp <num cores> <max sese age> build mlp code"
58 echo -mlpdebug if mlp, report progress and interim results
61 echo -dsm distributed shared memory
62 echo -abortreaders abort readers immediately
63 echo -trueprob double - probabiltiy of true branch
64 echo -dsmcaching -enable caching in dsm runtime
66 echo BAMBOO Multicore options
67 echo -scheduling do task scheduling
68 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
69 echo "-disall execute to collect whole distribution"
70 echo "-disstart specify the start number of distribution information collection"
71 echo -multicore generate multi-core version binary
72 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
73 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
74 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
75 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
76 echo -printscheduling print out scheduling graphs
77 echo -printschedulesim print out scheduling simulator result graphs
78 echo "-tilera_output_dir specify the output directory for the generated TILERA code"
79 echo "-tilera_bme generate tilera version binary for Bare Mental Environment (should be used together with -multicore"
80 echo "-tilera_zlinux generate tilera version binary for Zero-Overhead Linux with multi-process mode (should be used together with -multicore"
81 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
82 echo "-raw generate raw version binary (should be used together with -multicore)"
83 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
84 echo "-tilera_memprof build the memprof version (should be used together with -tilera_xx) "
85 echo -accurateprofile build with accurate profile information including pre/post task processing info
86 echo -profile_interrupt build with profile information of interrupts
87 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
88 echo -gccachecoherent turns on the cache coherence during gc
90 echo Multicore GC options
91 echo -perfcount performance counters
92 echo -memperfcount Memory performance counters
93 echo -multicoregc generate multi-core binary with garbage collection
94 echo -pmc parallel collector
95 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
96 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
97 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
98 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
99 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
100 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
101 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
102 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
103 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
104 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
105 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
106 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
107 echo "-tilera_page_size set the page size in multicore code"
108 echo "-tilera_page_size_bits set the page size bits in multicore code"
109 echo "-tilera_num_blocks set the total number of blocks in multicore code"
110 echo "-tilera_num_pages_per_block set the number of pages per block in multicore code"
111 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
112 echo -gcprofile build with gcprofile options
113 echo -mgc generate Multicore GC binary without task stuff
114 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
115 echo -gctbldebug generate GC_TBL_DEBUG code
118 echo -ssjava enables SSJava
119 echo -ssjavadebug reports interim results
120 echo -ssjava-induce-error N S where 1/N is the probability to error at any deref or divide and S is a random seed
124 echo -abcclose turnoff array boundary checks
125 echo -builddir setup different build directory
126 echo -robustroot set up the ROBUSTROOT to directory other than default one
127 echo -readset turn on readset
128 echo -mac distributed shared memory mac support
129 echo -check generate check code
130 echo -dmalloc link in dmalloc
131 echo -64bit compile for 64 bit machine
132 echo -32bit compile for 32 bit machine
133 echo -joptimize java compiler optimizations
134 echo -noloop turnoff loop optimizations
135 echo -recover compile task code
136 echo -fastcheck fast checkpointing for Bristlecone
137 echo -specdir directory
138 echo -printflat print out flat representation
139 echo -selfloop task - this task cannot self loop forever
140 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
141 echo -taskstate do task state analysis
142 echo -tagstate do tag state analysis
143 echo -optional enable optional
144 echo -debug generate debug symbols
145 echo -prefetch do prefetch analysis
146 echo -heapsize-mb NUM set output program initial heap size in MB, default is 256
147 echo -compiler-heapsize-mb NUM set heap size in MB for the JVM running the compiler, default is 1500
148 echo -garbagestats Print garbage collection statistics
149 echo -webinterface enable web interface
150 echo -runtimedebug printout runtime debug messages
151 echo "-thread use support for multiple threads"
152 echo "-optimize call gcc with -O9 (optimize)"
153 echo "-nooptimize call gcc with -O0 (do not optimize)"
154 echo -curdir directory
155 echo -mainclass class with main method
157 echo -nojava do not run bristlecone compiler
158 echo -instructionfailures inject code for instructionfailures
159 echo -profile build with profile options
160 echo "-enable-assertions execute assert statements during compilation"
161 echo -justanalyze exit after compiler analyses complete
162 echo -assembly generate assembly
163 echo -recovery compile recovery code
164 echo -dsmtask support work and task class library
165 echo -recoverystats print out recovery record
166 echo -src-after-pp prints source code after preprocessor to tmp.c
167 echo -capture-null-dereferences generates code to warn before derefencing null
168 echo -printlinenum print out line numbers in generated C codes
172 tmpbuilddirectory="tmpbuilddirectory"
180 ROBUSTROOT=~/research/Robust/src
181 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
182 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
183 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
184 REPAIRROOT=~/research/Repair/RepairCompiler/
201 RCR_DEBUG_VERBOSE=false
207 TILERAZLINUXFLAG=false
208 TILERAMEMPROFFLAG=false
217 ACCURATEPROFILEFLAG=false
218 PROFILEINTERRUPTFLAG=false
221 THREADSIMULATEFLAG=false;
222 MULTICOREGCFLAG=false;
226 GCMEMLOCALFLAG=false;
227 GCMEMFIXEDFLAG=false;
228 GCMEMMIXEDFLAG=false;
229 GCMEMGLOBALFLAG=false;
230 GCCACHELOCALFLAG=false;
231 GCCACHERANFLAG=false;
232 GCCONTROLLERNEARFLAG=false;
233 GCCONTROLLERREMOTEFLAG=false;
234 GCSMALLPAGESIZEFLAG=false;
235 GCLARGEPAGESIZEFLAG=false;
236 GCLARGEPAGESIZE2FLAG=false;
237 GCLARGESHAREDHEAPFLAG=false;
238 GCSMALLPAGESIZEFLAG2=false;
239 GCLARGESHAREDHEAPFLAG2=false;
240 GCCACHEADAPTFLAG=false
241 GCCACHEADAPTPOLICYFLAG=false
242 GCCACHEADAPTPOLICY=''
243 GCCACHESAMPLINGFLAG=false
246 OBJECTLOCKDEBUGFLAG=false
258 EXITAFTERANALYSIS=false
261 TILERAN1COREFLAG=false
262 TILERA56COREFLAG=false
263 TILERAOUTPUTDIR="tilera"
264 TILERA_PAGE_SIZE="0x10000"
265 TILERA_PAGE_SIZE_BITS="16"
266 TILERA_NUM_BLOCKS="20"
267 TILERA_NUM_PAGES_PER_BLOCK="16"
268 GCCACHECOHERENTFLAG=false
269 COMPILER_HEAP_SIZE="1500"
280 if [[ $1 = '-help' ]]
284 elif [[ $1 = '-jni' ]]
287 JAVAOPTS="$JAVAOPTS -jni"
288 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
289 elif [[ $1 = '-justanalyze' ]]
291 EXITAFTERANALYSIS=true
292 elif [[ $1 = '-capture-null-dereferences' ]]
294 JAVAOPTS="$JAVAOPTS -capture-null-dereferences"
295 EXTRAOPTIONS="$EXTRAOPTIONS -DCAPTURE_NULL_DEREFERENCES"
296 elif [[ $1 = '-src-after-pp' ]]
299 elif [[ $1 = '-assembly' ]]
302 elif [[ $1 = '-abortreaders' ]]
305 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
306 JAVAOPTS="$JAVAOPTS -abortreaders"
307 elif [[ $1 = '-sandbox' ]]
310 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
311 JAVAOPTS="$JAVAOPTS -sandbox"
312 elif [[ $1 = '-numa' ]]
314 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
316 elif [[ $1 = '-robustroot' ]]
320 elif [[ $1 = '-builddir' ]]
322 tmpbuilddirectory="$2"
324 elif [[ $1 = '-nojava' ]]
327 elif [[ $1 = '-eventmonitor' ]]
329 JAVAOPTS="$JAVAOPTS -eventmonitor"
331 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
332 elif [[ $1 = '-garbagestats' ]]
334 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
335 elif [[ $1 = '-64bit' ]]
337 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
338 elif [[ $1 = '-32bit' ]]
340 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
341 elif [[ $1 = '-fastcheck' ]]
343 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
344 JAVAOPTS="$JAVAOPTS -fastcheck"
350 elif [[ $1 = '-mainclass' ]]
352 JAVAOPTS="$JAVAOPTS -mainclass $2"
354 elif [[ $1 = '-selfloop' ]]
356 JAVAOPTS="$JAVAOPTS -selfloop $2"
358 elif [[ $1 = '-excprefetch' ]]
360 JAVAOPTS="$JAVAOPTS -excprefetch $2"
362 elif [[ $1 = '-arraypad' ]]
364 JAVAOPTS="$JAVAOPTS -arraypad"
365 elif [[ $1 = '-dsm' ]]
367 JAVAOPTS="$JAVAOPTS -dsm"
369 elif [[ $1 = '-fastmemcpy' ]]
372 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
373 elif [[ $1 = '-singleTM' ]]
375 JAVAOPTS="$JAVAOPTS -singleTM"
376 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
378 elif [[ $1 = '-stmarray' ]]
380 JAVAOPTS="$JAVAOPTS -stmarray"
381 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
383 elif [[ $1 = '-dualview' ]]
385 JAVAOPTS="$JAVAOPTS -dualview"
386 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
388 elif [[ $1 = '-readset' ]]
390 JAVAOPTS="$JAVAOPTS -readset"
391 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
392 elif [[ $1 = '-stmdebug' ]]
394 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
395 elif [[ $1 = '-stmstats' ]]
397 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
398 elif [[ $1 = '-stmlog' ]]
400 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
401 elif [[ $1 = '-prefetch' ]]
403 JAVAOPTS="$JAVAOPTS -prefetch"
404 elif [[ $1 = '-transstats' ]]
406 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
407 elif [[ $1 = '-printflat' ]]
409 JAVAOPTS="$JAVAOPTS -printflat"
410 elif [[ $1 = '-trueprob' ]]
412 JAVAOPTS="$JAVAOPTS -trueprob $2"
414 elif [[ $1 = '-inlineatomic' ]]
416 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
418 elif [[ $1 = '-mac' ]]
420 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
421 elif [[ $1 = '-squeue' ]]
423 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
424 elif [[ $1 = '-corepin' ]]
426 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
428 elif [[ $1 = '-profile' ]]
431 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
432 elif [[ $1 = '-gcprofile' ]]
435 elif [[ $1 = '-gcprofile_s' ]]
438 elif [[ $1 = '-accurateprofile' ]]
440 ACCURATEPROFILEFLAG=true
441 elif [[ $1 = '-profile_interrupt' ]]
443 PROFILEINTERRUPTFLAG=true
444 elif [[ $1 = '-useio' ]]
447 elif [[ $1 = '-gccachecoherent' ]]
449 GCCACHECOHERENTFLAG=true
450 elif [[ $1 = '-taskstate' ]]
452 JAVAOPTS="$JAVAOPTS -taskstate"
453 elif [[ $1 = '-tagstate' ]]
455 JAVAOPTS="$JAVAOPTS -tagstate"
456 elif [[ $1 = '-scheduling' ]]
458 JAVAOPTS="$JAVAOPTS -scheduling"
459 elif [[ $1 = '-multicore' ]]
462 JAVAOPTS="$JAVAOPTS -multicore"
463 elif [[ $1 = '-numcore' ]]
465 JAVAOPTS="$JAVAOPTS -numcore $2"
467 if [[ "$2" -gt "1" ]]
469 TILERAN1COREFLAG=true
470 if [[ "$2" -eq "56" ]]
472 TILERA56COREFLAG=true
476 elif [[ $1 = '-numcore4gc' ]]
478 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
481 elif [[ $1 = '-raw' ]]
484 JAVAOPTS="$JAVAOPTS -raw"
485 elif [[ $1 = '-tilera_output_dir' ]]
489 elif [[ $1 = '-tilera_page_size' ]]
491 TILERA_PAGE_SIZE="$2"
493 elif [[ $1 = '-tilera_page_size_bits' ]]
495 TILERA_PAGE_SIZE_BITS="$2"
497 elif [[ $1 = '-tilera_num_blocks' ]]
499 TILERA_NUM_BLOCKS="$2"
501 elif [[ $1 = '-tilera_num_pages_per_block' ]]
503 TILERA_NUM_PAGES_PER_BLOCK="$2"
505 elif [[ $1 = '-tilera_bme' ]]
509 elif [[ $1 = '-tilera_zlinux' ]]
512 TILERAZLINUXFLAG=true
513 elif [[ $1 = '-tilera_memprof' ]]
515 TILERAMEMPROFFLAG=true
516 elif [[ $1 = '-tileraconfig' ]]
520 elif [[ $1 = '-rawconfig' ]]
524 elif [[ $1 = '-interrupt' ]]
527 elif [[ $1 = '-abcclose' ]]
529 JAVAOPTS="$JAVAOPTS -abcclose"
530 elif [[ $1 = '-optional' ]]
532 JAVAOPTS="$JAVAOPTS -optional"
534 elif [[ $1 = '-multicoregc' ]]
537 JAVAOPTS="$JAVAOPTS -multicoregc"
538 elif [[ $1 = '-pmc' ]]
541 JAVAOPTS="$JAVAOPTS -pmc"
542 elif [[ $1 = '-perfcount' ]]
545 elif [[ $1 = '-memperfcount' ]]
548 elif [[ $1 = '-gcmem_local' ]]
551 elif [[ $1 = '-gcmem_fixed' ]]
554 elif [[ $1 = '-gcmem_mixed' ]]
557 elif [[ $1 = '-gcmem_global' ]]
560 elif [[ $1 = '-gccache_local' ]]
562 GCCACHELOCALFLAG=true
563 elif [[ $1 = '-gccache_ran' ]]
566 elif [[ $1 = '-gccontroller_near' ]]
568 GCCONTROLLERNEARFLAG=true
569 elif [[ $1 = '-gccontroller_remote' ]]
571 GCCONTROLLERREMOTEFLAG=true
572 elif [[ $1 = '-gcsmallpagesize' ]]
574 GCSMALLPAGESIZEFLAG=true
575 elif [[ $1 = '-gcsmallpagesize2' ]]
577 GCSMALLPAGESIZEFLAG2=true
578 elif [[ $1 = '-gclargepagesize' ]]
580 GCLARGEPAGESIZEFLAG=true
581 elif [[ $1 = '-gclargepagesize2' ]]
583 GCLARGEPAGESIZE2FLAG=true
584 elif [[ $1 = '-gclargesharedheap' ]]
586 GCLARGESHAREDHEAPFLAG=true
587 elif [[ $1 = '-gclargesharedheap2' ]]
589 GCLARGESHAREDHEAPFLAG2=true
590 elif [[ $1 = '-gccacheadapt' ]]
592 GCCACHEADAPTFLAG=true
593 elif [[ $1 = '-gccacheadaptpolicy' ]]
595 GCCACHEADAPTPOLICYFLAG=true
596 GCCACHEADAPTPOLICY="$2"
598 elif [[ $1 = '-gccachesampling' ]]
600 GCCACHESAMPLINGFLAG=true
601 elif [[ $1 = '-mgc' ]]
604 JAVAOPTS="$JAVAOPTS -mgc"
605 elif [[ $1 = '-mgcintel' ]]
608 elif [[ $1 = '-objectlockdebug' ]]
610 OBJECTLOCKDEBUGFLAG=true
611 JAVAOPTS="$JAVAOPTS -objectlockdebug"
612 elif [[ $1 = '-gctbldebug' ]]
615 elif [[ $1 = '-dmalloc' ]]
618 elif [[ $1 = '-recover' ]]
621 JAVAOPTS="$JAVAOPTS -task"
622 elif [[ $1 = '-useprofile' ]]
624 JAVAOPTS="$JAVAOPTS -useprofile $2"
626 elif [[ $1 = '-webinterface' ]]
628 JAVAOPTS="$JAVAOPTS -webinterface"
629 elif [[ $1 = '-instructionfailures' ]]
631 JAVAOPTS="$JAVAOPTS -instructionfailures"
632 elif [[ $1 = '-joptimize' ]]
634 JAVAOPTS="$JAVAOPTS -optimize"
635 elif [[ $1 = '-noloop' ]]
637 JAVAOPTS="$JAVAOPTS -noloop"
638 elif [[ $1 = '-dcopts' ]]
640 JAVAOPTS="$JAVAOPTS -dcopts"
641 elif [[ $1 = '-delaycomp' ]]
643 JAVAOPTS="$JAVAOPTS -delaycomp"
644 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
645 elif [[ $1 = '-hybrid' ]]
647 JAVAOPTS="$JAVAOPTS -hybrid"
648 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
649 elif [[ $1 = '-minimize' ]]
651 JAVAOPTS="$JAVAOPTS -minimize"
653 elif [[ $1 = '-ooojava' ]]
657 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
658 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
662 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
664 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
666 elif [[ $1 = '-ssjava' ]]
669 JAVAOPTS="$JAVAOPTS -ssjava"
671 elif [[ $1 = '-ssjavadebug' ]]
673 JAVAOPTS="$JAVAOPTS -ssjavadebug"
675 elif [[ $1 = '-ssjava-inject-error' ]]
677 JAVAOPTS="$JAVAOPTS -ssjava-inject-error $2 $3"
681 elif [[ $1 = '-mempool-detect-misuse' ]]
683 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
685 elif [[ $1 = '-heapsize-mb' ]]
687 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
690 elif [[ $1 = '-compiler-heapsize-mb' ]]
692 COMPILER_HEAP_SIZE="$2"
695 elif [[ $1 = '-nostalltr' ]]
697 JAVAOPTS="$JAVAOPTS -nostalltr"
699 elif [[ $1 = '-printlinenum' ]]
701 JAVAOPTS="$JAVAOPTS -printlinenum"
703 elif [[ $1 = '-rcr' ]]
705 JAVAOPTS="$JAVAOPTS -rcr"
707 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
709 elif [[ $1 = '-rcr_debug' ]]
711 JAVAOPTS="$JAVAOPTS -rcr_debug"
714 elif [[ $1 = '-rcr_debug_verbose' ]]
716 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
717 RCR_DEBUG_VERBOSE=true
719 elif [[ $1 = '-debug-deque' ]]
721 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
723 elif [[ $1 = '-nolock' ]]
725 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
727 elif [[ $1 = '-coreprof' ]]
730 JAVAOPTS="$JAVAOPTS -coreprof"
731 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
733 elif [[ $1 = '-coreprof-eventwords' ]]
735 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
738 elif [[ $1 = '-coreprof-checkoverflow' ]]
740 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
742 elif [[ $1 = '-coreprof-enable' ]]
744 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
747 elif [[ $1 = '-mlp' ]]
750 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
751 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
755 elif [[ $1 = '-mlpdebug' ]]
757 JAVAOPTS="$JAVAOPTS -mlpdebug"
759 elif [[ $1 = '-check' ]]
762 JAVAOPTS="$JAVAOPTS -conscheck"
763 elif [[ $1 = '-enable-assertions' ]]
765 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
766 elif [[ $1 = '-specdir' ]]
772 elif [[ $1 = '-debug' ]]
775 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
776 elif [[ $1 = '-rawpath' ]]
779 elif [[ $1 = '-runtimedebug' ]]
781 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
782 elif [[ $1 = '-dsmcaching' ]]
784 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
785 elif [[ $1 = '-rangeprefetch' ]]
787 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
788 elif [[ $1 = '-nooptimize' ]]
790 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
791 elif [[ $1 = '-optimize' ]]
793 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
794 elif [[ $1 = '-thread' ]]
796 JAVAOPTS="$JAVAOPTS -thread"
797 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
799 elif [[ $1 = '-recovery' ]]
801 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
803 elif [[ $1 = '-recoverystats' ]]
805 JAVAOPTS="$JAVAOPTS -recoverystats"
806 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
807 elif [[ $1 = '-distributioninfo' ]]
809 JAVAOPTS="$JAVAOPTS -distributioninfo"
810 elif [[ $1 = '-disall' ]]
812 JAVAOPTS="$JAVAOPTS -disall"
813 elif [[ $1 = '-disstart' ]]
815 JAVAOPTS="$JAVAOPTS -disstart $2"
817 elif [[ $1 = '-noc' ]]
820 elif [[ $1 = '-curdir' ]]
824 elif [[ $1 = '-outputdir' ]]
826 JAVAOPTS="$JAVAOPTS -outputdir $2"
829 SRCFILES="$SRCFILES $1"
835 BUILDDIR="$CURDIR/$tmpbuilddirectory"
837 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
845 if $CHECKFLAG #Generate structure files for repair tool
847 JAVAOPTS="$JAVAOPTS -struct structfile"
852 # for tilera code, generate multicorememsize.h
853 ./generate_memsize.sh ${TILERA_PAGE_SIZE} ${TILERA_PAGE_SIZE_BITS} ${TILERA_NUM_BLOCKS} ${TILERA_NUM_PAGES_PER_BLOCK} ${BUILDDIR}
857 #########################
859 #########################
862 # stuff for OoOJava to mask parts of the base
863 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/OoOJava"
868 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference"
872 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
876 #base multicore gc files
877 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
881 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJava"
889 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
891 #base bristlecone files
892 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
898 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
902 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
906 #threading java stuff
907 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
911 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
915 # everyone gets this except ssjava!
918 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
920 #########################
922 #########################
925 echo "compiler running in JVM with heap size: ${COMPILER_HEAP_SIZE}MB"
928 # Build bristlecone/java sources
932 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
933 -dir $BUILDDIR $JAVAOPTS $SRCFILES
941 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
942 -dir $BUILDDIR -precise $SRCFILES
949 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
950 -dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
957 # after executing Main, if -justanalyze flag, just exit
958 if $EXITAFTERANALYSIS
965 # Build all of the consistency specs
967 if $CHECKFLAG # CHECKFLAG
970 mkdir $BUILDDIR/specdir
971 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
973 echo > $BUILDDIR/specs
975 # compile specs into C code
976 for i in * # iterate over all directories
978 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
981 cat $BUILDDIR/structfile.struct $i.label > $i.struct
982 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
983 cp size.[c,h] $BUILDDIR/specdir
984 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
985 echo $i >> $BUILDDIR/specs
987 done # iterate over all directories
993 echo > $BUILDDIR/checkers.h
994 for i in `cat $BUILDDIR/specs`
996 gcc -O0 -g -fbounds-check -c $i\_aux.c
997 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
1001 #build and link everything
1005 RAWDIR="$CURDIR/raw"
1006 MAKEFILE="Makefile.raw"
1012 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
1016 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
1021 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
1025 then # profile version
1026 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
1029 if $ACCURATEPROFILEFLAG
1030 then # accurateprofile version
1031 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
1035 then # useio version
1036 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
1040 then #INTERRUPT version
1041 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
1042 fi #INTERRUPT version
1045 then # useio version
1046 MAKEFILE="$MAKEFILE.io"
1047 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
1049 MAKEFILE="$MAKEFILE.$RAWCONFIG"
1052 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
1053 cp ../Runtime/*.c ./
1054 cp ../Runtime/*.h ./
1055 cp ../Runtime/*.S ./
1056 cp ../Runtime/*.s ./
1057 cp $BAMBOORUNTIME/*.c ./
1058 cp $BAMBOORUNTIME/*.h ./
1059 cp $BAMBOORUNTIME/RAW/*.c ./
1060 cp $BAMBOORUNTIME/RAW/*.h ./
1061 cp $BAMBOORUNTIME/RAW/*.S ./
1062 cp $BAMBOORUNTIME/RAW/*.s ./
1063 cp ../$tmpbuilddirectory/*.c ./
1064 cp ../$tmpbuilddirectory/*.h ./
1070 TILERADIR="$CURDIR/${TILERAOUTPUTDIR}"
1072 then # TILERABMEFLAG
1074 MAKEFILE="Makefile.tilera.$TILERACORES"
1075 #SIMHVC="sim.hvc.$TILERACONFIG"
1076 PCIHVC="pci.hvc.$TILERACORES"
1077 if $TILERA56COREFLAG
1081 elif $TILERAZLINUXFLAG
1082 then # TILERAZLINUXFLAG
1083 TILERA_INDIR="ZLinux"
1084 MAKEFILE="Makefile.tilera.$TILERACONFIG"
1094 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
1096 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
1101 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
1104 if $OBJECTLOCKDEBUGFLAG
1106 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
1109 if $TILERAMEMPROFFLAG
1110 then # not only with 1 core
1111 PCIHVC="$PCIHVC.memprof"
1112 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
1116 then # TILERABMEFLAG
1117 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
1118 elif $TILERAZLINUXFLAG
1119 then # TILERAZLINUXFLAG
1120 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1125 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1130 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1134 then # profile version
1135 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1138 if $ACCURATEPROFILEFLAG
1139 then # accurateprofile version
1140 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1143 if $PROFILEINTERRUPTFLAG
1144 then # profile_interrupt version
1145 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1149 then # useio version
1150 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1154 then #INTERRUPT version
1155 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1156 fi #INTERRUPT version
1160 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1164 then #MULTICOREGC version
1165 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1169 then #MULTICOREGC version
1170 TILERACFLAGS="${TILERACFLAGS} -DPMC_GC -D${GCCORES}"
1174 then #MULTICOREGC version
1175 TILERACFLAGS="${TILERACFLAGS} -DPERFCOUNT"
1179 then #MULTICOREGC version
1180 TILERACFLAGS="${TILERACFLAGS} -DMEMPERFCOUNT"
1184 then # GC_PROFILE version
1185 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1189 then # GC_PROFILE_S version
1190 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1194 then # SMEMLOCAL version
1195 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1199 then # SMEMFIXED version
1200 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1204 then # SMEMMIXED version
1205 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1209 then # SMEMGLOBAL version
1210 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1213 if $GCCACHELOCALFLAG
1214 then # CACHE_LOCAL version
1215 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1219 then # CACHE_RAN version
1220 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1223 if $GCCONTROLLERNEARFLAG
1224 then # CONTROLLER_NEAR version
1225 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1228 if $GCCONTROLLERREMOTEFLAG
1229 then # CONTROLLER_REMOTE version
1230 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1233 if $GCSMALLPAGESIZEFLAG
1234 then # GC_SMALLPAGESIZE version
1235 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1238 if $GCLARGEPAGESIZEFLAG
1239 then # GC_LARGEPAGESIZE version
1240 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1243 if $GCLARGEPAGESIZE2FLAG
1244 then # GC_LARGEPAGESIZE2 version
1245 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1248 if $GCLARGESHAREDHEAPFLAG
1249 then # GC_LARGESHAREDHEAP version
1250 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1253 if $GCSMALLPAGESIZEFLAG2
1254 then # GC_SMALLPAGESIZE2 version
1255 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1258 if $GCLARGESHAREDHEAPFLAG2
1259 then # GC_LARGESHAREDHEAP2 version
1260 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1263 if $GCCACHEADAPTFLAG
1264 then # GC_CACHE_ADAPT version
1265 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1268 if $GCCACHEADAPTPOLICYFLAG
1269 then # GC_CACHE_ADAPT version
1270 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1273 if $GCCACHESAMPLINGFLAG
1274 then # GC_CACHE_ADAPT version
1275 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1278 if $GCCACHECOHERENTFLAG
1279 then # gc cache coherent version
1280 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_COHERENT_ON"
1285 cp $ROBUSTROOT/Tilera/Runtime/PMC/$MAKEFILE ./Makefile
1288 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1290 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1293 then # TILERABMEFLAG
1294 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1295 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1296 if $TILERA56COREFLAG
1298 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1300 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1303 cp ../Runtime/Queue.c ./
1304 cp ../Runtime/file.c ./
1305 cp ../Runtime/math.c ./
1308 cp ../Runtime/object.c ./
1310 cp ../Runtime/GenericHashtable.c ./
1311 cp ../Runtime/SimpleHash.c ./
1312 cp ../Runtime/ObjectHash.c ./
1313 cp ../Runtime/socket.c ./
1314 cp ../Runtime/mem.c ./
1315 cp ../Runtime/GenericHashtable.h ./
1316 cp ../Runtime/mem.h ./
1319 cp ../Runtime/object.h ./
1321 cp ../Runtime/ObjectHash.h ./
1322 cp ../Runtime/Queue.h ./
1323 cp ../Runtime/runtime.h ./
1324 cp ../Runtime/SimpleHash.h ./
1325 cp ../Runtime/objtypes.h ./
1326 cp $BAMBOORUNTIME/*.c ./
1327 cp $BAMBOORUNTIME/*.h ./
1328 cp ../Tilera/Runtime/*.c ./
1329 cp ../Tilera/Runtime/*.h ./
1330 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1331 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1332 if $TILERAZLINUXFLAG
1333 then # TILERAZLINUXFLAG
1334 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1336 #if $TILERAMEMPROFFLAG
1337 #then # TILERAMEMPROFFLAG
1338 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1342 cp ../Tilera/Runtime/MGC/*.c ./
1343 cp ../Tilera/Runtime/MGC/*.h ./
1345 cp ../Tilera/lib/* ./
1346 cp ../$tmpbuilddirectory/*.c ./
1347 cp ../$tmpbuilddirectory/*.h ./
1349 echo $TILERACFLAGS > ./tileracflags.txt
1353 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1356 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1361 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1362 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1364 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1367 FILES="$RUNTIMEFILE \
1368 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1369 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1370 $ROBUSTROOT/Runtime/ObjectHash.c \
1371 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1372 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1373 $ROBUSTROOT/Runtime/math.c \
1374 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1378 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1383 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1388 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1393 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1400 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1401 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"
1403 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1404 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"
1410 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1411 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1418 FILES="$FILES $DSMRUNTIME/sandbox.c"
1420 FILES="$FILES $STMRUNTIME/sandbox.c"
1426 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1431 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1436 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1441 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"
1446 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1447 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1448 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1451 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1457 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1460 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1462 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1465 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1467 if $THREADSIMULATEFLAG
1469 # -lpthread for pthread functions, -lrt for message queue functions
1470 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1476 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1477 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1482 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1487 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1488 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1493 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1497 echo EXTRAOPTIONS=$EXTRAOPTIONS
1501 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1502 -c $tmpbuilddirectory/methods.c -lm
1509 NONMULTICOREOPTS=-DPRECISE_GC
1514 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1515 $tmpbuilddirectory/methods.c $FILES > tmp.c
1518 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1519 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin