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
98 echo -inputfilecompress enables the compressed version of input files
100 echo Multicore GC options
101 echo -perfcount performance counters
102 echo -memperfcount Memory performance counters
103 echo -multicoregc generate multi-core binary with garbage collection
104 echo -pmc parallel collector
105 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
106 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
107 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
108 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
109 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
110 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
111 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
112 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
113 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
114 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
115 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
116 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
117 echo "-tilera_page_size set the page size in multicore code"
118 echo "-tilera_page_size_bits set the page size bits in multicore code"
119 echo "-tilera_num_blocks set the total number of blocks in multicore code"
120 echo "-tilera_num_pages_per_block set the number of pages per block in multicore code"
121 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
122 echo -gcprofile build with gcprofile options
123 echo -mgc generate Multicore GC binary without task stuff
124 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
125 echo -gctbldebug generate GC_TBL_DEBUG code
128 echo -ssjava enables SSJava
129 echo -ssjavadebug reports interim results
130 echo -ssjavainfer location type inference
131 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
135 echo -abcclose turnoff array boundary checks
136 echo -builddir setup different build directory
137 echo -robustroot set up the ROBUSTROOT to directory other than default one
138 echo -readset turn on readset
139 echo -mac distributed shared memory mac support
140 echo -check generate check code
141 echo -dmalloc link in dmalloc
142 echo -64bit compile for 64 bit machine
143 echo -32bit compile for 32 bit machine
144 echo -joptimize java compiler optimizations
145 echo -noloop turnoff loop optimizations
146 echo -recover compile task code
147 echo -fastcheck fast checkpointing for Bristlecone
148 echo -specdir directory
149 echo -printflat print out flat representation
150 echo -selfloop task - this task cannot self loop forever
151 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
152 echo -taskstate do task state analysis
153 echo -tagstate do tag state analysis
154 echo -optional enable optional
155 echo -debug generate debug symbols
156 echo -prefetch do prefetch analysis
157 echo -heapsize-mb NUM set output program initial heap size in MB, default is 256
158 echo -compiler-heapsize-mb NUM set heap size in MB for the JVM running the compiler, default is 1500
159 echo -garbagestats Print garbage collection statistics
160 echo -webinterface enable web interface
161 echo -runtimedebug printout runtime debug messages
162 echo "-thread use support for multiple threads"
163 echo "-optimize call gcc with -O9 (optimize)"
164 echo "-nooptimize call gcc with -O0 (do not optimize)"
165 echo -curdir directory
166 echo -mainclass class with main method
168 echo -nojava do not run bristlecone compiler
169 echo -instructionfailures inject code for instructionfailures
170 echo -profile build with profile options
171 echo "-enable-assertions execute assert statements during compilation"
172 echo -justanalyze exit after compiler analyses complete
173 echo -assembly generate assembly
174 echo -recovery compile recovery code
175 echo -dsmtask support work and task class library
176 echo -recoverystats print out recovery record
177 echo -src-after-pp prints source code after preprocessor to tmp.c
178 echo -capture-null-dereferences generates code to warn before derefencing null
179 echo -printlinenum print out line numbers in generated C codes
183 tmpbuilddirectory="tmpbuilddirectory"
186 USE_SSJAVA_CLASSPATH=false
187 USE_SSJAVA_INFER_CLASSPATH=false
188 USE_SSJAVA_NOCLASSPATH=false
194 ROBUSTROOT=~/research/Robust/src
195 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
196 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
197 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
198 REPAIRROOT=~/research/Repair/RepairCompiler/
215 RCR_DEBUG_VERBOSE=false
221 TILERAZLINUXFLAG=false
222 TILERAMEMPROFFLAG=false
231 ACCURATEPROFILEFLAG=false
232 PROFILEINTERRUPTFLAG=false
235 THREADSIMULATEFLAG=false;
236 MULTICOREGCFLAG=false;
240 GCMEMLOCALFLAG=false;
241 GCMEMFIXEDFLAG=false;
242 GCMEMMIXEDFLAG=false;
243 GCMEMGLOBALFLAG=false;
244 GCCACHELOCALFLAG=false;
245 GCCACHERANFLAG=false;
246 GCCONTROLLERNEARFLAG=false;
247 GCCONTROLLERREMOTEFLAG=false;
248 GCSMALLPAGESIZEFLAG=false;
249 GCLARGEPAGESIZEFLAG=false;
250 GCLARGEPAGESIZE2FLAG=false;
251 GCLARGESHAREDHEAPFLAG=false;
252 GCSMALLPAGESIZEFLAG2=false;
253 GCLARGESHAREDHEAPFLAG2=false;
254 GCCACHEADAPTFLAG=false
255 GCCACHEADAPTPOLICYFLAG=false
256 GCCACHEADAPTPOLICY=''
257 GCCACHESAMPLINGFLAG=false
260 OBJECTLOCKDEBUGFLAG=false
272 EXITAFTERANALYSIS=false
275 TILERAN1COREFLAG=false
276 TILERA56COREFLAG=false
277 TILERAOUTPUTDIR="tilera"
278 TILERA_PAGE_SIZE="0x10000"
279 TILERA_PAGE_SIZE_BITS="16"
280 TILERA_NUM_BLOCKS="20"
281 TILERA_NUM_PAGES_PER_BLOCK="16"
285 GCCACHECOHERENTFLAG=false
286 COMPILER_HEAP_SIZE="1500"
297 if [[ $1 = '-help' ]]
301 elif [[ $1 = '-jni' ]]
304 JAVAOPTS="$JAVAOPTS -jni"
305 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
306 elif [[ $1 = '-justanalyze' ]]
308 EXITAFTERANALYSIS=true
309 elif [[ $1 = '-capture-null-dereferences' ]]
311 JAVAOPTS="$JAVAOPTS -capture-null-dereferences"
312 EXTRAOPTIONS="$EXTRAOPTIONS -DCAPTURE_NULL_DEREFERENCES"
313 elif [[ $1 = '-src-after-pp' ]]
316 elif [[ $1 = '-assembly' ]]
319 elif [[ $1 = '-abortreaders' ]]
322 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
323 JAVAOPTS="$JAVAOPTS -abortreaders"
324 elif [[ $1 = '-sandbox' ]]
327 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
328 JAVAOPTS="$JAVAOPTS -sandbox"
329 elif [[ $1 = '-numa' ]]
331 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
333 elif [[ $1 = '-robustroot' ]]
337 elif [[ $1 = '-builddir' ]]
339 tmpbuilddirectory="$2"
341 elif [[ $1 = '-nojava' ]]
344 elif [[ $1 = '-eventmonitor' ]]
346 JAVAOPTS="$JAVAOPTS -eventmonitor"
348 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
349 elif [[ $1 = '-garbagestats' ]]
351 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
352 elif [[ $1 = '-64bit' ]]
354 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
355 elif [[ $1 = '-32bit' ]]
357 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
358 elif [[ $1 = '-fastcheck' ]]
360 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
361 JAVAOPTS="$JAVAOPTS -fastcheck"
367 elif [[ $1 = '-mainclass' ]]
369 JAVAOPTS="$JAVAOPTS -mainclass $2"
371 elif [[ $1 = '-selfloop' ]]
373 JAVAOPTS="$JAVAOPTS -selfloop $2"
375 elif [[ $1 = '-excprefetch' ]]
377 JAVAOPTS="$JAVAOPTS -excprefetch $2"
379 elif [[ $1 = '-arraypad' ]]
381 JAVAOPTS="$JAVAOPTS -arraypad"
382 elif [[ $1 = '-dsm' ]]
384 JAVAOPTS="$JAVAOPTS -dsm"
386 elif [[ $1 = '-fastmemcpy' ]]
389 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
390 elif [[ $1 = '-singleTM' ]]
392 JAVAOPTS="$JAVAOPTS -singleTM"
393 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
395 elif [[ $1 = '-stmarray' ]]
397 JAVAOPTS="$JAVAOPTS -stmarray"
398 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
400 elif [[ $1 = '-dualview' ]]
402 JAVAOPTS="$JAVAOPTS -dualview"
403 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
405 elif [[ $1 = '-readset' ]]
407 JAVAOPTS="$JAVAOPTS -readset"
408 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
409 elif [[ $1 = '-stmdebug' ]]
411 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
412 elif [[ $1 = '-stmstats' ]]
414 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
415 elif [[ $1 = '-stmlog' ]]
417 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
418 elif [[ $1 = '-prefetch' ]]
420 JAVAOPTS="$JAVAOPTS -prefetch"
421 elif [[ $1 = '-transstats' ]]
423 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
424 elif [[ $1 = '-printflat' ]]
426 JAVAOPTS="$JAVAOPTS -printflat"
427 elif [[ $1 = '-trueprob' ]]
429 JAVAOPTS="$JAVAOPTS -trueprob $2"
431 elif [[ $1 = '-inlineatomic' ]]
433 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
435 elif [[ $1 = '-mac' ]]
437 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
438 elif [[ $1 = '-squeue' ]]
440 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
441 elif [[ $1 = '-corepin' ]]
443 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
445 elif [[ $1 = '-profile' ]]
448 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
449 elif [[ $1 = '-gcprofile' ]]
452 elif [[ $1 = '-gcprofile_s' ]]
455 elif [[ $1 = '-accurateprofile' ]]
457 ACCURATEPROFILEFLAG=true
458 elif [[ $1 = '-profile_interrupt' ]]
460 PROFILEINTERRUPTFLAG=true
461 elif [[ $1 = '-useio' ]]
464 elif [[ $1 = '-gccachecoherent' ]]
466 GCCACHECOHERENTFLAG=true
467 elif [[ $1 = '-taskstate' ]]
469 JAVAOPTS="$JAVAOPTS -taskstate"
470 elif [[ $1 = '-tagstate' ]]
472 JAVAOPTS="$JAVAOPTS -tagstate"
473 elif [[ $1 = '-scheduling' ]]
475 JAVAOPTS="$JAVAOPTS -scheduling"
476 elif [[ $1 = '-multicore' ]]
479 JAVAOPTS="$JAVAOPTS -multicore"
480 elif [[ $1 = '-numcore' ]]
482 JAVAOPTS="$JAVAOPTS -numcore $2"
484 if [[ "$2" -gt "1" ]]
486 TILERAN1COREFLAG=true
487 if [[ "$2" -eq "56" ]]
489 TILERA56COREFLAG=true
493 elif [[ $1 = '-numcore4gc' ]]
495 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
498 elif [[ $1 = '-raw' ]]
501 JAVAOPTS="$JAVAOPTS -raw"
502 elif [[ $1 = '-tilera_output_dir' ]]
506 elif [[ $1 = '-tilera_page_size' ]]
508 TILERA_PAGE_SIZE="$2"
510 elif [[ $1 = '-tilera_page_size_bits' ]]
512 TILERA_PAGE_SIZE_BITS="$2"
514 elif [[ $1 = '-tilera_num_blocks' ]]
516 TILERA_NUM_BLOCKS="$2"
518 elif [[ $1 = '-tilera_num_pages_per_block' ]]
520 TILERA_NUM_PAGES_PER_BLOCK="$2"
522 elif [[ $1 = '-tilera_bme' ]]
526 elif [[ $1 = '-tilera_zlinux' ]]
529 TILERAZLINUXFLAG=true
530 elif [[ $1 = '-tilera_memprof' ]]
532 TILERAMEMPROFFLAG=true
533 elif [[ $1 = '-tileraconfig' ]]
537 elif [[ $1 = '-rawconfig' ]]
541 elif [[ $1 = '-interrupt' ]]
544 elif [[ $1 = '-abcclose' ]]
546 JAVAOPTS="$JAVAOPTS -abcclose"
547 elif [[ $1 = '-optional' ]]
549 JAVAOPTS="$JAVAOPTS -optional"
551 elif [[ $1 = '-multicoregc' ]]
554 JAVAOPTS="$JAVAOPTS -multicoregc"
555 elif [[ $1 = '-pmc' ]]
558 JAVAOPTS="$JAVAOPTS -pmc"
559 elif [[ $1 = '-perfcount' ]]
562 elif [[ $1 = '-memperfcount' ]]
565 elif [[ $1 = '-gcmem_local' ]]
568 elif [[ $1 = '-gcmem_fixed' ]]
571 elif [[ $1 = '-gcmem_mixed' ]]
574 elif [[ $1 = '-gcmem_global' ]]
577 elif [[ $1 = '-gccache_local' ]]
579 GCCACHELOCALFLAG=true
580 elif [[ $1 = '-gccache_ran' ]]
583 elif [[ $1 = '-gccontroller_near' ]]
585 GCCONTROLLERNEARFLAG=true
586 elif [[ $1 = '-gccontroller_remote' ]]
588 GCCONTROLLERREMOTEFLAG=true
589 elif [[ $1 = '-gcsmallpagesize' ]]
591 GCSMALLPAGESIZEFLAG=true
592 elif [[ $1 = '-gcsmallpagesize2' ]]
594 GCSMALLPAGESIZEFLAG2=true
595 elif [[ $1 = '-gclargepagesize' ]]
597 GCLARGEPAGESIZEFLAG=true
598 elif [[ $1 = '-gclargepagesize2' ]]
600 GCLARGEPAGESIZE2FLAG=true
601 elif [[ $1 = '-gclargesharedheap' ]]
603 GCLARGESHAREDHEAPFLAG=true
604 elif [[ $1 = '-gclargesharedheap2' ]]
606 GCLARGESHAREDHEAPFLAG2=true
607 elif [[ $1 = '-gccacheadapt' ]]
609 GCCACHEADAPTFLAG=true
610 elif [[ $1 = '-gccacheadaptpolicy' ]]
612 GCCACHEADAPTPOLICYFLAG=true
613 GCCACHEADAPTPOLICY="$2"
615 elif [[ $1 = '-gccachesampling' ]]
617 GCCACHESAMPLINGFLAG=true
618 elif [[ $1 = '-mgc' ]]
621 JAVAOPTS="$JAVAOPTS -mgc"
622 elif [[ $1 = '-inputfile' ]]
625 INPUTFILES="$INPUTFILES $2"
627 elif [[ $1 = '-inputfilecompress' ]]
629 INPUTFILEOPTS="$INPUTFILEOPTS -compress"
630 elif [[ $1 = '-mgcintel' ]]
633 elif [[ $1 = '-objectlockdebug' ]]
635 OBJECTLOCKDEBUGFLAG=true
636 JAVAOPTS="$JAVAOPTS -objectlockdebug"
637 elif [[ $1 = '-gctbldebug' ]]
640 elif [[ $1 = '-dmalloc' ]]
643 elif [[ $1 = '-recover' ]]
646 JAVAOPTS="$JAVAOPTS -task"
647 elif [[ $1 = '-useprofile' ]]
649 JAVAOPTS="$JAVAOPTS -useprofile $2"
651 elif [[ $1 = '-webinterface' ]]
653 JAVAOPTS="$JAVAOPTS -webinterface"
654 elif [[ $1 = '-instructionfailures' ]]
656 JAVAOPTS="$JAVAOPTS -instructionfailures"
657 elif [[ $1 = '-joptimize' ]]
659 JAVAOPTS="$JAVAOPTS -optimize"
660 elif [[ $1 = '-noloop' ]]
662 JAVAOPTS="$JAVAOPTS -noloop"
663 elif [[ $1 = '-dcopts' ]]
665 JAVAOPTS="$JAVAOPTS -dcopts"
666 elif [[ $1 = '-delaycomp' ]]
668 JAVAOPTS="$JAVAOPTS -delaycomp"
669 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
670 elif [[ $1 = '-hybrid' ]]
672 JAVAOPTS="$JAVAOPTS -hybrid"
673 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
674 elif [[ $1 = '-minimize' ]]
676 JAVAOPTS="$JAVAOPTS -minimize"
678 elif [[ $1 = '-ooojava' ]]
682 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
683 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
687 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
689 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
691 elif [[ $1 = '-ssjava' ]]
694 USE_SSJAVA_CLASSPATH=true
695 JAVAOPTS="$JAVAOPTS -ssjava"
697 elif [[ $1 = '-ssjavadebug' ]]
699 JAVAOPTS="$JAVAOPTS -ssjavadebug"
701 elif [[ $1 = '-ssjavanoclasspath' ]]
703 USE_SSJAVA_NOCLASSPATH=true
705 elif [[ $1 = '-ssjavainfer' ]]
707 USE_SSJAVA_INFER_CLASSPATH=true
708 JAVAOPTS="$JAVAOPTS -ssjavainfer"
710 elif [[ $1 = '-ssjava-inject-error' ]]
712 USE_SSJAVA_CLASSPATH=true
713 JAVAOPTS="$JAVAOPTS -ssjava-inject-error $2 $3"
717 elif [[ $1 = '-mempool-detect-misuse' ]]
719 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
721 elif [[ $1 = '-heapsize-mb' ]]
723 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
726 elif [[ $1 = '-compiler-heapsize-mb' ]]
728 COMPILER_HEAP_SIZE="$2"
731 elif [[ $1 = '-nostalltr' ]]
733 JAVAOPTS="$JAVAOPTS -nostalltr"
735 elif [[ $1 = '-printlinenum' ]]
737 JAVAOPTS="$JAVAOPTS -printlinenum"
739 elif [[ $1 = '-rcr' ]]
741 JAVAOPTS="$JAVAOPTS -rcr"
743 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
745 elif [[ $1 = '-rcr_debug' ]]
747 JAVAOPTS="$JAVAOPTS -rcr_debug"
750 elif [[ $1 = '-rcr_debug_verbose' ]]
752 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
753 RCR_DEBUG_VERBOSE=true
755 elif [[ $1 = '-debug-deque' ]]
757 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
759 elif [[ $1 = '-nolock' ]]
761 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
763 elif [[ $1 = '-coreprof' ]]
766 JAVAOPTS="$JAVAOPTS -coreprof"
767 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
769 elif [[ $1 = '-coreprof-eventwords' ]]
771 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
774 elif [[ $1 = '-coreprof-checkoverflow' ]]
776 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
778 elif [[ $1 = '-coreprof-enable' ]]
780 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
783 elif [[ $1 = '-mlp' ]]
786 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
787 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
791 elif [[ $1 = '-mlpdebug' ]]
793 JAVAOPTS="$JAVAOPTS -mlpdebug"
795 elif [[ $1 = '-check' ]]
798 JAVAOPTS="$JAVAOPTS -conscheck"
799 elif [[ $1 = '-enable-assertions' ]]
801 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
802 elif [[ $1 = '-specdir' ]]
808 elif [[ $1 = '-debug' ]]
811 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
812 elif [[ $1 = '-rawpath' ]]
815 elif [[ $1 = '-runtimedebug' ]]
817 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
818 elif [[ $1 = '-dsmcaching' ]]
820 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
821 elif [[ $1 = '-rangeprefetch' ]]
823 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
824 elif [[ $1 = '-nooptimize' ]]
826 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
827 elif [[ $1 = '-optimize' ]]
829 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
830 elif [[ $1 = '-thread' ]]
832 JAVAOPTS="$JAVAOPTS -thread"
833 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
835 elif [[ $1 = '-recovery' ]]
837 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
839 elif [[ $1 = '-recoverystats' ]]
841 JAVAOPTS="$JAVAOPTS -recoverystats"
842 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
843 elif [[ $1 = '-distributioninfo' ]]
845 JAVAOPTS="$JAVAOPTS -distributioninfo"
846 elif [[ $1 = '-disall' ]]
848 JAVAOPTS="$JAVAOPTS -disall"
849 elif [[ $1 = '-disstart' ]]
851 JAVAOPTS="$JAVAOPTS -disstart $2"
853 elif [[ $1 = '-noc' ]]
856 elif [[ $1 = '-curdir' ]]
860 elif [[ $1 = '-outputdir' ]]
862 JAVAOPTS="$JAVAOPTS -outputdir $2"
865 SRCFILES="$SRCFILES $1"
871 BUILDDIR="$CURDIR/$tmpbuilddirectory"
873 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
881 if $CHECKFLAG #Generate structure files for repair tool
883 JAVAOPTS="$JAVAOPTS -struct structfile"
888 # for tilera code, generate multicorememsize.h
889 ./generate_memsize.sh ${TILERA_PAGE_SIZE} ${TILERA_PAGE_SIZE_BITS} ${TILERA_NUM_BLOCKS} ${TILERA_NUM_PAGES_PER_BLOCK} ${BUILDDIR}
893 #########################
895 #########################
898 # stuff for OoOJava to mask parts of the base
899 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/OoOJava"
904 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference/"
907 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
911 #base multicore gc files
912 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
914 elif $USE_SSJAVA_CLASSPATH
916 if $USE_SSJAVA_INFER_CLASSPATH
918 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJavaInfer"
919 elif ! $USE_SSJAVA_INFER_NOCLASSPATH
921 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJava"
925 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
932 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
934 #base bristlecone files
935 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
941 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
945 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
949 #threading java stuff
950 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
954 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
958 # everyone gets this except ssjava!
959 if ! $USE_SSJAVA_CLASSPATH
961 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
963 #########################
965 #########################
968 echo "compiler running in JVM with heap size: ${COMPILER_HEAP_SIZE}MB"
971 # Build bristlecone/java sources
975 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
976 -dir $BUILDDIR $JAVAOPTS $SRCFILES
984 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
985 -dir $BUILDDIR -precise $SRCFILES
992 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
993 -dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
1000 # transfer the input files
1004 ./ourjavac -cp ../cup:.:$(CLASSPATH) ${ROBUSTROOT}/Tilera/Benchmarks/GC/galois/InputFileTranslator.java
1005 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m -classpath $ROBUSTROOT/Tilera/Benchmarks/GC/galois InputFileTranslator \
1006 -dir $BUILDDIR $INPUTFILEOPTS $INPUTFILES
1011 # after executing Main, if -justanalyze flag, just exit
1012 if $EXITAFTERANALYSIS
1019 # Build all of the consistency specs
1021 if $CHECKFLAG # CHECKFLAG
1024 mkdir $BUILDDIR/specdir
1025 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
1027 echo > $BUILDDIR/specs
1029 # compile specs into C code
1030 for i in * # iterate over all directories
1032 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
1035 cat $BUILDDIR/structfile.struct $i.label > $i.struct
1036 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
1037 cp size.[c,h] $BUILDDIR/specdir
1038 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
1039 echo $i >> $BUILDDIR/specs
1041 done # iterate over all directories
1045 cd $BUILDDIR/specdir
1047 echo > $BUILDDIR/checkers.h
1048 for i in `cat $BUILDDIR/specs`
1050 gcc -O0 -g -fbounds-check -c $i\_aux.c
1051 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
1055 #build and link everything
1059 RAWDIR="$CURDIR/raw"
1060 MAKEFILE="Makefile.raw"
1066 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
1070 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
1075 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
1079 then # profile version
1080 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
1083 if $ACCURATEPROFILEFLAG
1084 then # accurateprofile version
1085 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
1089 then # useio version
1090 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
1094 then #INTERRUPT version
1095 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
1096 fi #INTERRUPT version
1099 then # useio version
1100 MAKEFILE="$MAKEFILE.io"
1101 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
1103 MAKEFILE="$MAKEFILE.$RAWCONFIG"
1106 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
1107 cp ../Runtime/*.c ./
1108 cp ../Runtime/*.h ./
1109 cp ../Runtime/*.S ./
1110 cp ../Runtime/*.s ./
1111 cp $BAMBOORUNTIME/*.c ./
1112 cp $BAMBOORUNTIME/*.h ./
1113 cp $BAMBOORUNTIME/RAW/*.c ./
1114 cp $BAMBOORUNTIME/RAW/*.h ./
1115 cp $BAMBOORUNTIME/RAW/*.S ./
1116 cp $BAMBOORUNTIME/RAW/*.s ./
1117 cp ../$tmpbuilddirectory/*.c ./
1118 cp ../$tmpbuilddirectory/*.h ./
1124 TILERADIR="$CURDIR/${TILERAOUTPUTDIR}"
1126 then # TILERABMEFLAG
1128 MAKEFILE="Makefile.tilera.$TILERACORES"
1129 #SIMHVC="sim.hvc.$TILERACONFIG"
1130 PCIHVC="pci.hvc.$TILERACORES"
1131 if $TILERA56COREFLAG
1135 elif $TILERAZLINUXFLAG
1136 then # TILERAZLINUXFLAG
1137 TILERA_INDIR="ZLinux"
1138 MAKEFILE="Makefile.tilera.$TILERACONFIG"
1148 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
1150 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
1155 TILERACFLAGS="${TILERACFLAGS} -DINPUTFILE"
1160 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
1163 if $OBJECTLOCKDEBUGFLAG
1165 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
1168 if $TILERAMEMPROFFLAG
1169 then # not only with 1 core
1170 PCIHVC="$PCIHVC.memprof"
1171 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
1175 then # TILERABMEFLAG
1176 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
1177 elif $TILERAZLINUXFLAG
1178 then # TILERAZLINUXFLAG
1179 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1184 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1189 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1193 then # profile version
1194 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1197 if $ACCURATEPROFILEFLAG
1198 then # accurateprofile version
1199 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1202 if $PROFILEINTERRUPTFLAG
1203 then # profile_interrupt version
1204 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1208 then # useio version
1209 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1213 then #INTERRUPT version
1214 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1215 fi #INTERRUPT version
1219 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1223 then #MULTICOREGC version
1224 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1228 then #MULTICOREGC version
1229 TILERACFLAGS="${TILERACFLAGS} -DPMC_GC -D${GCCORES}"
1233 then #MULTICOREGC version
1234 TILERACFLAGS="${TILERACFLAGS} -DPERFCOUNT"
1238 then #MULTICOREGC version
1239 TILERACFLAGS="${TILERACFLAGS} -DMEMPERFCOUNT"
1243 then # GC_PROFILE version
1244 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1248 then # GC_PROFILE_S version
1249 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1253 then # SMEMLOCAL version
1254 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1258 then # SMEMFIXED version
1259 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1263 then # SMEMMIXED version
1264 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1268 then # SMEMGLOBAL version
1269 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1272 if $GCCACHELOCALFLAG
1273 then # CACHE_LOCAL version
1274 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1278 then # CACHE_RAN version
1279 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1282 if $GCCONTROLLERNEARFLAG
1283 then # CONTROLLER_NEAR version
1284 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1287 if $GCCONTROLLERREMOTEFLAG
1288 then # CONTROLLER_REMOTE version
1289 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1292 if $GCSMALLPAGESIZEFLAG
1293 then # GC_SMALLPAGESIZE version
1294 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1297 if $GCLARGEPAGESIZEFLAG
1298 then # GC_LARGEPAGESIZE version
1299 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1302 if $GCLARGEPAGESIZE2FLAG
1303 then # GC_LARGEPAGESIZE2 version
1304 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1307 if $GCLARGESHAREDHEAPFLAG
1308 then # GC_LARGESHAREDHEAP version
1309 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1312 if $GCSMALLPAGESIZEFLAG2
1313 then # GC_SMALLPAGESIZE2 version
1314 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1317 if $GCLARGESHAREDHEAPFLAG2
1318 then # GC_LARGESHAREDHEAP2 version
1319 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1322 if $GCCACHEADAPTFLAG
1323 then # GC_CACHE_ADAPT version
1324 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1327 if $GCCACHEADAPTPOLICYFLAG
1328 then # GC_CACHE_ADAPT version
1329 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1332 if $GCCACHESAMPLINGFLAG
1333 then # GC_CACHE_ADAPT version
1334 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1337 if $GCCACHECOHERENTFLAG
1338 then # gc cache coherent version
1339 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_COHERENT_ON"
1344 cp $ROBUSTROOT/Tilera/Runtime/PMC/$MAKEFILE ./Makefile
1347 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1349 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1352 then # TILERABMEFLAG
1353 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1354 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1355 if $TILERA56COREFLAG
1357 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1359 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1362 cp ../Runtime/Queue.c ./
1363 cp ../Runtime/file.c ./
1364 cp ../Runtime/math.c ./
1367 cp ../Runtime/object.c ./
1369 cp ../Runtime/GenericHashtable.c ./
1370 cp ../Runtime/SimpleHash.c ./
1371 cp ../Runtime/ObjectHash.c ./
1372 cp ../Runtime/socket.c ./
1373 cp ../Runtime/mem.c ./
1374 cp ../Runtime/GenericHashtable.h ./
1375 cp ../Runtime/mem.h ./
1378 cp ../Runtime/object.h ./
1380 cp ../Runtime/ObjectHash.h ./
1381 cp ../Runtime/Queue.h ./
1382 cp ../Runtime/runtime.h ./
1383 cp ../Runtime/SimpleHash.h ./
1384 cp ../Runtime/objtypes.h ./
1385 cp $BAMBOORUNTIME/*.c ./
1386 cp $BAMBOORUNTIME/*.h ./
1387 cp ../Tilera/Runtime/*.c ./
1388 cp ../Tilera/Runtime/*.h ./
1389 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1390 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1391 if $TILERAZLINUXFLAG
1392 then # TILERAZLINUXFLAG
1393 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1395 #if $TILERAMEMPROFFLAG
1396 #then # TILERAMEMPROFFLAG
1397 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1401 cp ../Tilera/Runtime/MGC/*.c ./
1402 cp ../Tilera/Runtime/MGC/*.h ./
1404 cp ../Tilera/lib/* ./
1405 cp ../$tmpbuilddirectory/*.c ./
1406 cp ../$tmpbuilddirectory/*.h ./
1408 echo $TILERACFLAGS > ./tileracflags.txt
1412 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1415 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1420 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1421 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1423 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1426 FILES="$RUNTIMEFILE \
1427 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1428 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1429 $ROBUSTROOT/Runtime/ObjectHash.c \
1430 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1431 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1432 $ROBUSTROOT/Runtime/math.c \
1433 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1437 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1442 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1447 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1452 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1459 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1460 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"
1462 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1463 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"
1469 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1470 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1477 FILES="$FILES $DSMRUNTIME/sandbox.c"
1479 FILES="$FILES $STMRUNTIME/sandbox.c"
1485 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1490 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1495 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1500 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"
1505 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1506 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1507 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1510 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1516 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1519 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1521 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1524 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1526 if $THREADSIMULATEFLAG
1528 # -lpthread for pthread functions, -lrt for message queue functions
1529 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1535 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1536 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1541 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1546 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1547 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1552 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1556 echo EXTRAOPTIONS=$EXTRAOPTIONS
1560 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1561 -c $tmpbuilddirectory/methods.c -lm
1568 NONMULTICOREOPTS=-DPRECISE_GC
1573 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1574 $tmpbuilddirectory/methods.c $FILES > tmp.c
1577 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1578 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin