bug fix: heap contexts for call sites were propgated from caller to callee incorrectl...
[IRC.git] / Robust / src / Benchmarks / oooJava / micro-master-makefile
1 ##########################################################################
2 #
3 #  This master makefile should be included in each local makefile of a
4 #  MICRO benchmark directory.  Note that joptimize is disabled so
5 #  nonsensical code patterns will still generate the micro structure
6 #  desired.
7 #
8 ##########################################################################
9
10 PROGRAM=test
11 SOURCE_FILES=test.java
12
13
14 BUILDSCRIPT=../../../buildscript
15
16
17 COREPROFOVERFLOW= #-coreprof-checkoverflow
18 USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
19         -coreprof-eventwords 1024*1024*512 \
20         -coreprof-enable cpe_main \
21         -coreprof-enable cpe_taskdispatch
22 #       -coreprof-enable cpe_workschedgrab \
23         -coreprof-enable cpe_runmalloc \
24         -coreprof-enable cpe_taskexecute \
25         -coreprof-enable cpe_poolalloc \
26         -coreprof-enable cpe_taskretire \
27         -coreprof-enable cpe_preparememq \
28         -coreprof-enable cpe_runfree \
29         -coreprof-enable cpe_count_poolalloc \
30         -coreprof-enable cpe_count_poolreuse \
31         -coreprof-enable cpe_taskstallvar \
32         -coreprof-enable cpe_taskstallmem
33
34
35 USEOOO= -ooojava 24 2      -squeue #-mempool-detect-misuse #-ooodebug-disable-task-mem-pool #-ooodebug 
36 USERCR= -ooojava 23 2 -rcr -squeue #-mempool-detect-misuse #-ooodebug-disable-task-mem-pool #-ooodebug 
37 BSFLAGS= -64bit -mainclass $(PROGRAM)  -heapsize-mb 1000 -garbagestats -joptimize -optimize -noloop #-debug -debug-deque # src-after-pp
38
39 DRELEASEMODE=-disjoint-release-mode -disjoint-dvisit-stack-callees-on-top -disjoint-alias-file aliases.txt tabbed
40 DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
41
42 default:
43         $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par  $(SOURCE_FILES)
44
45 single:
46         $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF)                       -o $(PROGRAM)s -builddir sing $(SOURCE_FILES) 
47
48 ooo:
49         $(BUILDSCRIPT)         $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par  $(SOURCE_FILES) 
50
51 rcr:
52         $(BUILDSCRIPT)         $(BSFLAGS) $(USECOREPROF) $(USERCR) $(DISJOINT) -o $(PROGRAM)r -builddir rcr  $(SOURCE_FILES) 
53
54 clean:
55         rm -f  $(PROGRAM)p.bin $(PROGRAM)r.bin $(PROGRAM)s.bin
56         rm -fr par rcr sing
57         rm -f  tmp.c
58         rm -f  *~
59         rm -f  *.dot
60         rm -f  *.png
61         rm -f  *.txt
62         rm -f  aliases.txt
63         rm -f  mlpReport*txt
64         rm -f  results*txt
65         rm -f  *log
66         rm -f  coreprof.dat
67         rm -f  trace.out