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 -count-visits for counting visits in the fixed point algorithm to evaluate convergence behavior
55 echo -do-definite-reach-analysis enable improved precision for disjoint reachability analysis
56 echo -disjoint-disable-global-sweep
57 echo -disjoint-disable-strong-update
58 echo -disjoint-disable-predicates
59 echo -disjoint-summarize-per-class
62 echo -pointsto-check-v-runtime check allocation site of pointer targets at runtime to help verify heap analysis results
64 echo "-mlp <num cores> <max sese age> build mlp code"
65 echo -mlpdebug if mlp, report progress and interim results
68 echo -dsm distributed shared memory
69 echo -abortreaders abort readers immediately
70 echo -trueprob double - probabiltiy of true branch
71 echo -dsmcaching -enable caching in dsm runtime
73 echo BAMBOO Multicore options
74 echo -scheduling do task scheduling
75 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
76 echo "-disall execute to collect whole distribution"
77 echo "-disstart specify the start number of distribution information collection"
78 echo -multicore generate multi-core version binary
79 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
80 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
81 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
82 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
83 echo -printscheduling print out scheduling graphs
84 echo -printschedulesim print out scheduling simulator result graphs
85 echo "-tilera_output_dir specify the output directory for the generated TILERA code"
86 echo "-tilera_bme generate tilera version binary for Bare Mental Environment (should be used together with -multicore"
87 echo "-tilera_zlinux generate tilera version binary for Zero-Overhead Linux with multi-process mode (should be used together with -multicore"
88 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
89 echo "-raw generate raw version binary (should be used together with -multicore)"
90 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
91 echo "-tilera_memprof build the memprof version (should be used together with -tilera_xx) "
92 echo -accurateprofile build with accurate profile information including pre/post task processing info
93 echo -profile_interrupt build with profile information of interrupts
94 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
95 echo -gccachecoherent turns on the cache coherence during gc
97 echo Multicore GC options
98 echo -perfcount performance counters
99 echo -memperfcount Memory performance counters
100 echo -multicoregc generate multi-core binary with garbage collection
101 echo -pmc parallel collector
102 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
103 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
104 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
105 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
106 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
107 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
108 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
109 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
110 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
111 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
112 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
113 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
114 echo "-tilera_page_size set the page size in multicore code"
115 echo "-tilera_page_size_bits set the page size bits in multicore code"
116 echo "-tilera_num_blocks set the total number of blocks in multicore code"
117 echo "-tilera_num_pages_per_block set the number of pages per block in multicore code"
118 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
119 echo -gcprofile build with gcprofile options
120 echo -mgc generate Multicore GC binary without task stuff
121 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
122 echo -gctbldebug generate GC_TBL_DEBUG code
125 echo -ssjava enables SSJava
126 echo -ssjavadebug reports interim results
127 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
131 echo -abcclose turnoff array boundary checks
132 echo -builddir setup different build directory
133 echo -robustroot set up the ROBUSTROOT to directory other than default one
134 echo -readset turn on readset
135 echo -mac distributed shared memory mac support
136 echo -check generate check code
137 echo -dmalloc link in dmalloc
138 echo -64bit compile for 64 bit machine
139 echo -32bit compile for 32 bit machine
140 echo -joptimize java compiler optimizations
141 echo -noloop turnoff loop optimizations
142 echo -recover compile task code
143 echo -fastcheck fast checkpointing for Bristlecone
144 echo -specdir directory
145 echo -printflat print out flat representation
146 echo -selfloop task - this task cannot self loop forever
147 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
148 echo -taskstate do task state analysis
149 echo -tagstate do tag state analysis
150 echo -optional enable optional
151 echo -debug generate debug symbols
152 echo -prefetch do prefetch analysis
153 echo -heapsize-mb NUM set output program initial heap size in MB, default is 256
154 echo -compiler-heapsize-mb NUM set heap size in MB for the JVM running the compiler, default is 1500
155 echo -garbagestats Print garbage collection statistics
156 echo -webinterface enable web interface
157 echo -runtimedebug printout runtime debug messages
158 echo "-thread use support for multiple threads"
159 echo "-optimize call gcc with -O9 (optimize)"
160 echo "-nooptimize call gcc with -O0 (do not optimize)"
161 echo -curdir directory
162 echo -mainclass class with main method
164 echo -nojava do not run bristlecone compiler
165 echo -instructionfailures inject code for instructionfailures
166 echo -profile build with profile options
167 echo "-enable-assertions execute assert statements during compilation"
168 echo -justanalyze exit after compiler analyses complete
169 echo -assembly generate assembly
170 echo -recovery compile recovery code
171 echo -dsmtask support work and task class library
172 echo -recoverystats print out recovery record
173 echo -src-after-pp prints source code after preprocessor to tmp.c
174 echo -capture-null-dereferences generates code to warn before derefencing null
175 echo -printlinenum print out line numbers in generated C codes
179 tmpbuilddirectory="tmpbuilddirectory"
182 USE_SSJAVA_CLASSPATH=false
188 ROBUSTROOT=~/research/Robust/src
189 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
190 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
191 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
192 REPAIRROOT=~/research/Repair/RepairCompiler/
209 RCR_DEBUG_VERBOSE=false
215 TILERAZLINUXFLAG=false
216 TILERAMEMPROFFLAG=false
225 ACCURATEPROFILEFLAG=false
226 PROFILEINTERRUPTFLAG=false
229 THREADSIMULATEFLAG=false;
230 MULTICOREGCFLAG=false;
234 GCMEMLOCALFLAG=false;
235 GCMEMFIXEDFLAG=false;
236 GCMEMMIXEDFLAG=false;
237 GCMEMGLOBALFLAG=false;
238 GCCACHELOCALFLAG=false;
239 GCCACHERANFLAG=false;
240 GCCONTROLLERNEARFLAG=false;
241 GCCONTROLLERREMOTEFLAG=false;
242 GCSMALLPAGESIZEFLAG=false;
243 GCLARGEPAGESIZEFLAG=false;
244 GCLARGEPAGESIZE2FLAG=false;
245 GCLARGESHAREDHEAPFLAG=false;
246 GCSMALLPAGESIZEFLAG2=false;
247 GCLARGESHAREDHEAPFLAG2=false;
248 GCCACHEADAPTFLAG=false
249 GCCACHEADAPTPOLICYFLAG=false
250 GCCACHEADAPTPOLICY=''
251 GCCACHESAMPLINGFLAG=false
254 OBJECTLOCKDEBUGFLAG=false
266 EXITAFTERANALYSIS=false
269 TILERAN1COREFLAG=false
270 TILERA56COREFLAG=false
271 TILERAOUTPUTDIR="tilera"
272 TILERA_PAGE_SIZE="0x10000"
273 TILERA_PAGE_SIZE_BITS="16"
274 TILERA_NUM_BLOCKS="20"
275 TILERA_NUM_PAGES_PER_BLOCK="16"
276 GCCACHECOHERENTFLAG=false
277 COMPILER_HEAP_SIZE="1500"
288 if [[ $1 = '-help' ]]
292 elif [[ $1 = '-jni' ]]
295 JAVAOPTS="$JAVAOPTS -jni"
296 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
297 elif [[ $1 = '-justanalyze' ]]
299 EXITAFTERANALYSIS=true
300 elif [[ $1 = '-capture-null-dereferences' ]]
302 JAVAOPTS="$JAVAOPTS -capture-null-dereferences"
303 EXTRAOPTIONS="$EXTRAOPTIONS -DCAPTURE_NULL_DEREFERENCES"
304 elif [[ $1 = '-src-after-pp' ]]
307 elif [[ $1 = '-assembly' ]]
310 elif [[ $1 = '-abortreaders' ]]
313 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
314 JAVAOPTS="$JAVAOPTS -abortreaders"
315 elif [[ $1 = '-sandbox' ]]
318 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
319 JAVAOPTS="$JAVAOPTS -sandbox"
320 elif [[ $1 = '-numa' ]]
322 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
324 elif [[ $1 = '-robustroot' ]]
328 elif [[ $1 = '-builddir' ]]
330 tmpbuilddirectory="$2"
332 elif [[ $1 = '-nojava' ]]
335 elif [[ $1 = '-eventmonitor' ]]
337 JAVAOPTS="$JAVAOPTS -eventmonitor"
339 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
340 elif [[ $1 = '-garbagestats' ]]
342 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
343 elif [[ $1 = '-64bit' ]]
345 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
346 elif [[ $1 = '-32bit' ]]
348 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
349 elif [[ $1 = '-fastcheck' ]]
351 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
352 JAVAOPTS="$JAVAOPTS -fastcheck"
358 elif [[ $1 = '-mainclass' ]]
360 JAVAOPTS="$JAVAOPTS -mainclass $2"
362 elif [[ $1 = '-selfloop' ]]
364 JAVAOPTS="$JAVAOPTS -selfloop $2"
366 elif [[ $1 = '-excprefetch' ]]
368 JAVAOPTS="$JAVAOPTS -excprefetch $2"
370 elif [[ $1 = '-arraypad' ]]
372 JAVAOPTS="$JAVAOPTS -arraypad"
373 elif [[ $1 = '-dsm' ]]
375 JAVAOPTS="$JAVAOPTS -dsm"
377 elif [[ $1 = '-fastmemcpy' ]]
380 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
381 elif [[ $1 = '-singleTM' ]]
383 JAVAOPTS="$JAVAOPTS -singleTM"
384 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
386 elif [[ $1 = '-stmarray' ]]
388 JAVAOPTS="$JAVAOPTS -stmarray"
389 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
391 elif [[ $1 = '-dualview' ]]
393 JAVAOPTS="$JAVAOPTS -dualview"
394 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
396 elif [[ $1 = '-readset' ]]
398 JAVAOPTS="$JAVAOPTS -readset"
399 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
400 elif [[ $1 = '-stmdebug' ]]
402 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
403 elif [[ $1 = '-stmstats' ]]
405 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
406 elif [[ $1 = '-stmlog' ]]
408 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
409 elif [[ $1 = '-prefetch' ]]
411 JAVAOPTS="$JAVAOPTS -prefetch"
412 elif [[ $1 = '-transstats' ]]
414 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
415 elif [[ $1 = '-printflat' ]]
417 JAVAOPTS="$JAVAOPTS -printflat"
418 elif [[ $1 = '-trueprob' ]]
420 JAVAOPTS="$JAVAOPTS -trueprob $2"
422 elif [[ $1 = '-inlineatomic' ]]
424 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
426 elif [[ $1 = '-mac' ]]
428 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
429 elif [[ $1 = '-squeue' ]]
431 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
432 elif [[ $1 = '-corepin' ]]
434 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
436 elif [[ $1 = '-profile' ]]
439 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
440 elif [[ $1 = '-gcprofile' ]]
443 elif [[ $1 = '-gcprofile_s' ]]
446 elif [[ $1 = '-accurateprofile' ]]
448 ACCURATEPROFILEFLAG=true
449 elif [[ $1 = '-profile_interrupt' ]]
451 PROFILEINTERRUPTFLAG=true
452 elif [[ $1 = '-useio' ]]
455 elif [[ $1 = '-gccachecoherent' ]]
457 GCCACHECOHERENTFLAG=true
458 elif [[ $1 = '-taskstate' ]]
460 JAVAOPTS="$JAVAOPTS -taskstate"
461 elif [[ $1 = '-tagstate' ]]
463 JAVAOPTS="$JAVAOPTS -tagstate"
464 elif [[ $1 = '-scheduling' ]]
466 JAVAOPTS="$JAVAOPTS -scheduling"
467 elif [[ $1 = '-multicore' ]]
470 JAVAOPTS="$JAVAOPTS -multicore"
471 elif [[ $1 = '-numcore' ]]
473 JAVAOPTS="$JAVAOPTS -numcore $2"
475 if [[ "$2" -gt "1" ]]
477 TILERAN1COREFLAG=true
478 if [[ "$2" -eq "56" ]]
480 TILERA56COREFLAG=true
484 elif [[ $1 = '-numcore4gc' ]]
486 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
489 elif [[ $1 = '-raw' ]]
492 JAVAOPTS="$JAVAOPTS -raw"
493 elif [[ $1 = '-tilera_output_dir' ]]
497 elif [[ $1 = '-tilera_page_size' ]]
499 TILERA_PAGE_SIZE="$2"
501 elif [[ $1 = '-tilera_page_size_bits' ]]
503 TILERA_PAGE_SIZE_BITS="$2"
505 elif [[ $1 = '-tilera_num_blocks' ]]
507 TILERA_NUM_BLOCKS="$2"
509 elif [[ $1 = '-tilera_num_pages_per_block' ]]
511 TILERA_NUM_PAGES_PER_BLOCK="$2"
513 elif [[ $1 = '-tilera_bme' ]]
517 elif [[ $1 = '-tilera_zlinux' ]]
520 TILERAZLINUXFLAG=true
521 elif [[ $1 = '-tilera_memprof' ]]
523 TILERAMEMPROFFLAG=true
524 elif [[ $1 = '-tileraconfig' ]]
528 elif [[ $1 = '-rawconfig' ]]
532 elif [[ $1 = '-interrupt' ]]
535 elif [[ $1 = '-abcclose' ]]
537 JAVAOPTS="$JAVAOPTS -abcclose"
538 elif [[ $1 = '-optional' ]]
540 JAVAOPTS="$JAVAOPTS -optional"
542 elif [[ $1 = '-multicoregc' ]]
545 JAVAOPTS="$JAVAOPTS -multicoregc"
546 elif [[ $1 = '-pmc' ]]
549 JAVAOPTS="$JAVAOPTS -pmc"
550 elif [[ $1 = '-perfcount' ]]
553 elif [[ $1 = '-memperfcount' ]]
556 elif [[ $1 = '-gcmem_local' ]]
559 elif [[ $1 = '-gcmem_fixed' ]]
562 elif [[ $1 = '-gcmem_mixed' ]]
565 elif [[ $1 = '-gcmem_global' ]]
568 elif [[ $1 = '-gccache_local' ]]
570 GCCACHELOCALFLAG=true
571 elif [[ $1 = '-gccache_ran' ]]
574 elif [[ $1 = '-gccontroller_near' ]]
576 GCCONTROLLERNEARFLAG=true
577 elif [[ $1 = '-gccontroller_remote' ]]
579 GCCONTROLLERREMOTEFLAG=true
580 elif [[ $1 = '-gcsmallpagesize' ]]
582 GCSMALLPAGESIZEFLAG=true
583 elif [[ $1 = '-gcsmallpagesize2' ]]
585 GCSMALLPAGESIZEFLAG2=true
586 elif [[ $1 = '-gclargepagesize' ]]
588 GCLARGEPAGESIZEFLAG=true
589 elif [[ $1 = '-gclargepagesize2' ]]
591 GCLARGEPAGESIZE2FLAG=true
592 elif [[ $1 = '-gclargesharedheap' ]]
594 GCLARGESHAREDHEAPFLAG=true
595 elif [[ $1 = '-gclargesharedheap2' ]]
597 GCLARGESHAREDHEAPFLAG2=true
598 elif [[ $1 = '-gccacheadapt' ]]
600 GCCACHEADAPTFLAG=true
601 elif [[ $1 = '-gccacheadaptpolicy' ]]
603 GCCACHEADAPTPOLICYFLAG=true
604 GCCACHEADAPTPOLICY="$2"
606 elif [[ $1 = '-gccachesampling' ]]
608 GCCACHESAMPLINGFLAG=true
609 elif [[ $1 = '-mgc' ]]
612 JAVAOPTS="$JAVAOPTS -mgc"
613 elif [[ $1 = '-mgcintel' ]]
616 elif [[ $1 = '-objectlockdebug' ]]
618 OBJECTLOCKDEBUGFLAG=true
619 JAVAOPTS="$JAVAOPTS -objectlockdebug"
620 elif [[ $1 = '-gctbldebug' ]]
623 elif [[ $1 = '-dmalloc' ]]
626 elif [[ $1 = '-recover' ]]
629 JAVAOPTS="$JAVAOPTS -task"
630 elif [[ $1 = '-useprofile' ]]
632 JAVAOPTS="$JAVAOPTS -useprofile $2"
634 elif [[ $1 = '-webinterface' ]]
636 JAVAOPTS="$JAVAOPTS -webinterface"
637 elif [[ $1 = '-instructionfailures' ]]
639 JAVAOPTS="$JAVAOPTS -instructionfailures"
640 elif [[ $1 = '-joptimize' ]]
642 JAVAOPTS="$JAVAOPTS -optimize"
643 elif [[ $1 = '-noloop' ]]
645 JAVAOPTS="$JAVAOPTS -noloop"
646 elif [[ $1 = '-dcopts' ]]
648 JAVAOPTS="$JAVAOPTS -dcopts"
649 elif [[ $1 = '-delaycomp' ]]
651 JAVAOPTS="$JAVAOPTS -delaycomp"
652 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
653 elif [[ $1 = '-hybrid' ]]
655 JAVAOPTS="$JAVAOPTS -hybrid"
656 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
657 elif [[ $1 = '-minimize' ]]
659 JAVAOPTS="$JAVAOPTS -minimize"
661 elif [[ $1 = '-ooojava' ]]
665 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
666 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
670 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
672 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
674 elif [[ $1 = '-ssjava' ]]
677 USE_SSJAVA_CLASSPATH=true
678 JAVAOPTS="$JAVAOPTS -ssjava"
680 elif [[ $1 = '-ssjavadebug' ]]
682 JAVAOPTS="$JAVAOPTS -ssjavadebug"
684 elif [[ $1 = '-ssjava-inject-error' ]]
686 USE_SSJAVA_CLASSPATH=true
687 JAVAOPTS="$JAVAOPTS -ssjava-inject-error $2 $3"
691 elif [[ $1 = '-mempool-detect-misuse' ]]
693 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
695 elif [[ $1 = '-heapsize-mb' ]]
697 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
700 elif [[ $1 = '-compiler-heapsize-mb' ]]
702 COMPILER_HEAP_SIZE="$2"
705 elif [[ $1 = '-nostalltr' ]]
707 JAVAOPTS="$JAVAOPTS -nostalltr"
709 elif [[ $1 = '-printlinenum' ]]
711 JAVAOPTS="$JAVAOPTS -printlinenum"
713 elif [[ $1 = '-rcr' ]]
715 JAVAOPTS="$JAVAOPTS -rcr"
717 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
719 elif [[ $1 = '-rcr_debug' ]]
721 JAVAOPTS="$JAVAOPTS -rcr_debug"
724 elif [[ $1 = '-rcr_debug_verbose' ]]
726 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
727 RCR_DEBUG_VERBOSE=true
729 elif [[ $1 = '-debug-deque' ]]
731 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
733 elif [[ $1 = '-nolock' ]]
735 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
737 elif [[ $1 = '-coreprof' ]]
740 JAVAOPTS="$JAVAOPTS -coreprof"
741 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
743 elif [[ $1 = '-coreprof-eventwords' ]]
745 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
748 elif [[ $1 = '-coreprof-checkoverflow' ]]
750 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
752 elif [[ $1 = '-coreprof-enable' ]]
754 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
757 elif [[ $1 = '-mlp' ]]
760 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
761 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
765 elif [[ $1 = '-mlpdebug' ]]
767 JAVAOPTS="$JAVAOPTS -mlpdebug"
769 elif [[ $1 = '-check' ]]
772 JAVAOPTS="$JAVAOPTS -conscheck"
773 elif [[ $1 = '-enable-assertions' ]]
775 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
776 elif [[ $1 = '-specdir' ]]
782 elif [[ $1 = '-debug' ]]
785 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
786 elif [[ $1 = '-rawpath' ]]
789 elif [[ $1 = '-runtimedebug' ]]
791 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
792 elif [[ $1 = '-dsmcaching' ]]
794 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
795 elif [[ $1 = '-rangeprefetch' ]]
797 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
798 elif [[ $1 = '-nooptimize' ]]
800 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
801 elif [[ $1 = '-optimize' ]]
803 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
804 elif [[ $1 = '-thread' ]]
806 JAVAOPTS="$JAVAOPTS -thread"
807 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
809 elif [[ $1 = '-recovery' ]]
811 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
813 elif [[ $1 = '-recoverystats' ]]
815 JAVAOPTS="$JAVAOPTS -recoverystats"
816 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
817 elif [[ $1 = '-distributioninfo' ]]
819 JAVAOPTS="$JAVAOPTS -distributioninfo"
820 elif [[ $1 = '-disall' ]]
822 JAVAOPTS="$JAVAOPTS -disall"
823 elif [[ $1 = '-disstart' ]]
825 JAVAOPTS="$JAVAOPTS -disstart $2"
827 elif [[ $1 = '-noc' ]]
830 elif [[ $1 = '-curdir' ]]
834 elif [[ $1 = '-outputdir' ]]
836 JAVAOPTS="$JAVAOPTS -outputdir $2"
839 SRCFILES="$SRCFILES $1"
845 BUILDDIR="$CURDIR/$tmpbuilddirectory"
847 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
855 if $CHECKFLAG #Generate structure files for repair tool
857 JAVAOPTS="$JAVAOPTS -struct structfile"
862 # for tilera code, generate multicorememsize.h
863 ./generate_memsize.sh ${TILERA_PAGE_SIZE} ${TILERA_PAGE_SIZE_BITS} ${TILERA_NUM_BLOCKS} ${TILERA_NUM_PAGES_PER_BLOCK} ${BUILDDIR}
867 #########################
869 #########################
872 # stuff for OoOJava to mask parts of the base
873 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/OoOJava"
878 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference/"
881 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
885 #base multicore gc files
886 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
888 elif $USE_SSJAVA_CLASSPATH
890 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJava"
893 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
900 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
902 #base bristlecone files
903 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
909 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
913 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
917 #threading java stuff
918 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
922 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
926 # everyone gets this except ssjava!
927 if ! $USE_SSJAVA_CLASSPATH
929 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
931 #########################
933 #########################
936 echo "compiler running in JVM with heap size: ${COMPILER_HEAP_SIZE}MB"
939 # Build bristlecone/java sources
943 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
944 -dir $BUILDDIR $JAVAOPTS $SRCFILES
952 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
953 -dir $BUILDDIR -precise $SRCFILES
960 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
961 -dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
968 # after executing Main, if -justanalyze flag, just exit
969 if $EXITAFTERANALYSIS
976 # Build all of the consistency specs
978 if $CHECKFLAG # CHECKFLAG
981 mkdir $BUILDDIR/specdir
982 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
984 echo > $BUILDDIR/specs
986 # compile specs into C code
987 for i in * # iterate over all directories
989 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
992 cat $BUILDDIR/structfile.struct $i.label > $i.struct
993 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
994 cp size.[c,h] $BUILDDIR/specdir
995 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
996 echo $i >> $BUILDDIR/specs
998 done # iterate over all directories
1002 cd $BUILDDIR/specdir
1004 echo > $BUILDDIR/checkers.h
1005 for i in `cat $BUILDDIR/specs`
1007 gcc -O0 -g -fbounds-check -c $i\_aux.c
1008 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
1012 #build and link everything
1016 RAWDIR="$CURDIR/raw"
1017 MAKEFILE="Makefile.raw"
1023 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
1027 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
1032 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
1036 then # profile version
1037 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
1040 if $ACCURATEPROFILEFLAG
1041 then # accurateprofile version
1042 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
1046 then # useio version
1047 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
1051 then #INTERRUPT version
1052 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
1053 fi #INTERRUPT version
1056 then # useio version
1057 MAKEFILE="$MAKEFILE.io"
1058 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
1060 MAKEFILE="$MAKEFILE.$RAWCONFIG"
1063 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
1064 cp ../Runtime/*.c ./
1065 cp ../Runtime/*.h ./
1066 cp ../Runtime/*.S ./
1067 cp ../Runtime/*.s ./
1068 cp $BAMBOORUNTIME/*.c ./
1069 cp $BAMBOORUNTIME/*.h ./
1070 cp $BAMBOORUNTIME/RAW/*.c ./
1071 cp $BAMBOORUNTIME/RAW/*.h ./
1072 cp $BAMBOORUNTIME/RAW/*.S ./
1073 cp $BAMBOORUNTIME/RAW/*.s ./
1074 cp ../$tmpbuilddirectory/*.c ./
1075 cp ../$tmpbuilddirectory/*.h ./
1081 TILERADIR="$CURDIR/${TILERAOUTPUTDIR}"
1083 then # TILERABMEFLAG
1085 MAKEFILE="Makefile.tilera.$TILERACORES"
1086 #SIMHVC="sim.hvc.$TILERACONFIG"
1087 PCIHVC="pci.hvc.$TILERACORES"
1088 if $TILERA56COREFLAG
1092 elif $TILERAZLINUXFLAG
1093 then # TILERAZLINUXFLAG
1094 TILERA_INDIR="ZLinux"
1095 MAKEFILE="Makefile.tilera.$TILERACONFIG"
1105 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
1107 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
1112 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
1115 if $OBJECTLOCKDEBUGFLAG
1117 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
1120 if $TILERAMEMPROFFLAG
1121 then # not only with 1 core
1122 PCIHVC="$PCIHVC.memprof"
1123 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
1127 then # TILERABMEFLAG
1128 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
1129 elif $TILERAZLINUXFLAG
1130 then # TILERAZLINUXFLAG
1131 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1136 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1141 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1145 then # profile version
1146 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1149 if $ACCURATEPROFILEFLAG
1150 then # accurateprofile version
1151 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1154 if $PROFILEINTERRUPTFLAG
1155 then # profile_interrupt version
1156 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1160 then # useio version
1161 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1165 then #INTERRUPT version
1166 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1167 fi #INTERRUPT version
1171 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1175 then #MULTICOREGC version
1176 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1180 then #MULTICOREGC version
1181 TILERACFLAGS="${TILERACFLAGS} -DPMC_GC -D${GCCORES}"
1185 then #MULTICOREGC version
1186 TILERACFLAGS="${TILERACFLAGS} -DPERFCOUNT"
1190 then #MULTICOREGC version
1191 TILERACFLAGS="${TILERACFLAGS} -DMEMPERFCOUNT"
1195 then # GC_PROFILE version
1196 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1200 then # GC_PROFILE_S version
1201 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1205 then # SMEMLOCAL version
1206 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1210 then # SMEMFIXED version
1211 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1215 then # SMEMMIXED version
1216 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1220 then # SMEMGLOBAL version
1221 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1224 if $GCCACHELOCALFLAG
1225 then # CACHE_LOCAL version
1226 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1230 then # CACHE_RAN version
1231 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1234 if $GCCONTROLLERNEARFLAG
1235 then # CONTROLLER_NEAR version
1236 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1239 if $GCCONTROLLERREMOTEFLAG
1240 then # CONTROLLER_REMOTE version
1241 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1244 if $GCSMALLPAGESIZEFLAG
1245 then # GC_SMALLPAGESIZE version
1246 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1249 if $GCLARGEPAGESIZEFLAG
1250 then # GC_LARGEPAGESIZE version
1251 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1254 if $GCLARGEPAGESIZE2FLAG
1255 then # GC_LARGEPAGESIZE2 version
1256 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1259 if $GCLARGESHAREDHEAPFLAG
1260 then # GC_LARGESHAREDHEAP version
1261 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1264 if $GCSMALLPAGESIZEFLAG2
1265 then # GC_SMALLPAGESIZE2 version
1266 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1269 if $GCLARGESHAREDHEAPFLAG2
1270 then # GC_LARGESHAREDHEAP2 version
1271 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1274 if $GCCACHEADAPTFLAG
1275 then # GC_CACHE_ADAPT version
1276 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1279 if $GCCACHEADAPTPOLICYFLAG
1280 then # GC_CACHE_ADAPT version
1281 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1284 if $GCCACHESAMPLINGFLAG
1285 then # GC_CACHE_ADAPT version
1286 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1289 if $GCCACHECOHERENTFLAG
1290 then # gc cache coherent version
1291 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_COHERENT_ON"
1296 cp $ROBUSTROOT/Tilera/Runtime/PMC/$MAKEFILE ./Makefile
1299 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1301 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1304 then # TILERABMEFLAG
1305 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1306 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1307 if $TILERA56COREFLAG
1309 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1311 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1314 cp ../Runtime/Queue.c ./
1315 cp ../Runtime/file.c ./
1316 cp ../Runtime/math.c ./
1319 cp ../Runtime/object.c ./
1321 cp ../Runtime/GenericHashtable.c ./
1322 cp ../Runtime/SimpleHash.c ./
1323 cp ../Runtime/ObjectHash.c ./
1324 cp ../Runtime/socket.c ./
1325 cp ../Runtime/mem.c ./
1326 cp ../Runtime/GenericHashtable.h ./
1327 cp ../Runtime/mem.h ./
1330 cp ../Runtime/object.h ./
1332 cp ../Runtime/ObjectHash.h ./
1333 cp ../Runtime/Queue.h ./
1334 cp ../Runtime/runtime.h ./
1335 cp ../Runtime/SimpleHash.h ./
1336 cp ../Runtime/objtypes.h ./
1337 cp $BAMBOORUNTIME/*.c ./
1338 cp $BAMBOORUNTIME/*.h ./
1339 cp ../Tilera/Runtime/*.c ./
1340 cp ../Tilera/Runtime/*.h ./
1341 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1342 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1343 if $TILERAZLINUXFLAG
1344 then # TILERAZLINUXFLAG
1345 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1347 #if $TILERAMEMPROFFLAG
1348 #then # TILERAMEMPROFFLAG
1349 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1353 cp ../Tilera/Runtime/MGC/*.c ./
1354 cp ../Tilera/Runtime/MGC/*.h ./
1356 cp ../Tilera/lib/* ./
1357 cp ../$tmpbuilddirectory/*.c ./
1358 cp ../$tmpbuilddirectory/*.h ./
1360 echo $TILERACFLAGS > ./tileracflags.txt
1364 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1367 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1372 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1373 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1375 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1378 FILES="$RUNTIMEFILE \
1379 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1380 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1381 $ROBUSTROOT/Runtime/ObjectHash.c \
1382 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1383 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1384 $ROBUSTROOT/Runtime/math.c \
1385 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1389 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1394 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1399 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1404 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1411 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1412 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"
1414 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1415 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"
1421 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1422 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1429 FILES="$FILES $DSMRUNTIME/sandbox.c"
1431 FILES="$FILES $STMRUNTIME/sandbox.c"
1437 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1442 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1447 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1452 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"
1457 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1458 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1459 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1462 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1468 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1471 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1473 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1476 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1478 if $THREADSIMULATEFLAG
1480 # -lpthread for pthread functions, -lrt for message queue functions
1481 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1487 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1488 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1493 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1498 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1499 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1504 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1508 echo EXTRAOPTIONS=$EXTRAOPTIONS
1512 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1513 -c $tmpbuilddirectory/methods.c -lm
1520 NONMULTICOREOPTS=-DPRECISE_GC
1525 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1526 $tmpbuilddirectory/methods.c $FILES > tmp.c
1529 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1530 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin