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
54 echo -pointsto-check-v-runtime check allocation site of pointer targets at runtime to help verify heap analysis results
56 echo "-mlp <num cores> <max sese age> build mlp code"
57 echo -mlpdebug if mlp, report progress and interim results
60 echo -dsm distributed shared memory
61 echo -abortreaders abort readers immediately
62 echo -trueprob double - probabiltiy of true branch
63 echo -dsmcaching -enable caching in dsm runtime
65 echo BAMBOO Multicore options
66 echo -scheduling do task scheduling
67 echo "-distributioninfo execute to collect distribution info for simulated annealing in multi-core version"
68 echo "-disall execute to collect whole distribution"
69 echo "-disstart specify the start number of distribution information collection"
70 echo -multicore generate multi-core version binary
71 echo "-numcore set the number of cores (should be used together with -multicore), defaultly set as 1"
72 echo "-interrupt generate raw version binary with interruption (should be used togethere with -raw)"
73 echo "-rawpath print out execute path information for raw version (should be used together with -raw)"
74 echo "-useprofile use profiling data for scheduling (should be used together with -raw)"
75 echo -printscheduling print out scheduling graphs
76 echo -printschedulesim print out scheduling simulator result graphs
77 echo "-tilera_bme generate tilera version binary for Bare Mental Environment (should be used together with -multicore"
78 echo "-tilera_zlinux generate tilera version binary for Zero-Overhead Linux with multi-process mode (should be used together with -multicore"
79 echo "-tileraconfig config tilera simulator/pci as nxm (should be used together with -tilera)"
80 echo "-raw generate raw version binary (should be used together with -multicore)"
81 echo "-rawconfig config raw simulator as 4xn (should be used together with -raw)"
82 echo "-tilera_memprof build the memprof version (should be used together with -tilera_xx) "
83 echo -accurateprofile build with accurate profile information including pre/post task processing info
84 echo -profile_interrupt build with profile information of interrupts
85 echo "-useio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version"
87 echo Multicore GC options
88 echo -multicoregc generate multi-core binary with garbage collection
89 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
90 echo "-gcmem_local set the gc shared memory allocation strategy as local (should be used together with -multicoregc)"
91 echo "-gcmem_fixed set the gc shared memory allocation strategy as fixed (should be used together with -multicoregc)"
92 echo "-gcmem_mixed set the gc shared memory allocation strategy as mixed (should be used together with -multicoregc)"
93 echo "-gcmem_global set the gc shared memory allocation strategy as global (should be used together with -multicoregc)"
94 echo "-gccache_local set the gc shared memory cache strategy as local (should be used together with -multicoregc)"
95 echo "-gccache_ran set the gc shared memory cache strategy as random (should be used together with -multicoregc)"
96 echo "-gccontroller_near set the gc shared memory to use the nearest controller for each core (should be used together with -multicoregc)"
97 echo "-gccontroller_remote set the gc shared memory to use a remote controller for each core (should be used together with -multicoregc)"
98 echo "-gcsmallpagesize(2) set the gc shared memory to use small page size (should be used together with -multicoregc)"
99 echo "-gclargepagesize set the gc shared memory to use large page size (should be used together with -multicoregc)"
100 echo "-gclargesharedheap(2) set the gc shared memory as large (should be used together with -multicoregc)"
101 echo "-gccacheadapt setup as cacheadaptable mode (should be used together with -multicoregc)"
102 echo -gcprofile build with gcprofile options
103 echo -mgc generate Multicore GC binary without task stuff
104 echo -objectlockdebug generate OBJECT_LOCK_DEBUG code
105 echo -gctbldebug generate GC_TBL_DEBUG code
108 echo -ssjava enables SSJava
112 echo -abcclose turnoff array boundary checks
113 echo -builddir setup different build directory
114 echo -robustroot set up the ROBUSTROOT to directory other than default one
115 echo -readset turn on readset
116 echo -mac distributed shared memory mac support
117 echo -check generate check code
118 echo -dmalloc link in dmalloc
119 echo -64bit compile for 64 bit machine
120 echo -32bit compile for 32 bit machine
121 echo -joptimize java compiler optimizations
122 echo -noloop turnoff loop optimizations
123 echo -recover compile task code
124 echo -fastcheck fast checkpointing for Bristlecone
125 echo -specdir directory
126 echo -printflat print out flat representation
127 echo -selfloop task - this task cannot self loop forever
128 echo "-excprefetch methoddescriptor - exclude prefetches for this method (specified as class.method)"
129 echo -taskstate do task state analysis
130 echo -tagstate do tag state analysis
131 echo -optional enable optional
132 echo -debug generate debug symbols
133 echo -prefetch do prefetch analysis
134 echo -heapsize-mb NUM set initial heap size in MB, default is 256
135 echo -garbagestats Print garbage collection statistics
136 echo -webinterface enable web interface
137 echo -runtimedebug printout runtime debug messages
138 echo "-thread use support for multiple threads"
139 echo "-optimize call gcc with -O9 (optimize)"
140 echo "-nooptimize call gcc with -O0 (do not optimize)"
141 echo -curdir directory
142 echo -mainclass class with main method
144 echo -nojava do not run bristlecone compiler
145 echo -instructionfailures inject code for instructionfailures
146 echo -profile build with profile options
147 echo "-enable-assertions execute assert statements during compilation"
148 echo -justanalyze exit after compiler analyses complete
149 echo -assembly generate assembly
150 echo -recovery compile recovery code
151 echo -dsmtask support work and task class library
152 echo -recoverystats print out recovery record
153 echo -src-after-pp prints source code after preprocessor to tmp.c
154 echo -capture-null-dereferences generates code to warn before derefencing null
155 echo -printlinenum print out line numbers in generated C codes
159 tmpbuilddirectory="tmpbuilddirectory"
167 ROBUSTROOT=~/research/Robust/src
168 DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/
169 STMRUNTIME=$ROBUSTROOT/Runtime/STM/
170 DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/
171 REPAIRROOT=~/research/Repair/RepairCompiler/
187 RCR_DEBUG_VERBOSE=false
193 TILERAZLINUXFLAG=false
194 TILERAMEMPROFFLAG=false
203 ACCURATEPROFILEFLAG=false
204 PROFILEINTERRUPTFLAG=false
207 THREADSIMULATEFLAG=false;
208 MULTICOREGCFLAG=false;
209 GCMEMLOCALFLAG=false;
210 GCMEMFIXEDFLAG=false;
211 GCMEMMIXEDFLAG=false;
212 GCMEMGLOBALFLAG=false;
213 GCCACHELOCALFLAG=false;
214 GCCACHERANFLAG=false;
215 GCCONTROLLERNEARFLAG=false;
216 GCCONTROLLERREMOTEFLAG=false;
217 GCSMALLPAGESIZEFLAG=false;
218 GCLARGEPAGESIZEFLAG=false;
219 GCLARGEPAGESIZE2FLAG=false;
220 GCLARGESHAREDHEAPFLAG=false;
221 GCSMALLPAGESIZEFLAG2=false;
222 GCLARGESHAREDHEAPFLAG2=false;
223 GCCACHEADAPTFLAG=false
224 GCCACHEADAPTPOLICYFLAG=false
225 GCCACHEADAPTPOLICY=''
226 GCCACHESAMPLINGFLAG=false
229 OBJECTLOCKDEBUGFLAG=false
241 EXITAFTERANALYSIS=false
244 TILERAN1COREFLAG=false
245 TILERA56COREFLAG=false
255 if [[ $1 = '-help' ]]
259 elif [[ $1 = '-jni' ]]
262 JAVAOPTS="$JAVAOPTS -jni"
263 EXTRAOPTIONS="$EXTRAOPTIONS -DJNI -I$ROBUSTROOT/Runtime/jni"
264 elif [[ $1 = '-justanalyze' ]]
266 EXITAFTERANALYSIS=true
267 elif [[ $1 = '-capture-null-dereferences' ]]
269 JAVAOPTS="$JAVAOPTS -capture-null-dereferences"
270 EXTRAOPTIONS="$EXTRAOPTIONS -DCAPTURE_NULL_DEREFERENCES"
271 elif [[ $1 = '-src-after-pp' ]]
274 elif [[ $1 = '-assembly' ]]
277 elif [[ $1 = '-abortreaders' ]]
280 EXTRAOPTIONS="$EXTRAOPTIONS -DABORTREADERS"
281 JAVAOPTS="$JAVAOPTS -abortreaders"
282 elif [[ $1 = '-sandbox' ]]
285 EXTRAOPTIONS="$EXTRAOPTIONS -DSANDBOX"
286 JAVAOPTS="$JAVAOPTS -sandbox"
287 elif [[ $1 = '-numa' ]]
289 EXTRAOPTIONS="$EXTRAOPTIONS -DAFFINITY -D_GNU_SOURCE"
291 elif [[ $1 = '-robustroot' ]]
295 elif [[ $1 = '-builddir' ]]
297 tmpbuilddirectory="$2"
299 elif [[ $1 = '-nojava' ]]
302 elif [[ $1 = '-eventmonitor' ]]
304 JAVAOPTS="$JAVAOPTS -eventmonitor"
306 EXTRAOPTIONS="$EXTRAOPTIONS -DEVENTMONITOR"
307 elif [[ $1 = '-garbagestats' ]]
309 EXTRAOPTIONS="$EXTRAOPTIONS -DGARBAGESTATS"
310 elif [[ $1 = '-64bit' ]]
312 EXTRAOPTIONS="$EXTRAOPTIONS -DBIT64 -m64"
313 elif [[ $1 = '-32bit' ]]
315 EXTRAOPTIONS="$EXTRAOPTIONS -m32"
316 elif [[ $1 = '-fastcheck' ]]
318 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTCHECK"
319 JAVAOPTS="$JAVAOPTS -fastcheck"
325 elif [[ $1 = '-mainclass' ]]
327 JAVAOPTS="$JAVAOPTS -mainclass $2"
329 elif [[ $1 = '-selfloop' ]]
331 JAVAOPTS="$JAVAOPTS -selfloop $2"
333 elif [[ $1 = '-excprefetch' ]]
335 JAVAOPTS="$JAVAOPTS -excprefetch $2"
337 elif [[ $1 = '-arraypad' ]]
339 JAVAOPTS="$JAVAOPTS -arraypad"
340 elif [[ $1 = '-dsm' ]]
342 JAVAOPTS="$JAVAOPTS -dsm"
344 elif [[ $1 = '-fastmemcpy' ]]
347 EXTRAOPTIONS="$EXTRAOPTIONS -DFASTMEMCPY"
348 elif [[ $1 = '-singleTM' ]]
350 JAVAOPTS="$JAVAOPTS -singleTM"
351 EXTRAOPTIONS="$EXTRAOPTIONS -DSTM"
353 elif [[ $1 = '-stmarray' ]]
355 JAVAOPTS="$JAVAOPTS -stmarray"
356 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMARRAY"
358 elif [[ $1 = '-dualview' ]]
360 JAVAOPTS="$JAVAOPTS -dualview"
361 EXTRAOPTIONS="$EXTRAOPTIONS -DDUALVIEW"
363 elif [[ $1 = '-readset' ]]
365 JAVAOPTS="$JAVAOPTS -readset"
366 EXTRAOPTIONS="$EXTRAOPTIONS -DREADSET"
367 elif [[ $1 = '-stmdebug' ]]
369 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMDEBUG"
370 elif [[ $1 = '-stmstats' ]]
372 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMSTATS"
373 elif [[ $1 = '-stmlog' ]]
375 EXTRAOPTIONS="$EXTRAOPTIONS -DSTMLOG"
376 elif [[ $1 = '-prefetch' ]]
378 JAVAOPTS="$JAVAOPTS -prefetch"
379 elif [[ $1 = '-transstats' ]]
381 EXTRAOPTIONS="$EXTRAOPTIONS -DTRANSSTATS"
382 elif [[ $1 = '-printflat' ]]
384 JAVAOPTS="$JAVAOPTS -printflat"
385 elif [[ $1 = '-trueprob' ]]
387 JAVAOPTS="$JAVAOPTS -trueprob $2"
389 elif [[ $1 = '-inlineatomic' ]]
391 JAVAOPTS="$JAVAOPTS -inlineatomic $2"
393 elif [[ $1 = '-mac' ]]
395 EXTRAOPTIONS="$EXTRAOPTIONS -DMAC"
396 elif [[ $1 = '-squeue' ]]
398 EXTRAOPTIONS="$EXTRAOPTIONS -DSQUEUE"
399 elif [[ $1 = '-corepin' ]]
401 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPIN"
403 elif [[ $1 = '-profile' ]]
406 EXTRAOPTIONS="$EXTRAOPTIONS -pg"
407 elif [[ $1 = '-gcprofile' ]]
410 elif [[ $1 = '-gcprofile_s' ]]
413 elif [[ $1 = '-accurateprofile' ]]
415 ACCURATEPROFILEFLAG=true
416 elif [[ $1 = '-profile_interrupt' ]]
418 PROFILEINTERRUPTFLAG=true
419 elif [[ $1 = '-useio' ]]
422 elif [[ $1 = '-taskstate' ]]
424 JAVAOPTS="$JAVAOPTS -taskstate"
425 elif [[ $1 = '-tagstate' ]]
427 JAVAOPTS="$JAVAOPTS -tagstate"
428 elif [[ $1 = '-scheduling' ]]
430 JAVAOPTS="$JAVAOPTS -scheduling"
431 elif [[ $1 = '-multicore' ]]
434 JAVAOPTS="$JAVAOPTS -multicore"
435 elif [[ $1 = '-numcore' ]]
437 JAVAOPTS="$JAVAOPTS -numcore $2"
439 if [[ "$2" -gt "1" ]]
441 TILERAN1COREFLAG=true
442 if [[ "$2" -eq "56" ]]
444 TILERA56COREFLAG=true
448 elif [[ $1 = '-numcore4gc' ]]
450 JAVAOPTS="$JAVAOPTS -numcore4gc $2"
453 elif [[ $1 = '-raw' ]]
456 JAVAOPTS="$JAVAOPTS -raw"
457 elif [[ $1 = '-tilera_bme' ]]
461 elif [[ $1 = '-tilera_zlinux' ]]
464 TILERAZLINUXFLAG=true
465 elif [[ $1 = '-tilera_memprof' ]]
467 TILERAMEMPROFFLAG=true
468 elif [[ $1 = '-tileraconfig' ]]
472 elif [[ $1 = '-rawconfig' ]]
476 elif [[ $1 = '-interrupt' ]]
479 elif [[ $1 = '-abcclose' ]]
481 JAVAOPTS="$JAVAOPTS -abcclose"
482 elif [[ $1 = '-optional' ]]
484 JAVAOPTS="$JAVAOPTS -optional"
486 elif [[ $1 = '-multicoregc' ]]
489 JAVAOPTS="$JAVAOPTS -multicoregc"
490 elif [[ $1 = '-gcmem_local' ]]
493 elif [[ $1 = '-gcmem_fixed' ]]
496 elif [[ $1 = '-gcmem_mixed' ]]
499 elif [[ $1 = '-gcmem_global' ]]
502 elif [[ $1 = '-gccache_local' ]]
504 GCCACHELOCALFLAG=true
505 elif [[ $1 = '-gccache_ran' ]]
508 elif [[ $1 = '-gccontroller_near' ]]
510 GCCONTROLLERNEARFLAG=true
511 elif [[ $1 = '-gccontroller_remote' ]]
513 GCCONTROLLERREMOTEFLAG=true
514 elif [[ $1 = '-gcsmallpagesize' ]]
516 GCSMALLPAGESIZEFLAG=true
517 elif [[ $1 = '-gcsmallpagesize2' ]]
519 GCSMALLPAGESIZEFLAG2=true
520 elif [[ $1 = '-gclargepagesize' ]]
522 GCLARGEPAGESIZEFLAG=true
523 elif [[ $1 = '-gclargepagesize2' ]]
525 GCLARGEPAGESIZE2FLAG=true
526 elif [[ $1 = '-gclargesharedheap' ]]
528 GCLARGESHAREDHEAPFLAG=true
529 elif [[ $1 = '-gclargesharedheap2' ]]
531 GCLARGESHAREDHEAPFLAG2=true
532 elif [[ $1 = '-gccacheadapt' ]]
534 GCCACHEADAPTFLAG=true
535 elif [[ $1 = '-gccacheadaptpolicy' ]]
537 GCCACHEADAPTPOLICYFLAG=true
538 GCCACHEADAPTPOLICY="$2"
540 elif [[ $1 = '-gccachesampling' ]]
542 GCCACHESAMPLINGFLAG=true
543 elif [[ $1 = '-mgc' ]]
546 JAVAOPTS="$JAVAOPTS -mgc"
547 elif [[ $1 = '-mgcintel' ]]
550 elif [[ $1 = '-objectlockdebug' ]]
552 OBJECTLOCKDEBUGFLAG=true
553 JAVAOPTS="$JAVAOPTS -objectlockdebug"
554 elif [[ $1 = '-gctbldebug' ]]
557 elif [[ $1 = '-dmalloc' ]]
560 elif [[ $1 = '-recover' ]]
563 JAVAOPTS="$JAVAOPTS -task"
564 elif [[ $1 = '-useprofile' ]]
566 JAVAOPTS="$JAVAOPTS -useprofile $2"
568 elif [[ $1 = '-webinterface' ]]
570 JAVAOPTS="$JAVAOPTS -webinterface"
571 elif [[ $1 = '-instructionfailures' ]]
573 JAVAOPTS="$JAVAOPTS -instructionfailures"
574 elif [[ $1 = '-joptimize' ]]
576 JAVAOPTS="$JAVAOPTS -optimize"
577 elif [[ $1 = '-noloop' ]]
579 JAVAOPTS="$JAVAOPTS -noloop"
580 elif [[ $1 = '-dcopts' ]]
582 JAVAOPTS="$JAVAOPTS -dcopts"
583 elif [[ $1 = '-delaycomp' ]]
585 JAVAOPTS="$JAVAOPTS -delaycomp"
586 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
587 elif [[ $1 = '-hybrid' ]]
589 JAVAOPTS="$JAVAOPTS -hybrid"
590 EXTRAOPTIONS="$EXTRAOPTIONS -DHYBRID"
591 elif [[ $1 = '-minimize' ]]
593 JAVAOPTS="$JAVAOPTS -minimize"
595 elif [[ $1 = '-ooojava' ]]
598 JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
599 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
603 elif [[ $1 = '-ooodebug-disable-task-mem-pool' ]]
605 EXTRAOPTIONS="$EXTRAOPTIONS -DOOO_DISABLE_TASKMEMPOOL"
607 elif [[ $1 = '-ssjava' ]]
610 JAVAOPTS="$JAVAOPTS -ssjava"
612 elif [[ $1 = '-mempool-detect-misuse' ]]
614 EXTRAOPTIONS="$EXTRAOPTIONS -DMEMPOOL_DETECT_MISUSE"
616 elif [[ $1 = '-heapsize-mb' ]]
618 EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
621 elif [[ $1 = '-nostalltr' ]]
623 JAVAOPTS="$JAVAOPTS -nostalltr"
625 elif [[ $1 = '-printlinenum' ]]
627 JAVAOPTS="$JAVAOPTS -printlinenum"
629 elif [[ $1 = '-rcr' ]]
631 JAVAOPTS="$JAVAOPTS -rcr"
633 EXTRAOPTIONS="$EXTRAOPTIONS -DRCR -I$ROBUSTROOT/Runtime/oooJava"
635 elif [[ $1 = '-rcr_debug' ]]
637 JAVAOPTS="$JAVAOPTS -rcr_debug"
640 elif [[ $1 = '-rcr_debug_verbose' ]]
642 JAVAOPTS="$JAVAOPTS -rcr_debug_verbose"
643 RCR_DEBUG_VERBOSE=true
645 elif [[ $1 = '-debug-deque' ]]
647 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG_DEQUE"
649 elif [[ $1 = '-nolock' ]]
651 EXTRAOPTIONS="$EXTRAOPTIONS -DNOLOCK"
653 elif [[ $1 = '-coreprof' ]]
656 JAVAOPTS="$JAVAOPTS -coreprof"
657 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF -I$ROBUSTROOT/Runtime/coreprof"
659 elif [[ $1 = '-coreprof-eventwords' ]]
661 EXTRAOPTIONS="$EXTRAOPTIONS -DCP_MAXEVENTWORDS=($2)"
664 elif [[ $1 = '-coreprof-checkoverflow' ]]
666 EXTRAOPTIONS="$EXTRAOPTIONS -DCOREPROF_CHECKOVERFLOW"
668 elif [[ $1 = '-coreprof-enable' ]]
670 EXTRAOPTIONS="$EXTRAOPTIONS -D$2"
673 elif [[ $1 = '-mlp' ]]
676 EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
677 JAVAOPTS="$JAVAOPTS -mlp $2 $3"
681 elif [[ $1 = '-mlpdebug' ]]
683 JAVAOPTS="$JAVAOPTS -mlpdebug"
685 elif [[ $1 = '-check' ]]
688 JAVAOPTS="$JAVAOPTS -conscheck"
689 elif [[ $1 = '-enable-assertions' ]]
691 JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
692 elif [[ $1 = '-specdir' ]]
698 elif [[ $1 = '-debug' ]]
701 EXTRAOPTIONS="$EXTRAOPTIONS -g -rdynamic"
702 elif [[ $1 = '-rawpath' ]]
705 elif [[ $1 = '-runtimedebug' ]]
707 EXTRAOPTIONS="$EXTRAOPTIONS -DDEBUG"
708 elif [[ $1 = '-dsmcaching' ]]
710 EXTRAOPTIONS="$EXTRAOPTIONS -DCACHE"
711 elif [[ $1 = '-rangeprefetch' ]]
713 EXTRAOPTIONS="$EXTRAOPTIONS -DRANGEPREFETCH"
714 elif [[ $1 = '-nooptimize' ]]
716 EXTRAOPTIONS="$EXTRAOPTIONS -O0"
717 elif [[ $1 = '-optimize' ]]
719 EXTRAOPTIONS="$EXTRAOPTIONS -O3"
720 elif [[ $1 = '-thread' ]]
722 JAVAOPTS="$JAVAOPTS -thread"
723 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADS -lpthread"
725 elif [[ $1 = '-recovery' ]]
727 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERY"
729 elif [[ $1 = '-recoverystats' ]]
731 JAVAOPTS="$JAVAOPTS -recoverystats"
732 EXTRAOPTIONS="$EXTRAOPTIONS -DRECOVERYSTATS"
733 elif [[ $1 = '-distributioninfo' ]]
735 JAVAOPTS="$JAVAOPTS -distributioninfo"
736 elif [[ $1 = '-disall' ]]
738 JAVAOPTS="$JAVAOPTS -disall"
739 elif [[ $1 = '-disstart' ]]
741 JAVAOPTS="$JAVAOPTS -disstart $2"
743 elif [[ $1 = '-noc' ]]
746 elif [[ $1 = '-curdir' ]]
750 elif [[ $1 = '-outputdir' ]]
752 JAVAOPTS="$JAVAOPTS -outputdir $2"
755 SRCFILES="$SRCFILES $1"
760 BUILDDIR="$CURDIR/$tmpbuilddirectory"
762 BAMBOORUNTIME=$ROBUSTROOT/Runtime/bamboo
770 if $CHECKFLAG #Generate structure files for repair tool
772 JAVAOPTS="$JAVAOPTS -struct structfile"
777 #########################
779 #########################
782 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference"
786 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
790 #base multicore gc files
791 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"
795 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/SSJava"
803 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/FastCheck"
805 #base bristlecone files
806 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Bristlecone"
812 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM"
816 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM"
820 #threading java stuff
821 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaThread"
825 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/Java"
829 # everyone gets this except ssjava!
832 JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/ -classlibrary $ROBUSTROOT/ClassLibrary/gnu/"
834 #########################
836 #########################
840 # Build bristlecone/java sources
844 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
845 -dir $BUILDDIR $JAVAOPTS $SRCFILES
853 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
854 -dir $BUILDDIR -precise $SRCFILES
861 if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
862 -dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
869 if $EXITAFTERANALYSIS
874 # Build all of the consistency specs
876 if $CHECKFLAG # CHECKFLAG
879 mkdir $BUILDDIR/specdir
880 cp $REPAIRROOT/MCC/CRuntime/* $BUILDDIR/specdir
882 echo > $BUILDDIR/specs
884 # compile specs into C code
885 for i in * # iterate over all directories
887 if [[ "$i" != "CVS" ]] # CVSDIR CHECK
890 cat $BUILDDIR/structfile.struct $i.label > $i.struct
891 java -cp $REPAIRROOT/:. MCC.Compiler -name $i -checkonly $i
892 cp size.[c,h] $BUILDDIR/specdir
893 cp $i.c $i\_aux.[c,h] $BUILDDIR/specdir
894 echo $i >> $BUILDDIR/specs
896 done # iterate over all directories
902 echo > $BUILDDIR/checkers.h
903 for i in `cat $BUILDDIR/specs`
905 gcc -O0 -g -fbounds-check -c $i\_aux.c
906 echo \#include \"specdir\/$i\_aux.h\" >> $BUILDDIR/checkers.h
910 #build and link everything
915 MAKEFILE="Makefile.raw"
921 export RAWRGCCFLAGS="-DTASK -DMULTICORE -DRAW"
925 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DRAWPATH"
930 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DDEBUG"
934 then # profile version
935 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DPROFILE"
938 if $ACCURATEPROFILEFLAG
939 then # accurateprofile version
940 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DACCURATEPROFILE"
945 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DUSEIO"
949 then #INTERRUPT version
950 RAWRGCCFLAGS="${RAWRGCCFLAGS} -DINTERRUPT"
951 fi #INTERRUPT version
955 MAKEFILE="$MAKEFILE.io"
956 echo "+++++++++++use Makefile.raw.io++++++++++++++++"
958 MAKEFILE="$MAKEFILE.$RAWCONFIG"
961 cp $BAMBOORUNTIME/RAW/$MAKEFILE ./Makefile
966 cp $BAMBOORUNTIME/*.c ./
967 cp $BAMBOORUNTIME/*.h ./
968 cp $BAMBOORUNTIME/RAW/*.c ./
969 cp $BAMBOORUNTIME/RAW/*.h ./
970 cp $BAMBOORUNTIME/RAW/*.S ./
971 cp $BAMBOORUNTIME/RAW/*.s ./
972 cp ../$tmpbuilddirectory/*.c ./
973 cp ../$tmpbuilddirectory/*.h ./
979 TILERADIR="$CURDIR/tilera"
983 MAKEFILE="Makefile.tilera.$TILERACORES"
984 #SIMHVC="sim.hvc.$TILERACONFIG"
985 PCIHVC="pci.hvc.$TILERACORES"
990 elif $TILERAZLINUXFLAG
991 then # TILERAZLINUXFLAG
992 TILERA_INDIR="ZLinux"
993 MAKEFILE="Makefile.tilera.$TILERACONFIG"
1003 export TILERACFLAGS="-DMULTICORE -DCLOSE_PRINT -DTILERA"
1005 export TILERACFLAGS="-DTASK -DMULTICORE -DCLOSE_PRINT -DTILERA"
1010 TILERACFLAGS="${TILERACFLAGS} -DGC_TBL_DEBUG"
1013 if $OBJECTLOCKDEBUGFLAG
1015 TILERACFLAGS="${TILERACFLAGS} -DOBJECT_LOCK_DEBUG"
1018 if $TILERAMEMPROFFLAG
1019 then # not only with 1 core
1020 PCIHVC="$PCIHVC.memprof"
1021 TILERACFLAGS="${TILERACFLAGS} -DBAMBOO_MEMPROF"
1025 then # TILERABMEFLAG
1026 TILERACFLAGS="${TILERACFLAGS} -DTILERA_BME"
1027 elif $TILERAZLINUXFLAG
1028 then # TILERAZLINUXFLAG
1029 TILERACFLAGS="${TILERACFLAGS} -DTILERA_ZLINUX"
1034 TILERACFLAGS="${TILERACFLAGS} -DRAWPATH"
1039 TILERACFLAGS="${TILERACFLAGS} -DDEBUG"
1043 then # profile version
1044 TILERACFLAGS="${TILERACFLAGS} -DPROFILE"
1047 if $ACCURATEPROFILEFLAG
1048 then # accurateprofile version
1049 TILERACFLAGS="${TILERACFLAGS} -DACCURATEPROFILE"
1052 if $PROFILEINTERRUPTFLAG
1053 then # profile_interrupt version
1054 TILERACFLAGS="${TILERACFLAGS} -DPROFILE_INTERRUPT"
1058 then # useio version
1059 TILERACFLAGS="${TILERACFLAGS} -DUSEIO"
1063 then #INTERRUPT version
1064 TILERACFLAGS="${TILERACFLAGS} -DINTERRUPT"
1065 fi #INTERRUPT version
1069 TILERACFLAGS="${TILERACFLAGS} -DMGC -DMGC_SPEC"
1073 then #MULTICOREGC version
1074 TILERACFLAGS="${TILERACFLAGS} -DMULTICORE_GC -D${GCCORES}"
1078 then # GC_PROFILE version
1079 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"
1083 then # GC_PROFILE_S version
1084 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE_S"
1088 then # SMEMLOCAL version
1089 TILERACFLAGS="${TILERACFLAGS} -DSMEML"
1093 then # SMEMFIXED version
1094 TILERACFLAGS="${TILERACFLAGS} -DSMEMF"
1098 then # SMEMMIXED version
1099 TILERACFLAGS="${TILERACFLAGS} -DSMEMM"
1103 then # SMEMGLOBAL version
1104 TILERACFLAGS="${TILERACFLAGS} -DSMEMG"
1107 if $GCCACHELOCALFLAG
1108 then # CACHE_LOCAL version
1109 TILERACFLAGS="${TILERACFLAGS} -DCACHE_LOCAL"
1113 then # CACHE_RAN version
1114 TILERACFLAGS="${TILERACFLAGS} -DCACHE_RAN"
1117 if $GCCONTROLLERNEARFLAG
1118 then # CONTROLLER_NEAR version
1119 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_NEAR"
1122 if $GCCONTROLLERREMOTEFLAG
1123 then # CONTROLLER_REMOTE version
1124 TILERACFLAGS="${TILERACFLAGS} -DCONTROLLER_REMOTE"
1127 if $GCSMALLPAGESIZEFLAG
1128 then # GC_SMALLPAGESIZE version
1129 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE"
1132 if $GCLARGEPAGESIZEFLAG
1133 then # GC_LARGEPAGESIZE version
1134 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE"
1137 if $GCLARGEPAGESIZE2FLAG
1138 then # GC_LARGEPAGESIZE2 version
1139 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGEPAGESIZE2"
1142 if $GCLARGESHAREDHEAPFLAG
1143 then # GC_LARGESHAREDHEAP version
1144 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP"
1147 if $GCSMALLPAGESIZEFLAG2
1148 then # GC_SMALLPAGESIZE2 version
1149 TILERACFLAGS="${TILERACFLAGS} -DGC_SMALLPAGESIZE2"
1152 if $GCLARGESHAREDHEAPFLAG2
1153 then # GC_LARGESHAREDHEAP2 version
1154 TILERACFLAGS="${TILERACFLAGS} -DGC_LARGESHAREDHEAP2"
1157 if $GCCACHEADAPTFLAG
1158 then # GC_CACHE_ADAPT version
1159 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT"
1162 if $GCCACHEADAPTPOLICYFLAG
1163 then # GC_CACHE_ADAPT version
1164 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_ADAPT_POLICY${GCCACHEADAPTPOLICY}"
1167 if $GCCACHESAMPLINGFLAG
1168 then # GC_CACHE_ADAPT version
1169 TILERACFLAGS="${TILERACFLAGS} -DGC_CACHE_SAMPLING"
1174 cp $ROBUSTROOT/Tilera/Runtime/MGC/$MAKEFILE ./Makefile
1176 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$MAKEFILE ./Makefile
1179 then # TILERABMEFLAG
1180 #cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$SIMHVC ./sim.hvc
1181 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/$PCIHVC ./pci.hvc
1182 if $TILERA56COREFLAG
1184 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc.56 ./bamboo-vmlinux-pci.hvc.56
1186 cp $ROBUSTROOT/Tilera/Runtime/$TILERA_INDIR/bamboo-vmlinux-pci.hvc ./bamboo-vmlinux-pci.hvc
1189 cp ../Runtime/Queue.c ./
1190 cp ../Runtime/file.c ./
1191 cp ../Runtime/math.c ./
1194 cp ../Runtime/object.c ./
1196 cp ../Runtime/GenericHashtable.c ./
1197 cp ../Runtime/SimpleHash.c ./
1198 cp ../Runtime/ObjectHash.c ./
1199 cp ../Runtime/socket.c ./
1200 cp ../Runtime/mem.c ./
1201 cp ../Runtime/GenericHashtable.h ./
1202 cp ../Runtime/mem.h ./
1205 cp ../Runtime/object.h ./
1207 cp ../Runtime/ObjectHash.h ./
1208 cp ../Runtime/Queue.h ./
1209 cp ../Runtime/runtime.h ./
1210 cp ../Runtime/SimpleHash.h ./
1211 cp $BAMBOORUNTIME/*.c ./
1212 cp $BAMBOORUNTIME/*.h ./
1213 cp ../Tilera/Runtime/*.c ./
1214 cp ../Tilera/Runtime/*.h ./
1215 cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
1216 cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
1217 if $TILERAZLINUXFLAG
1218 then # TILERAZLINUXFLAG
1219 cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
1221 #if $TILERAMEMPROFFLAG
1222 #then # TILERAMEMPROFFLAG
1223 cp ../Tilera/Runtime/$TILERA_INDIR/linux_client.c ./
1227 cp ../Tilera/Runtime/MGC/*.c ./
1228 cp ../Tilera/Runtime/MGC/*.h ./
1230 cp ../Tilera/lib/* ./
1231 cp ../$tmpbuilddirectory/*.c ./
1232 cp ../$tmpbuilddirectory/*.h ./
1236 else #!RAWFLAG && !TILERABMEFLAG && ! TILERAZLINUXFLAG
1239 INCLUDES="$INCLUDES -I$ROBUSTROOT/Runtime -I. -IRuntime/include \
1244 RUNTIMEFILE="$BAMBOORUNTIME/multicoreruntime.c $BAMBOORUNTIME/multicoretask.c"
1245 INCLUDES="$INCLUDES -I$BAMBOORUNTIME"
1247 RUNTIMEFILE="$ROBUSTROOT/Runtime/runtime.c $ROBUSTROOT/Runtime/task.c"
1250 FILES="$RUNTIMEFILE \
1251 $ROBUSTROOT/Runtime/file.c $ROBUSTROOT/Runtime/Queue.c \
1252 $ROBUSTROOT/Runtime/SimpleHash.c $ROBUSTROOT/Runtime/option.c \
1253 $ROBUSTROOT/Runtime/ObjectHash.c \
1254 $ROBUSTROOT/Runtime/garbage.c $ROBUSTROOT/Runtime/socket.c \
1255 $ROBUSTROOT/Runtime/taskgarbage.c $ROBUSTROOT/Runtime/oojgarbage.c \
1256 $ROBUSTROOT/Runtime/math.c \
1257 $ROBUSTROOT/Runtime/GenericHashtable.c $ROBUSTROOT/Runtime/object.c"
1261 FILES="$FILES $ROBUSTROOT/Runtime/jni/jni.c $ROBUSTROOT/Runtime/jni/jni-stuff.c"
1266 FILES="$FILES $ROBUSTROOT/Runtime/affinity.c"
1271 FILES="$FILES $ROBUSTROOT/Runtime/STM/monitor.c"
1276 FILES="$FILES $ROBUSTROOT/Runtime/memcpy32.o $ROBUSTROOT/Runtime/instrset32.o"
1283 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRECOVERYRUNTIME"
1284 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"
1286 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME"
1287 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"
1293 EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME"
1294 FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/stm.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c $STMRUNTIME/stats.c $STMRUNTIME/commit.c $STMRUNTIME/objstr.c"
1301 FILES="$FILES $DSMRUNTIME/sandbox.c"
1303 FILES="$FILES $STMRUNTIME/sandbox.c"
1309 FILES="$FILES $DSMRUNTIME/abortreaders.c"
1314 FILES="$FILES $ROBUSTROOT/Runtime/localobjects.c"
1319 FILES="$FILES $ROBUSTROOT/Runtime/coreprof/coreprof.c"
1324 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"
1329 FILES="$FILES $ROBUSTROOT/Runtime/mlp_runtime.c"
1330 FILES="$FILES $ROBUSTROOT/Runtime/psemaphore.c"
1331 FILES="$FILES $ROBUSTROOT/Runtime/workschedule.c"
1334 FILES="$FILES $ROBUSTROOT/Runtime/deque.c"
1340 EXTRAOPTIONS="$EXTRAOPTIONS -DTASK"
1343 EXTRAOPTIONS="$EXTRAOPTIONS -DMULTICORE"
1345 FILES="$FILES $tmpbuilddirectory/taskdefs.c $ROBUSTROOT/Runtime/checkpoint.c $ROBUSTROOT/Runtime/chash.c"
1348 EXTRAOPTIONS="$EXTRAOPTIONS -DRAW"
1350 if $THREADSIMULATEFLAG
1352 # -lpthread for pthread functions, -lrt for message queue functions
1353 EXTRAOPTIONS="$EXTRAOPTIONS -DTHREADSIMULATE -lpthread -lrt"
1359 EXTRAOPTIONS="$EXTRAOPTIONS -DOPTIONAL"
1360 FILES="$FILES $tmpbuilddirectory/optionalarrays.c"
1365 FILES="$FILES $ROBUSTROOT/Runtime/thread.c"
1370 EXTRAOPTIONS="$EXTRAOPTIONS -DCONSCHECK $BUILDDIR/specdir/*.o"
1371 INCLUDES="$INCLUDES -I$BUILDDIR/specdir"
1376 EXTRAOPTIONS="$EXTRAOPTIONS -ldmalloc -DDMALLOC"
1380 echo EXTRAOPTIONS=$EXTRAOPTIONS
1384 gcc -S $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \
1385 -c $tmpbuilddirectory/methods.c -lm
1392 NONMULTICOREOPTS=-DPRECISE_GC
1397 gcc -E $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1398 $tmpbuilddirectory/methods.c $FILES > tmp.c
1401 gcc $INCLUDES $EXTRAOPTIONS $NONMULTICOREOPTS \
1402 $tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin