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 -disjoint-count-visits for counting visits in the fixed point algorithm to evaluate convergence behavior
54 echo -disjoint-count-graph-elements FILE nodes, edges and states in final graph for main method context
56 echo -do-definite-reach-analysis enable improved precision for disjoint reachability analysis
57 echo -disjoint-disable-global-sweep
58 echo -disjoint-disable-strong-update
59 echo -disjoint-disable-predicates
60 echo -disjoint-summarize-per-class
63 echo -pointsto-check-v-runtime check allocation site of pointer targets at runtime to help verify heap analysis results
65 echo "-mlp <num cores> <max sese age> build mlp code"
66 echo -mlpdebug if mlp, report progress and interim results
69 echo -dsm distributed shared memory
70 echo -abortreaders abort readers immediately
71 echo -trueprob double - probabiltiy of true branch
72 echo -dsmcaching -enable caching in dsm runtime
74 echo BAMBOO Multicore options
75 echo -scheduling do task scheduling
76 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
77 echo "-disall execute to collect whole distribution"
78 echo "-disstart specify the start number of distribution information collection"
79 echo -multicore generate multi-core version binary
80 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
81 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
82 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
83 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
84 echo -printscheduling print out scheduling graphs
85 echo -printschedulesim print out scheduling simulator result graphs
86 echo "-tilera_output_dir specify the output directory for the generated TILERA code"
87 echo "-tilera_bme generate tilera version binary for Bare Mental Environment (should be used together with -multicore"
88 echo "-tilera_zlinux generate tilera version binary for Zero-Overhead Linux with multi-process mode (should be used together with -multicore"
89 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
90 echo "-raw generate raw version binary (should be used together with -multicore)"
91 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
92 echo "-tilera_memprof build the memprof version (should be used together with -tilera_xx) "
93 echo -accurateprofile build with accurate profile information including pre/post task processing info
94 echo -profile_interrupt build with profile information of interrupts
95 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
96 echo -gccachecoherent turns on the cache coherence during gc
97 echo -inputfile enables reading input files in Tilera
99 echo Multicore GC options
100 echo -perfcount performance counters
101 echo -memperfcount Memory performance counters
102 echo -multicoregc generate multi-core binary with garbage collection
103 echo -pmc parallel collector
104 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
105 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
106 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
107 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
108 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
109 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
110 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
111 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
112 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
113 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
114 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
115 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
116 echo "-tilera_page_size set the page size in multicore code"
117 echo "-tilera_page_size_bits set the page size bits in multicore code"
118 echo "-tilera_num_blocks set the total number of blocks in multicore code"
119 echo "-tilera_num_pages_per_block set the number of pages per block in multicore code"
120 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
121 echo -gcprofile build with gcprofile options
122 echo -mgc generate Multicore GC binary without task stuff
123 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
124 echo -gctbldebug generate GC_TBL_DEBUG code
127 echo -ssjava enables SSJava
128 echo -ssjavadebug reports interim results
129 echo -ssjavainfer location type inference
130 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
134 echo -abcclose turnoff array boundary checks
135 echo -builddir setup different build directory
136 echo -robustroot set up the ROBUSTROOT to directory other than default one
137 echo -readset turn on readset
138 echo -mac distributed shared memory mac support
139 echo -check generate check code
140 echo -dmalloc link in dmalloc
141 echo -64bit compile for 64 bit machine
142 echo -32bit compile for 32 bit machine
143 echo -joptimize java compiler optimizations
144 echo -noloop turnoff loop optimizations
145 echo -recover compile task code
146 echo -fastcheck fast checkpointing for Bristlecone
147 echo -specdir directory
148 echo -printflat print out flat representation
149 echo -selfloop task - this task cannot self loop forever
150 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
151 echo -taskstate do task state analysis
152 echo -tagstate do tag state analysis
153 echo -optional enable optional
154 echo -debug generate debug symbols
155 echo -prefetch do prefetch analysis
156 echo -heapsize-mb NUM set output program initial heap size in MB, default is 256
157 echo -compiler-heapsize-mb NUM set heap size in MB for the JVM running the compiler, default is 1500
158 echo -garbagestats Print garbage collection statistics
159 echo -webinterface enable web interface
160 echo -runtimedebug printout runtime debug messages
161 echo "-thread use support for multiple threads"
162 echo "-optimize call gcc with -O9 (optimize)"
163 echo "-nooptimize call gcc with -O0 (do not optimize)"
164 echo -curdir directory
165 echo -mainclass class with main method
167 echo -nojava do not run bristlecone compiler
168 echo -instructionfailures inject code for instructionfailures
169 echo -profile build with profile options
170 echo "-enable-assertions execute assert statements during compilation"
171 echo -justanalyze exit after compiler analyses complete
172 echo -assembly generate assembly
173 echo -recovery compile recovery code
174 echo -dsmtask support work and task class library
175 echo -recoverystats print out recovery record
176 echo -src-after-pp prints source code after preprocessor to tmp.c
177 echo -capture-null-dereferences generates code to warn before derefencing null
178 echo -printlinenum print out line numbers in generated C codes
182 tmpbuilddirectory="tmpbuilddirectory"
185 USE_SSJAVA_CLASSPATH=false
191 ROBUSTROOT=~/research/Robust/src
192 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
193 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
194 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
195 REPAIRROOT=~/research/Repair/RepairCompiler/
212 RCR_DEBUG_VERBOSE=false
218 TILERAZLINUXFLAG=false
219 TILERAMEMPROFFLAG=false
228 ACCURATEPROFILEFLAG=false
229 PROFILEINTERRUPTFLAG=false
232 THREADSIMULATEFLAG=false;
233 MULTICOREGCFLAG=false;
237 GCMEMLOCALFLAG=false;
238 GCMEMFIXEDFLAG=false;
239 GCMEMMIXEDFLAG=false;
240 GCMEMGLOBALFLAG=false;
241 GCCACHELOCALFLAG=false;
242 GCCACHERANFLAG=false;
243 GCCONTROLLERNEARFLAG=false;
244 GCCONTROLLERREMOTEFLAG=false;
245 GCSMALLPAGESIZEFLAG=false;
246 GCLARGEPAGESIZEFLAG=false;
247 GCLARGEPAGESIZE2FLAG=false;
248 GCLARGESHAREDHEAPFLAG=false;
249 GCSMALLPAGESIZEFLAG2=false;
250 GCLARGESHAREDHEAPFLAG2=false;
251 GCCACHEADAPTFLAG=false
252 GCCACHEADAPTPOLICYFLAG=false
253 GCCACHEADAPTPOLICY=''
254 GCCACHESAMPLINGFLAG=false
257 OBJECTLOCKDEBUGFLAG=false
269 EXITAFTERANALYSIS=false
272 TILERAN1COREFLAG=false
273 TILERA56COREFLAG=false
274 TILERAOUTPUTDIR="tilera"
275 TILERA_PAGE_SIZE="0x10000"
276 TILERA_PAGE_SIZE_BITS="16"
277 TILERA_NUM_BLOCKS="20"
278 TILERA_NUM_PAGES_PER_BLOCK="16"
281 GCCACHECOHERENTFLAG=false
282 COMPILER_HEAP_SIZE="1500"
293 if [[ $1 = '-help' ]]
297 elif [[ $1 = '-jni' ]]
300 JAVAOPTS="$JAVAOPTS -jni"
301 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
302 elif [[ $1 = '-justanalyze' ]]
304 EXITAFTERANALYSIS=true
305 elif [[ $1 = '-capture-null-dereferences' ]]
307 JAVAOPTS="$JAVAOPTS -capture-null-dereferences"
308 EXTRAOPTIONS="$EXTRAOPTIONS -DCAPTURE_NULL_DEREFERENCES"
309 elif [[ $1 = '-src-after-pp' ]]
312 elif [[ $1 = '-assembly' ]]
315 elif [[ $1 = '-abortreaders' ]]
318 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
319 JAVAOPTS="$JAVAOPTS -abortreaders"
320 elif [[ $1 = '-sandbox' ]]
323 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
324 JAVAOPTS="$JAVAOPTS -sandbox"
325 elif [[ $1 = '-numa' ]]
327 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
329 elif [[ $1 = '-robustroot' ]]
333 elif [[ $1 = '-builddir' ]]
335 tmpbuilddirectory="$2"
337 elif [[ $1 = '-nojava' ]]
340 elif [[ $1 = '-eventmonitor' ]]
342 JAVAOPTS="$JAVAOPTS -eventmonitor"
344 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
345 elif [[ $1 = '-garbagestats' ]]
347 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
348 elif [[ $1 = '-64bit' ]]
350 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
351 elif [[ $1 = '-32bit' ]]
353 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
354 elif [[ $1 = '-fastcheck' ]]
356 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
357 JAVAOPTS="$JAVAOPTS -fastcheck"
363 elif [[ $1 = '-mainclass' ]]
365 JAVAOPTS="$JAVAOPTS -mainclass $2"
367 elif [[ $1 = '-selfloop' ]]
369 JAVAOPTS="$JAVAOPTS -selfloop $2"
371 elif [[ $1 = '-excprefetch' ]]
373 JAVAOPTS="$JAVAOPTS -excprefetch $2"
375 elif [[ $1 = '-arraypad' ]]
377 JAVAOPTS="$JAVAOPTS -arraypad"
378 elif [[ $1 = '-dsm' ]]
380 JAVAOPTS="$JAVAOPTS -dsm"
382 elif [[ $1 = '-fastmemcpy' ]]
385 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
386 elif [[ $1 = '-singleTM' ]]
388 JAVAOPTS="$JAVAOPTS -singleTM"
389 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
391 elif [[ $1 = '-stmarray' ]]
393 JAVAOPTS="$JAVAOPTS -stmarray"
394 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
396 elif [[ $1 = '-dualview' ]]
398 JAVAOPTS="$JAVAOPTS -dualview"
399 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
401 elif [[ $1 = '-readset' ]]
403 JAVAOPTS="$JAVAOPTS -readset"
404 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
405 elif [[ $1 = '-stmdebug' ]]
407 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
408 elif [[ $1 = '-stmstats' ]]
410 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
411 elif [[ $1 = '-stmlog' ]]
413 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
414 elif [[ $1 = '-prefetch' ]]
416 JAVAOPTS="$JAVAOPTS -prefetch"
417 elif [[ $1 = '-transstats' ]]
419 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
420 elif [[ $1 = '-printflat' ]]
422 JAVAOPTS="$JAVAOPTS -printflat"
423 elif [[ $1 = '-trueprob' ]]
425 JAVAOPTS="$JAVAOPTS -trueprob $2"
427 elif [[ $1 = '-inlineatomic' ]]
429 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
431 elif [[ $1 = '-mac' ]]
433 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
434 elif [[ $1 = '-squeue' ]]
436 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
437 elif [[ $1 = '-corepin' ]]
439 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
441 elif [[ $1 = '-profile' ]]
444 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
445 elif [[ $1 = '-gcprofile' ]]
448 elif [[ $1 = '-gcprofile_s' ]]
451 elif [[ $1 = '-accurateprofile' ]]
453 ACCURATEPROFILEFLAG=true
454 elif [[ $1 = '-profile_interrupt' ]]
456 PROFILEINTERRUPTFLAG=true
457 elif [[ $1 = '-useio' ]]
460 elif [[ $1 = '-gccachecoherent' ]]
462 GCCACHECOHERENTFLAG=true
463 elif [[ $1 = '-taskstate' ]]
465 JAVAOPTS="$JAVAOPTS -taskstate"
466 elif [[ $1 = '-tagstate' ]]
468 JAVAOPTS="$JAVAOPTS -tagstate"
469 elif [[ $1 = '-scheduling' ]]
471 JAVAOPTS="$JAVAOPTS -scheduling"
472 elif [[ $1 = '-multicore' ]]
475 JAVAOPTS="$JAVAOPTS -multicore"
476 elif [[ $1 = '-numcore' ]]
478 JAVAOPTS="$JAVAOPTS -numcore $2"
480 if [[ "$2" -gt "1" ]]
482 TILERAN1COREFLAG=true
483 if [[ "$2" -eq "56" ]]
485 TILERA56COREFLAG=true
489 elif [[ $1 = '-numcore4gc' ]]
491 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
494 elif [[ $1 = '-raw' ]]
497 JAVAOPTS="$JAVAOPTS -raw"
498 elif [[ $1 = '-tilera_output_dir' ]]
502 elif [[ $1 = '-tilera_page_size' ]]
504 TILERA_PAGE_SIZE="$2"
506 elif [[ $1 = '-tilera_page_size_bits' ]]
508 TILERA_PAGE_SIZE_BITS="$2"
510 elif [[ $1 = '-tilera_num_blocks' ]]
512 TILERA_NUM_BLOCKS="$2"
514 elif [[ $1 = '-tilera_num_pages_per_block' ]]
516 TILERA_NUM_PAGES_PER_BLOCK="$2"
518 elif [[ $1 = '-tilera_bme' ]]
522 elif [[ $1 = '-tilera_zlinux' ]]
525 TILERAZLINUXFLAG=true
526 elif [[ $1 = '-tilera_memprof' ]]
528 TILERAMEMPROFFLAG=true
529 elif [[ $1 = '-tileraconfig' ]]
533 elif [[ $1 = '-rawconfig' ]]
537 elif [[ $1 = '-interrupt' ]]
540 elif [[ $1 = '-abcclose' ]]
542 JAVAOPTS="$JAVAOPTS -abcclose"
543 elif [[ $1 = '-optional' ]]
545 JAVAOPTS="$JAVAOPTS -optional"
547 elif [[ $1 = '-multicoregc' ]]
550 JAVAOPTS="$JAVAOPTS -multicoregc"
551 elif [[ $1 = '-pmc' ]]
554 JAVAOPTS="$JAVAOPTS -pmc"
555 elif [[ $1 = '-perfcount' ]]
558 elif [[ $1 = '-memperfcount' ]]
561 elif [[ $1 = '-gcmem_local' ]]
564 elif [[ $1 = '-gcmem_fixed' ]]
567 elif [[ $1 = '-gcmem_mixed' ]]
570 elif [[ $1 = '-gcmem_global' ]]
573 elif [[ $1 = '-gccache_local' ]]
575 GCCACHELOCALFLAG=true
576 elif [[ $1 = '-gccache_ran' ]]
579 elif [[ $1 = '-gccontroller_near' ]]
581 GCCONTROLLERNEARFLAG=true
582 elif [[ $1 = '-gccontroller_remote' ]]
584 GCCONTROLLERREMOTEFLAG=true
585 elif [[ $1 = '-gcsmallpagesize' ]]
587 GCSMALLPAGESIZEFLAG=true
588 elif [[ $1 = '-gcsmallpagesize2' ]]
590 GCSMALLPAGESIZEFLAG2=true
591 elif [[ $1 = '-gclargepagesize' ]]
593 GCLARGEPAGESIZEFLAG=true
594 elif [[ $1 = '-gclargepagesize2' ]]
596 GCLARGEPAGESIZE2FLAG=true
597 elif [[ $1 = '-gclargesharedheap' ]]
599 GCLARGESHAREDHEAPFLAG=true
600 elif [[ $1 = '-gclargesharedheap2' ]]
602 GCLARGESHAREDHEAPFLAG2=true
603 elif [[ $1 = '-gccacheadapt' ]]
605 GCCACHEADAPTFLAG=true
606 elif [[ $1 = '-gccacheadaptpolicy' ]]
608 GCCACHEADAPTPOLICYFLAG=true
609 GCCACHEADAPTPOLICY="$2"
611 elif [[ $1 = '-gccachesampling' ]]
613 GCCACHESAMPLINGFLAG=true
614 elif [[ $1 = '-mgc' ]]
617 JAVAOPTS="$JAVAOPTS -mgc"
618 elif [[ $1 = '-inputfile' ]]
621 INPUTFILES="$INPUTFILES $2"
623 elif [[ $1 = '-mgcintel' ]]
626 elif [[ $1 = '-objectlockdebug' ]]
628 OBJECTLOCKDEBUGFLAG=true
629 JAVAOPTS="$JAVAOPTS -objectlockdebug"
630 elif [[ $1 = '-gctbldebug' ]]
633 elif [[ $1 = '-dmalloc' ]]
636 elif [[ $1 = '-recover' ]]
639 JAVAOPTS="$JAVAOPTS -task"
640 elif [[ $1 = '-useprofile' ]]
642 JAVAOPTS="$JAVAOPTS -useprofile $2"
644 elif [[ $1 = '-webinterface' ]]
646 JAVAOPTS="$JAVAOPTS -webinterface"
647 elif [[ $1 = '-instructionfailures' ]]
649 JAVAOPTS="$JAVAOPTS -instructionfailures"
650 elif [[ $1 = '-joptimize' ]]
652 JAVAOPTS="$JAVAOPTS -optimize"
653 elif [[ $1 = '-noloop' ]]
655 JAVAOPTS="$JAVAOPTS -noloop"
656 elif [[ $1 = '-dcopts' ]]
658 JAVAOPTS="$JAVAOPTS -dcopts"
659 elif [[ $1 = '-delaycomp' ]]
661 JAVAOPTS="$JAVAOPTS -delaycomp"
662 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
663 elif [[ $1 = '-hybrid' ]]
665 JAVAOPTS="$JAVAOPTS -hybrid"
666 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
667 elif [[ $1 = '-minimize' ]]
669 JAVAOPTS="$JAVAOPTS -minimize"
671 elif [[ $1 = '-ooojava' ]]
675 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
676 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
680 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
682 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
684 elif [[ $1 = '-ssjava' ]]
687 USE_SSJAVA_CLASSPATH=true
688 JAVAOPTS="$JAVAOPTS -ssjava"
690 elif [[ $1 = '-ssjavadebug' ]]
692 JAVAOPTS="$JAVAOPTS -ssjavadebug"
694 elif [[ $1 = '-ssjavainfer' ]]
696 JAVAOPTS="$JAVAOPTS -ssjavainfer"
698 elif [[ $1 = '-ssjava-inject-error' ]]
700 USE_SSJAVA_CLASSPATH=true
701 JAVAOPTS="$JAVAOPTS -ssjava-inject-error $2 $3"
705 elif [[ $1 = '-mempool-detect-misuse' ]]
707 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
709 elif [[ $1 = '-heapsize-mb' ]]
711 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
714 elif [[ $1 = '-compiler-heapsize-mb' ]]
716 COMPILER_HEAP_SIZE="$2"
719 elif [[ $1 = '-nostalltr' ]]
721 JAVAOPTS="$JAVAOPTS -nostalltr"
723 elif [[ $1 = '-printlinenum' ]]
725 JAVAOPTS="$JAVAOPTS -printlinenum"
727 elif [[ $1 = '-rcr' ]]
729 JAVAOPTS="$JAVAOPTS -rcr"
731 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
733 elif [[ $1 = '-rcr_debug' ]]
735 JAVAOPTS="$JAVAOPTS -rcr_debug"
738 elif [[ $1 = '-rcr_debug_verbose' ]]
740 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
741 RCR_DEBUG_VERBOSE=true
743 elif [[ $1 = '-debug-deque' ]]
745 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
747 elif [[ $1 = '-nolock' ]]
749 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
751 elif [[ $1 = '-coreprof' ]]
754 JAVAOPTS="$JAVAOPTS -coreprof"
755 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
757 elif [[ $1 = '-coreprof-eventwords' ]]
759 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
762 elif [[ $1 = '-coreprof-checkoverflow' ]]
764 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
766 elif [[ $1 = '-coreprof-enable' ]]
768 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
771 elif [[ $1 = '-mlp' ]]
774 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
775 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
779 elif [[ $1 = '-mlpdebug' ]]
781 JAVAOPTS="$JAVAOPTS -mlpdebug"
783 elif [[ $1 = '-check' ]]
786 JAVAOPTS="$JAVAOPTS -conscheck"
787 elif [[ $1 = '-enable-assertions' ]]
789 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
790 elif [[ $1 = '-specdir' ]]
796 elif [[ $1 = '-debug' ]]
799 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
800 elif [[ $1 = '-rawpath' ]]
803 elif [[ $1 = '-runtimedebug' ]]
805 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
806 elif [[ $1 = '-dsmcaching' ]]
808 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
809 elif [[ $1 = '-rangeprefetch' ]]
811 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
812 elif [[ $1 = '-nooptimize' ]]
814 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
815 elif [[ $1 = '-optimize' ]]
817 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
818 elif [[ $1 = '-thread' ]]
820 JAVAOPTS="$JAVAOPTS -thread"
821 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
823 elif [[ $1 = '-recovery' ]]
825 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
827 elif [[ $1 = '-recoverystats' ]]
829 JAVAOPTS="$JAVAOPTS -recoverystats"
830 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
831 elif [[ $1 = '-distributioninfo' ]]
833 JAVAOPTS="$JAVAOPTS -distributioninfo"
834 elif [[ $1 = '-disall' ]]
836 JAVAOPTS="$JAVAOPTS -disall"
837 elif [[ $1 = '-disstart' ]]
839 JAVAOPTS="$JAVAOPTS -disstart $2"
841 elif [[ $1 = '-noc' ]]
844 elif [[ $1 = '-curdir' ]]
848 elif [[ $1 = '-outputdir' ]]
850 JAVAOPTS="$JAVAOPTS -outputdir $2"
853 SRCFILES="$SRCFILES $1"
859 BUILDDIR="$CURDIR/$tmpbuilddirectory"
861 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
869 if $CHECKFLAG #Generate structure files for repair tool
871 JAVAOPTS="$JAVAOPTS -struct structfile"
876 # for tilera code, generate multicorememsize.h
877 ./generate_memsize.sh ${TILERA_PAGE_SIZE} ${TILERA_PAGE_SIZE_BITS} ${TILERA_NUM_BLOCKS} ${TILERA_NUM_PAGES_PER_BLOCK} ${BUILDDIR}
881 #########################
883 #########################
886 # stuff for OoOJava to mask parts of the base
887 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/OoOJava"
892 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference/"
895 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
899 #base multicore gc files
900 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
902 elif $USE_SSJAVA_CLASSPATH
904 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJava"
907 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
914 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
916 #base bristlecone files
917 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
923 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
927 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
931 #threading java stuff
932 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
936 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
940 # everyone gets this except ssjava!
941 if ! $USE_SSJAVA_CLASSPATH
943 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
945 #########################
947 #########################
950 echo "compiler running in JVM with heap size: ${COMPILER_HEAP_SIZE}MB"
953 # Build bristlecone/java sources
957 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
958 -dir $BUILDDIR $JAVAOPTS $SRCFILES
966 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
967 -dir $BUILDDIR -precise $SRCFILES
974 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
975 -dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
982 # transfer the input files
986 ./ourjavac -cp ../cup:.:$(CLASSPATH) Util/InputFileTranslator.java
987 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m -classpath $ROBUSTROOT Util.InputFileTranslator \
988 -dir $BUILDDIR $INPUTFILES
993 # after executing Main, if -justanalyze flag, just exit
994 if $EXITAFTERANALYSIS
1001 # Build all of the consistency specs
1003 if $CHECKFLAG # CHECKFLAG
1006 mkdir $BUILDDIR/specdir
1007 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
1009 echo > $BUILDDIR/specs
1011 # compile specs into C code
1012 for i in * # iterate over all directories
1014 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
1017 cat $BUILDDIR/structfile.struct $i.label > $i.struct
1018 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
1019 cp size.[c,h] $BUILDDIR/specdir
1020 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
1021 echo $i >> $BUILDDIR/specs
1023 done # iterate over all directories
1027 cd $BUILDDIR/specdir
1029 echo > $BUILDDIR/checkers.h
1030 for i in `cat $BUILDDIR/specs`
1032 gcc -O0 -g -fbounds-check -c $i\_aux.c
1033 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
1037 #build and link everything
1041 RAWDIR="$CURDIR/raw"
1042 MAKEFILE="Makefile.raw"
1048 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
1052 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
1057 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
1061 then # profile version
1062 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
1065 if $ACCURATEPROFILEFLAG
1066 then # accurateprofile version
1067 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
1071 then # useio version
1072 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
1076 then #INTERRUPT version
1077 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
1078 fi #INTERRUPT version
1081 then # useio version
1082 MAKEFILE="$MAKEFILE.io"
1083 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
1085 MAKEFILE="$MAKEFILE.$RAWCONFIG"
1088 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
1089 cp ../Runtime/*.c ./
1090 cp ../Runtime/*.h ./
1091 cp ../Runtime/*.S ./
1092 cp ../Runtime/*.s ./
1093 cp $BAMBOORUNTIME/*.c ./
1094 cp $BAMBOORUNTIME/*.h ./
1095 cp $BAMBOORUNTIME/RAW/*.c ./
1096 cp $BAMBOORUNTIME/RAW/*.h ./
1097 cp $BAMBOORUNTIME/RAW/*.S ./
1098 cp $BAMBOORUNTIME/RAW/*.s ./
1099 cp ../$tmpbuilddirectory/*.c ./
1100 cp ../$tmpbuilddirectory/*.h ./
1106 TILERADIR="$CURDIR/${TILERAOUTPUTDIR}"
1108 then # TILERABMEFLAG
1110 MAKEFILE="Makefile.tilera.$TILERACORES"
1111 #SIMHVC="sim.hvc.$TILERACONFIG"
1112 PCIHVC="pci.hvc.$TILERACORES"
1113 if $TILERA56COREFLAG
1117 elif $TILERAZLINUXFLAG
1118 then # TILERAZLINUXFLAG
1119 TILERA_INDIR="ZLinux"
1120 MAKEFILE="Makefile.tilera.$TILERACONFIG"
1130 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
1132 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
1137 TILERACFLAGS="${TILERACFLAGS} -DINPUTFILE"
1142 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
1145 if $OBJECTLOCKDEBUGFLAG
1147 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
1150 if $TILERAMEMPROFFLAG
1151 then # not only with 1 core
1152 PCIHVC="$PCIHVC.memprof"
1153 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
1157 then # TILERABMEFLAG
1158 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
1159 elif $TILERAZLINUXFLAG
1160 then # TILERAZLINUXFLAG
1161 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1166 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1171 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1175 then # profile version
1176 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1179 if $ACCURATEPROFILEFLAG
1180 then # accurateprofile version
1181 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1184 if $PROFILEINTERRUPTFLAG
1185 then # profile_interrupt version
1186 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1190 then # useio version
1191 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1195 then #INTERRUPT version
1196 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1197 fi #INTERRUPT version
1201 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1205 then #MULTICOREGC version
1206 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1210 then #MULTICOREGC version
1211 TILERACFLAGS="${TILERACFLAGS} -DPMC_GC -D${GCCORES}"
1215 then #MULTICOREGC version
1216 TILERACFLAGS="${TILERACFLAGS} -DPERFCOUNT"
1220 then #MULTICOREGC version
1221 TILERACFLAGS="${TILERACFLAGS} -DMEMPERFCOUNT"
1225 then # GC_PROFILE version
1226 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1230 then # GC_PROFILE_S version
1231 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1235 then # SMEMLOCAL version
1236 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1240 then # SMEMFIXED version
1241 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1245 then # SMEMMIXED version
1246 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1250 then # SMEMGLOBAL version
1251 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1254 if $GCCACHELOCALFLAG
1255 then # CACHE_LOCAL version
1256 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1260 then # CACHE_RAN version
1261 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1264 if $GCCONTROLLERNEARFLAG
1265 then # CONTROLLER_NEAR version
1266 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1269 if $GCCONTROLLERREMOTEFLAG
1270 then # CONTROLLER_REMOTE version
1271 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1274 if $GCSMALLPAGESIZEFLAG
1275 then # GC_SMALLPAGESIZE version
1276 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1279 if $GCLARGEPAGESIZEFLAG
1280 then # GC_LARGEPAGESIZE version
1281 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1284 if $GCLARGEPAGESIZE2FLAG
1285 then # GC_LARGEPAGESIZE2 version
1286 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1289 if $GCLARGESHAREDHEAPFLAG
1290 then # GC_LARGESHAREDHEAP version
1291 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1294 if $GCSMALLPAGESIZEFLAG2
1295 then # GC_SMALLPAGESIZE2 version
1296 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1299 if $GCLARGESHAREDHEAPFLAG2
1300 then # GC_LARGESHAREDHEAP2 version
1301 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1304 if $GCCACHEADAPTFLAG
1305 then # GC_CACHE_ADAPT version
1306 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1309 if $GCCACHEADAPTPOLICYFLAG
1310 then # GC_CACHE_ADAPT version
1311 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1314 if $GCCACHESAMPLINGFLAG
1315 then # GC_CACHE_ADAPT version
1316 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1319 if $GCCACHECOHERENTFLAG
1320 then # gc cache coherent version
1321 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_COHERENT_ON"
1326 cp $ROBUSTROOT/Tilera/Runtime/PMC/$MAKEFILE ./Makefile
1329 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1331 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1334 then # TILERABMEFLAG
1335 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1336 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1337 if $TILERA56COREFLAG
1339 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1341 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1344 cp ../Runtime/Queue.c ./
1345 cp ../Runtime/file.c ./
1346 cp ../Runtime/math.c ./
1349 cp ../Runtime/object.c ./
1351 cp ../Runtime/GenericHashtable.c ./
1352 cp ../Runtime/SimpleHash.c ./
1353 cp ../Runtime/ObjectHash.c ./
1354 cp ../Runtime/socket.c ./
1355 cp ../Runtime/mem.c ./
1356 cp ../Runtime/GenericHashtable.h ./
1357 cp ../Runtime/mem.h ./
1360 cp ../Runtime/object.h ./
1362 cp ../Runtime/ObjectHash.h ./
1363 cp ../Runtime/Queue.h ./
1364 cp ../Runtime/runtime.h ./
1365 cp ../Runtime/SimpleHash.h ./
1366 cp ../Runtime/objtypes.h ./
1367 cp $BAMBOORUNTIME/*.c ./
1368 cp $BAMBOORUNTIME/*.h ./
1369 cp ../Tilera/Runtime/*.c ./
1370 cp ../Tilera/Runtime/*.h ./
1371 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1372 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1373 if $TILERAZLINUXFLAG
1374 then # TILERAZLINUXFLAG
1375 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1377 #if $TILERAMEMPROFFLAG
1378 #then # TILERAMEMPROFFLAG
1379 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1383 cp ../Tilera/Runtime/MGC/*.c ./
1384 cp ../Tilera/Runtime/MGC/*.h ./
1386 cp ../Tilera/lib/* ./
1387 cp ../$tmpbuilddirectory/*.c ./
1388 cp ../$tmpbuilddirectory/*.h ./
1390 echo $TILERACFLAGS > ./tileracflags.txt
1394 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1397 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1402 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1403 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1405 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1408 FILES="$RUNTIMEFILE \
1409 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1410 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1411 $ROBUSTROOT/Runtime/ObjectHash.c \
1412 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1413 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1414 $ROBUSTROOT/Runtime/math.c \
1415 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1419 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1424 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1429 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1434 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1441 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1442 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"
1444 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1445 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"
1451 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1452 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1459 FILES="$FILES $DSMRUNTIME/sandbox.c"
1461 FILES="$FILES $STMRUNTIME/sandbox.c"
1467 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1472 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1477 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1482 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"
1487 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1488 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1489 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1492 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1498 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1501 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1503 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1506 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1508 if $THREADSIMULATEFLAG
1510 # -lpthread for pthread functions, -lrt for message queue functions
1511 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1517 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1518 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1523 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1528 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1529 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1534 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1538 echo EXTRAOPTIONS=$EXTRAOPTIONS
1542 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1543 -c $tmpbuilddirectory/methods.c -lm
1550 NONMULTICOREOPTS=-DPRECISE_GC
1555 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1556 $tmpbuilddirectory/methods.c $FILES > tmp.c
1559 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1560 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin