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
98 echo Multicore GC options
99 echo -perfcount performance counters
100 echo -memperfcount Memory performance counters
101 echo -multicoregc generate multi-core binary with garbage collection
102 echo -pmc parallel collector
103 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
104 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
105 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
106 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
107 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
108 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
109 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
110 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
111 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
112 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
113 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
114 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
115 echo "-tilera_page_size set the page size in multicore code"
116 echo "-tilera_page_size_bits set the page size bits in multicore code"
117 echo "-tilera_num_blocks set the total number of blocks in multicore code"
118 echo "-tilera_num_pages_per_block set the number of pages per block in multicore code"
119 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
120 echo -gcprofile build with gcprofile options
121 echo -mgc generate Multicore GC binary without task stuff
122 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
123 echo -gctbldebug generate GC_TBL_DEBUG code
126 echo -ssjava enables SSJava
127 echo -ssjavadebug reports interim results
128 echo -ssjavainfer location type inference
129 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
133 echo -abcclose turnoff array boundary checks
134 echo -builddir setup different build directory
135 echo -robustroot set up the ROBUSTROOT to directory other than default one
136 echo -readset turn on readset
137 echo -mac distributed shared memory mac support
138 echo -check generate check code
139 echo -dmalloc link in dmalloc
140 echo -64bit compile for 64 bit machine
141 echo -32bit compile for 32 bit machine
142 echo -joptimize java compiler optimizations
143 echo -noloop turnoff loop optimizations
144 echo -recover compile task code
145 echo -fastcheck fast checkpointing for Bristlecone
146 echo -specdir directory
147 echo -printflat print out flat representation
148 echo -selfloop task - this task cannot self loop forever
149 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
150 echo -taskstate do task state analysis
151 echo -tagstate do tag state analysis
152 echo -optional enable optional
153 echo -debug generate debug symbols
154 echo -prefetch do prefetch analysis
155 echo -heapsize-mb NUM set output program initial heap size in MB, default is 256
156 echo -compiler-heapsize-mb NUM set heap size in MB for the JVM running the compiler, default is 1500
157 echo -garbagestats Print garbage collection statistics
158 echo -webinterface enable web interface
159 echo -runtimedebug printout runtime debug messages
160 echo "-thread use support for multiple threads"
161 echo "-optimize call gcc with -O9 (optimize)"
162 echo "-nooptimize call gcc with -O0 (do not optimize)"
163 echo -curdir directory
164 echo -mainclass class with main method
166 echo -nojava do not run bristlecone compiler
167 echo -instructionfailures inject code for instructionfailures
168 echo -profile build with profile options
169 echo "-enable-assertions execute assert statements during compilation"
170 echo -justanalyze exit after compiler analyses complete
171 echo -assembly generate assembly
172 echo -recovery compile recovery code
173 echo -dsmtask support work and task class library
174 echo -recoverystats print out recovery record
175 echo -src-after-pp prints source code after preprocessor to tmp.c
176 echo -capture-null-dereferences generates code to warn before derefencing null
177 echo -printlinenum print out line numbers in generated C codes
181 tmpbuilddirectory="tmpbuilddirectory"
184 USE_SSJAVA_CLASSPATH=false
190 ROBUSTROOT=~/research/Robust/src
191 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
192 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
193 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
194 REPAIRROOT=~/research/Repair/RepairCompiler/
211 RCR_DEBUG_VERBOSE=false
217 TILERAZLINUXFLAG=false
218 TILERAMEMPROFFLAG=false
227 ACCURATEPROFILEFLAG=false
228 PROFILEINTERRUPTFLAG=false
231 THREADSIMULATEFLAG=false;
232 MULTICOREGCFLAG=false;
236 GCMEMLOCALFLAG=false;
237 GCMEMFIXEDFLAG=false;
238 GCMEMMIXEDFLAG=false;
239 GCMEMGLOBALFLAG=false;
240 GCCACHELOCALFLAG=false;
241 GCCACHERANFLAG=false;
242 GCCONTROLLERNEARFLAG=false;
243 GCCONTROLLERREMOTEFLAG=false;
244 GCSMALLPAGESIZEFLAG=false;
245 GCLARGEPAGESIZEFLAG=false;
246 GCLARGEPAGESIZE2FLAG=false;
247 GCLARGESHAREDHEAPFLAG=false;
248 GCSMALLPAGESIZEFLAG2=false;
249 GCLARGESHAREDHEAPFLAG2=false;
250 GCCACHEADAPTFLAG=false
251 GCCACHEADAPTPOLICYFLAG=false
252 GCCACHEADAPTPOLICY=''
253 GCCACHESAMPLINGFLAG=false
256 OBJECTLOCKDEBUGFLAG=false
268 EXITAFTERANALYSIS=false
271 TILERAN1COREFLAG=false
272 TILERA56COREFLAG=false
273 TILERAOUTPUTDIR="tilera"
274 TILERA_PAGE_SIZE="0x10000"
275 TILERA_PAGE_SIZE_BITS="16"
276 TILERA_NUM_BLOCKS="20"
277 TILERA_NUM_PAGES_PER_BLOCK="16"
278 GCCACHECOHERENTFLAG=false
279 COMPILER_HEAP_SIZE="1500"
290 if [[ $1 = '-help' ]]
294 elif [[ $1 = '-jni' ]]
297 JAVAOPTS="$JAVAOPTS -jni"
298 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
299 elif [[ $1 = '-justanalyze' ]]
301 EXITAFTERANALYSIS=true
302 elif [[ $1 = '-capture-null-dereferences' ]]
304 JAVAOPTS="$JAVAOPTS -capture-null-dereferences"
305 EXTRAOPTIONS="$EXTRAOPTIONS -DCAPTURE_NULL_DEREFERENCES"
306 elif [[ $1 = '-src-after-pp' ]]
309 elif [[ $1 = '-assembly' ]]
312 elif [[ $1 = '-abortreaders' ]]
315 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
316 JAVAOPTS="$JAVAOPTS -abortreaders"
317 elif [[ $1 = '-sandbox' ]]
320 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
321 JAVAOPTS="$JAVAOPTS -sandbox"
322 elif [[ $1 = '-numa' ]]
324 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
326 elif [[ $1 = '-robustroot' ]]
330 elif [[ $1 = '-builddir' ]]
332 tmpbuilddirectory="$2"
334 elif [[ $1 = '-nojava' ]]
337 elif [[ $1 = '-eventmonitor' ]]
339 JAVAOPTS="$JAVAOPTS -eventmonitor"
341 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
342 elif [[ $1 = '-garbagestats' ]]
344 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
345 elif [[ $1 = '-64bit' ]]
347 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
348 elif [[ $1 = '-32bit' ]]
350 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
351 elif [[ $1 = '-fastcheck' ]]
353 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
354 JAVAOPTS="$JAVAOPTS -fastcheck"
360 elif [[ $1 = '-mainclass' ]]
362 JAVAOPTS="$JAVAOPTS -mainclass $2"
364 elif [[ $1 = '-selfloop' ]]
366 JAVAOPTS="$JAVAOPTS -selfloop $2"
368 elif [[ $1 = '-excprefetch' ]]
370 JAVAOPTS="$JAVAOPTS -excprefetch $2"
372 elif [[ $1 = '-arraypad' ]]
374 JAVAOPTS="$JAVAOPTS -arraypad"
375 elif [[ $1 = '-dsm' ]]
377 JAVAOPTS="$JAVAOPTS -dsm"
379 elif [[ $1 = '-fastmemcpy' ]]
382 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
383 elif [[ $1 = '-singleTM' ]]
385 JAVAOPTS="$JAVAOPTS -singleTM"
386 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
388 elif [[ $1 = '-stmarray' ]]
390 JAVAOPTS="$JAVAOPTS -stmarray"
391 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
393 elif [[ $1 = '-dualview' ]]
395 JAVAOPTS="$JAVAOPTS -dualview"
396 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
398 elif [[ $1 = '-readset' ]]
400 JAVAOPTS="$JAVAOPTS -readset"
401 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
402 elif [[ $1 = '-stmdebug' ]]
404 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
405 elif [[ $1 = '-stmstats' ]]
407 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
408 elif [[ $1 = '-stmlog' ]]
410 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
411 elif [[ $1 = '-prefetch' ]]
413 JAVAOPTS="$JAVAOPTS -prefetch"
414 elif [[ $1 = '-transstats' ]]
416 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
417 elif [[ $1 = '-printflat' ]]
419 JAVAOPTS="$JAVAOPTS -printflat"
420 elif [[ $1 = '-trueprob' ]]
422 JAVAOPTS="$JAVAOPTS -trueprob $2"
424 elif [[ $1 = '-inlineatomic' ]]
426 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
428 elif [[ $1 = '-mac' ]]
430 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
431 elif [[ $1 = '-squeue' ]]
433 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
434 elif [[ $1 = '-corepin' ]]
436 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
438 elif [[ $1 = '-profile' ]]
441 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
442 elif [[ $1 = '-gcprofile' ]]
445 elif [[ $1 = '-gcprofile_s' ]]
448 elif [[ $1 = '-accurateprofile' ]]
450 ACCURATEPROFILEFLAG=true
451 elif [[ $1 = '-profile_interrupt' ]]
453 PROFILEINTERRUPTFLAG=true
454 elif [[ $1 = '-useio' ]]
457 elif [[ $1 = '-gccachecoherent' ]]
459 GCCACHECOHERENTFLAG=true
460 elif [[ $1 = '-taskstate' ]]
462 JAVAOPTS="$JAVAOPTS -taskstate"
463 elif [[ $1 = '-tagstate' ]]
465 JAVAOPTS="$JAVAOPTS -tagstate"
466 elif [[ $1 = '-scheduling' ]]
468 JAVAOPTS="$JAVAOPTS -scheduling"
469 elif [[ $1 = '-multicore' ]]
472 JAVAOPTS="$JAVAOPTS -multicore"
473 elif [[ $1 = '-numcore' ]]
475 JAVAOPTS="$JAVAOPTS -numcore $2"
477 if [[ "$2" -gt "1" ]]
479 TILERAN1COREFLAG=true
480 if [[ "$2" -eq "56" ]]
482 TILERA56COREFLAG=true
486 elif [[ $1 = '-numcore4gc' ]]
488 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
491 elif [[ $1 = '-raw' ]]
494 JAVAOPTS="$JAVAOPTS -raw"
495 elif [[ $1 = '-tilera_output_dir' ]]
499 elif [[ $1 = '-tilera_page_size' ]]
501 TILERA_PAGE_SIZE="$2"
503 elif [[ $1 = '-tilera_page_size_bits' ]]
505 TILERA_PAGE_SIZE_BITS="$2"
507 elif [[ $1 = '-tilera_num_blocks' ]]
509 TILERA_NUM_BLOCKS="$2"
511 elif [[ $1 = '-tilera_num_pages_per_block' ]]
513 TILERA_NUM_PAGES_PER_BLOCK="$2"
515 elif [[ $1 = '-tilera_bme' ]]
519 elif [[ $1 = '-tilera_zlinux' ]]
522 TILERAZLINUXFLAG=true
523 elif [[ $1 = '-tilera_memprof' ]]
525 TILERAMEMPROFFLAG=true
526 elif [[ $1 = '-tileraconfig' ]]
530 elif [[ $1 = '-rawconfig' ]]
534 elif [[ $1 = '-interrupt' ]]
537 elif [[ $1 = '-abcclose' ]]
539 JAVAOPTS="$JAVAOPTS -abcclose"
540 elif [[ $1 = '-optional' ]]
542 JAVAOPTS="$JAVAOPTS -optional"
544 elif [[ $1 = '-multicoregc' ]]
547 JAVAOPTS="$JAVAOPTS -multicoregc"
548 elif [[ $1 = '-pmc' ]]
551 JAVAOPTS="$JAVAOPTS -pmc"
552 elif [[ $1 = '-perfcount' ]]
555 elif [[ $1 = '-memperfcount' ]]
558 elif [[ $1 = '-gcmem_local' ]]
561 elif [[ $1 = '-gcmem_fixed' ]]
564 elif [[ $1 = '-gcmem_mixed' ]]
567 elif [[ $1 = '-gcmem_global' ]]
570 elif [[ $1 = '-gccache_local' ]]
572 GCCACHELOCALFLAG=true
573 elif [[ $1 = '-gccache_ran' ]]
576 elif [[ $1 = '-gccontroller_near' ]]
578 GCCONTROLLERNEARFLAG=true
579 elif [[ $1 = '-gccontroller_remote' ]]
581 GCCONTROLLERREMOTEFLAG=true
582 elif [[ $1 = '-gcsmallpagesize' ]]
584 GCSMALLPAGESIZEFLAG=true
585 elif [[ $1 = '-gcsmallpagesize2' ]]
587 GCSMALLPAGESIZEFLAG2=true
588 elif [[ $1 = '-gclargepagesize' ]]
590 GCLARGEPAGESIZEFLAG=true
591 elif [[ $1 = '-gclargepagesize2' ]]
593 GCLARGEPAGESIZE2FLAG=true
594 elif [[ $1 = '-gclargesharedheap' ]]
596 GCLARGESHAREDHEAPFLAG=true
597 elif [[ $1 = '-gclargesharedheap2' ]]
599 GCLARGESHAREDHEAPFLAG2=true
600 elif [[ $1 = '-gccacheadapt' ]]
602 GCCACHEADAPTFLAG=true
603 elif [[ $1 = '-gccacheadaptpolicy' ]]
605 GCCACHEADAPTPOLICYFLAG=true
606 GCCACHEADAPTPOLICY="$2"
608 elif [[ $1 = '-gccachesampling' ]]
610 GCCACHESAMPLINGFLAG=true
611 elif [[ $1 = '-mgc' ]]
614 JAVAOPTS="$JAVAOPTS -mgc"
615 elif [[ $1 = '-mgcintel' ]]
618 elif [[ $1 = '-objectlockdebug' ]]
620 OBJECTLOCKDEBUGFLAG=true
621 JAVAOPTS="$JAVAOPTS -objectlockdebug"
622 elif [[ $1 = '-gctbldebug' ]]
625 elif [[ $1 = '-dmalloc' ]]
628 elif [[ $1 = '-recover' ]]
631 JAVAOPTS="$JAVAOPTS -task"
632 elif [[ $1 = '-useprofile' ]]
634 JAVAOPTS="$JAVAOPTS -useprofile $2"
636 elif [[ $1 = '-webinterface' ]]
638 JAVAOPTS="$JAVAOPTS -webinterface"
639 elif [[ $1 = '-instructionfailures' ]]
641 JAVAOPTS="$JAVAOPTS -instructionfailures"
642 elif [[ $1 = '-joptimize' ]]
644 JAVAOPTS="$JAVAOPTS -optimize"
645 elif [[ $1 = '-noloop' ]]
647 JAVAOPTS="$JAVAOPTS -noloop"
648 elif [[ $1 = '-dcopts' ]]
650 JAVAOPTS="$JAVAOPTS -dcopts"
651 elif [[ $1 = '-delaycomp' ]]
653 JAVAOPTS="$JAVAOPTS -delaycomp"
654 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
655 elif [[ $1 = '-hybrid' ]]
657 JAVAOPTS="$JAVAOPTS -hybrid"
658 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
659 elif [[ $1 = '-minimize' ]]
661 JAVAOPTS="$JAVAOPTS -minimize"
663 elif [[ $1 = '-ooojava' ]]
667 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
668 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
672 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
674 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
676 elif [[ $1 = '-ssjava' ]]
679 USE_SSJAVA_CLASSPATH=true
680 JAVAOPTS="$JAVAOPTS -ssjava"
682 elif [[ $1 = '-ssjavadebug' ]]
684 JAVAOPTS="$JAVAOPTS -ssjavadebug"
686 elif [[ $1 = '-ssjavainfer' ]]
688 JAVAOPTS="$JAVAOPTS -ssjavainfer"
690 elif [[ $1 = '-ssjava-inject-error' ]]
692 USE_SSJAVA_CLASSPATH=true
693 JAVAOPTS="$JAVAOPTS -ssjava-inject-error $2 $3"
697 elif [[ $1 = '-mempool-detect-misuse' ]]
699 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
701 elif [[ $1 = '-heapsize-mb' ]]
703 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
706 elif [[ $1 = '-compiler-heapsize-mb' ]]
708 COMPILER_HEAP_SIZE="$2"
711 elif [[ $1 = '-nostalltr' ]]
713 JAVAOPTS="$JAVAOPTS -nostalltr"
715 elif [[ $1 = '-printlinenum' ]]
717 JAVAOPTS="$JAVAOPTS -printlinenum"
719 elif [[ $1 = '-rcr' ]]
721 JAVAOPTS="$JAVAOPTS -rcr"
723 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
725 elif [[ $1 = '-rcr_debug' ]]
727 JAVAOPTS="$JAVAOPTS -rcr_debug"
730 elif [[ $1 = '-rcr_debug_verbose' ]]
732 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
733 RCR_DEBUG_VERBOSE=true
735 elif [[ $1 = '-debug-deque' ]]
737 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
739 elif [[ $1 = '-nolock' ]]
741 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
743 elif [[ $1 = '-coreprof' ]]
746 JAVAOPTS="$JAVAOPTS -coreprof"
747 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
749 elif [[ $1 = '-coreprof-eventwords' ]]
751 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
754 elif [[ $1 = '-coreprof-checkoverflow' ]]
756 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
758 elif [[ $1 = '-coreprof-enable' ]]
760 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
763 elif [[ $1 = '-mlp' ]]
766 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
767 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
771 elif [[ $1 = '-mlpdebug' ]]
773 JAVAOPTS="$JAVAOPTS -mlpdebug"
775 elif [[ $1 = '-check' ]]
778 JAVAOPTS="$JAVAOPTS -conscheck"
779 elif [[ $1 = '-enable-assertions' ]]
781 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
782 elif [[ $1 = '-specdir' ]]
788 elif [[ $1 = '-debug' ]]
791 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
792 elif [[ $1 = '-rawpath' ]]
795 elif [[ $1 = '-runtimedebug' ]]
797 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
798 elif [[ $1 = '-dsmcaching' ]]
800 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
801 elif [[ $1 = '-rangeprefetch' ]]
803 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
804 elif [[ $1 = '-nooptimize' ]]
806 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
807 elif [[ $1 = '-optimize' ]]
809 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
810 elif [[ $1 = '-thread' ]]
812 JAVAOPTS="$JAVAOPTS -thread"
813 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
815 elif [[ $1 = '-recovery' ]]
817 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
819 elif [[ $1 = '-recoverystats' ]]
821 JAVAOPTS="$JAVAOPTS -recoverystats"
822 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
823 elif [[ $1 = '-distributioninfo' ]]
825 JAVAOPTS="$JAVAOPTS -distributioninfo"
826 elif [[ $1 = '-disall' ]]
828 JAVAOPTS="$JAVAOPTS -disall"
829 elif [[ $1 = '-disstart' ]]
831 JAVAOPTS="$JAVAOPTS -disstart $2"
833 elif [[ $1 = '-noc' ]]
836 elif [[ $1 = '-curdir' ]]
840 elif [[ $1 = '-outputdir' ]]
842 JAVAOPTS="$JAVAOPTS -outputdir $2"
845 SRCFILES="$SRCFILES $1"
851 BUILDDIR="$CURDIR/$tmpbuilddirectory"
853 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
861 if $CHECKFLAG #Generate structure files for repair tool
863 JAVAOPTS="$JAVAOPTS -struct structfile"
868 # for tilera code, generate multicorememsize.h
869 ./generate_memsize.sh ${TILERA_PAGE_SIZE} ${TILERA_PAGE_SIZE_BITS} ${TILERA_NUM_BLOCKS} ${TILERA_NUM_PAGES_PER_BLOCK} ${BUILDDIR}
873 #########################
875 #########################
878 # stuff for OoOJava to mask parts of the base
879 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/OoOJava"
884 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference/"
887 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
891 #base multicore gc files
892 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
894 elif $USE_SSJAVA_CLASSPATH
896 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJava"
899 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
906 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
908 #base bristlecone files
909 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
915 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
919 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
923 #threading java stuff
924 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
928 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
932 # everyone gets this except ssjava!
933 if ! $USE_SSJAVA_CLASSPATH
935 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
937 #########################
939 #########################
942 echo "compiler running in JVM with heap size: ${COMPILER_HEAP_SIZE}MB"
945 # Build bristlecone/java sources
949 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
950 -dir $BUILDDIR $JAVAOPTS $SRCFILES
958 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
959 -dir $BUILDDIR -precise $SRCFILES
966 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
967 -dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
974 # after executing Main, if -justanalyze flag, just exit
975 if $EXITAFTERANALYSIS
982 # Build all of the consistency specs
984 if $CHECKFLAG # CHECKFLAG
987 mkdir $BUILDDIR/specdir
988 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
990 echo > $BUILDDIR/specs
992 # compile specs into C code
993 for i in * # iterate over all directories
995 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
998 cat $BUILDDIR/structfile.struct $i.label > $i.struct
999 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
1000 cp size.[c,h] $BUILDDIR/specdir
1001 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
1002 echo $i >> $BUILDDIR/specs
1004 done # iterate over all directories
1008 cd $BUILDDIR/specdir
1010 echo > $BUILDDIR/checkers.h
1011 for i in `cat $BUILDDIR/specs`
1013 gcc -O0 -g -fbounds-check -c $i\_aux.c
1014 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
1018 #build and link everything
1022 RAWDIR="$CURDIR/raw"
1023 MAKEFILE="Makefile.raw"
1029 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
1033 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
1038 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
1042 then # profile version
1043 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
1046 if $ACCURATEPROFILEFLAG
1047 then # accurateprofile version
1048 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
1052 then # useio version
1053 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
1057 then #INTERRUPT version
1058 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
1059 fi #INTERRUPT version
1062 then # useio version
1063 MAKEFILE="$MAKEFILE.io"
1064 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
1066 MAKEFILE="$MAKEFILE.$RAWCONFIG"
1069 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
1070 cp ../Runtime/*.c ./
1071 cp ../Runtime/*.h ./
1072 cp ../Runtime/*.S ./
1073 cp ../Runtime/*.s ./
1074 cp $BAMBOORUNTIME/*.c ./
1075 cp $BAMBOORUNTIME/*.h ./
1076 cp $BAMBOORUNTIME/RAW/*.c ./
1077 cp $BAMBOORUNTIME/RAW/*.h ./
1078 cp $BAMBOORUNTIME/RAW/*.S ./
1079 cp $BAMBOORUNTIME/RAW/*.s ./
1080 cp ../$tmpbuilddirectory/*.c ./
1081 cp ../$tmpbuilddirectory/*.h ./
1087 TILERADIR="$CURDIR/${TILERAOUTPUTDIR}"
1089 then # TILERABMEFLAG
1091 MAKEFILE="Makefile.tilera.$TILERACORES"
1092 #SIMHVC="sim.hvc.$TILERACONFIG"
1093 PCIHVC="pci.hvc.$TILERACORES"
1094 if $TILERA56COREFLAG
1098 elif $TILERAZLINUXFLAG
1099 then # TILERAZLINUXFLAG
1100 TILERA_INDIR="ZLinux"
1101 MAKEFILE="Makefile.tilera.$TILERACONFIG"
1111 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
1113 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
1118 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
1121 if $OBJECTLOCKDEBUGFLAG
1123 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
1126 if $TILERAMEMPROFFLAG
1127 then # not only with 1 core
1128 PCIHVC="$PCIHVC.memprof"
1129 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
1133 then # TILERABMEFLAG
1134 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
1135 elif $TILERAZLINUXFLAG
1136 then # TILERAZLINUXFLAG
1137 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1142 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1147 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1151 then # profile version
1152 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1155 if $ACCURATEPROFILEFLAG
1156 then # accurateprofile version
1157 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1160 if $PROFILEINTERRUPTFLAG
1161 then # profile_interrupt version
1162 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1166 then # useio version
1167 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1171 then #INTERRUPT version
1172 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1173 fi #INTERRUPT version
1177 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1181 then #MULTICOREGC version
1182 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1186 then #MULTICOREGC version
1187 TILERACFLAGS="${TILERACFLAGS} -DPMC_GC -D${GCCORES}"
1191 then #MULTICOREGC version
1192 TILERACFLAGS="${TILERACFLAGS} -DPERFCOUNT"
1196 then #MULTICOREGC version
1197 TILERACFLAGS="${TILERACFLAGS} -DMEMPERFCOUNT"
1201 then # GC_PROFILE version
1202 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1206 then # GC_PROFILE_S version
1207 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1211 then # SMEMLOCAL version
1212 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1216 then # SMEMFIXED version
1217 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1221 then # SMEMMIXED version
1222 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1226 then # SMEMGLOBAL version
1227 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1230 if $GCCACHELOCALFLAG
1231 then # CACHE_LOCAL version
1232 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1236 then # CACHE_RAN version
1237 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1240 if $GCCONTROLLERNEARFLAG
1241 then # CONTROLLER_NEAR version
1242 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1245 if $GCCONTROLLERREMOTEFLAG
1246 then # CONTROLLER_REMOTE version
1247 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1250 if $GCSMALLPAGESIZEFLAG
1251 then # GC_SMALLPAGESIZE version
1252 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1255 if $GCLARGEPAGESIZEFLAG
1256 then # GC_LARGEPAGESIZE version
1257 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1260 if $GCLARGEPAGESIZE2FLAG
1261 then # GC_LARGEPAGESIZE2 version
1262 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1265 if $GCLARGESHAREDHEAPFLAG
1266 then # GC_LARGESHAREDHEAP version
1267 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1270 if $GCSMALLPAGESIZEFLAG2
1271 then # GC_SMALLPAGESIZE2 version
1272 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1275 if $GCLARGESHAREDHEAPFLAG2
1276 then # GC_LARGESHAREDHEAP2 version
1277 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1280 if $GCCACHEADAPTFLAG
1281 then # GC_CACHE_ADAPT version
1282 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1285 if $GCCACHEADAPTPOLICYFLAG
1286 then # GC_CACHE_ADAPT version
1287 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1290 if $GCCACHESAMPLINGFLAG
1291 then # GC_CACHE_ADAPT version
1292 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1295 if $GCCACHECOHERENTFLAG
1296 then # gc cache coherent version
1297 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_COHERENT_ON"
1302 cp $ROBUSTROOT/Tilera/Runtime/PMC/$MAKEFILE ./Makefile
1305 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1307 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1310 then # TILERABMEFLAG
1311 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1312 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1313 if $TILERA56COREFLAG
1315 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1317 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1320 cp ../Runtime/Queue.c ./
1321 cp ../Runtime/file.c ./
1322 cp ../Runtime/math.c ./
1325 cp ../Runtime/object.c ./
1327 cp ../Runtime/GenericHashtable.c ./
1328 cp ../Runtime/SimpleHash.c ./
1329 cp ../Runtime/ObjectHash.c ./
1330 cp ../Runtime/socket.c ./
1331 cp ../Runtime/mem.c ./
1332 cp ../Runtime/GenericHashtable.h ./
1333 cp ../Runtime/mem.h ./
1336 cp ../Runtime/object.h ./
1338 cp ../Runtime/ObjectHash.h ./
1339 cp ../Runtime/Queue.h ./
1340 cp ../Runtime/runtime.h ./
1341 cp ../Runtime/SimpleHash.h ./
1342 cp ../Runtime/objtypes.h ./
1343 cp $BAMBOORUNTIME/*.c ./
1344 cp $BAMBOORUNTIME/*.h ./
1345 cp ../Tilera/Runtime/*.c ./
1346 cp ../Tilera/Runtime/*.h ./
1347 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1348 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1349 if $TILERAZLINUXFLAG
1350 then # TILERAZLINUXFLAG
1351 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1353 #if $TILERAMEMPROFFLAG
1354 #then # TILERAMEMPROFFLAG
1355 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1359 cp ../Tilera/Runtime/MGC/*.c ./
1360 cp ../Tilera/Runtime/MGC/*.h ./
1362 cp ../Tilera/lib/* ./
1363 cp ../$tmpbuilddirectory/*.c ./
1364 cp ../$tmpbuilddirectory/*.h ./
1366 echo $TILERACFLAGS > ./tileracflags.txt
1370 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1373 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1378 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1379 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1381 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1384 FILES="$RUNTIMEFILE \
1385 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1386 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1387 $ROBUSTROOT/Runtime/ObjectHash.c \
1388 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1389 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1390 $ROBUSTROOT/Runtime/math.c \
1391 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1395 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1400 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1405 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1410 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1417 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1418 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"
1420 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1421 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"
1427 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1428 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1435 FILES="$FILES $DSMRUNTIME/sandbox.c"
1437 FILES="$FILES $STMRUNTIME/sandbox.c"
1443 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1448 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1453 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1458 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"
1463 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1464 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1465 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1468 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1474 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1477 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1479 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1482 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1484 if $THREADSIMULATEFLAG
1486 # -lpthread for pthread functions, -lrt for message queue functions
1487 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1493 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1494 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1499 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1504 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1505 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1510 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1514 echo EXTRAOPTIONS=$EXTRAOPTIONS
1518 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1519 -c $tmpbuilddirectory/methods.c -lm
1526 NONMULTICOREOPTS=-DPRECISE_GC
1531 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1532 $tmpbuilddirectory/methods.c $FILES > tmp.c
1535 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1536 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin