bug fixes for oooJava, some debug events for coreprof for exploring things not worth...
[IRC.git] / Robust / src / Benchmarks / oooJava / master-makefile
1 ##########################################################################
2 #
3 #  This master makefile shoudl be included in each local makefile of a
4 #  benchmark directory.  The local makefile should define PROGRAM as
5 #  the name of the class with the main method, which also becomes the
6 #  name of the output binary.  The local makefile should also declare
7 #  SOURCE_FILES with whatever Java files should be compiled
8 #
9 ##########################################################################
10
11
12 BUILDSCRIPT=../../../buildscript
13
14
15 COREPROFOVERFLOW= #-coreprof-checkoverflow
16 USECOREPROF= #coreprof $(COREPROFOVERFLOW) \
17         -coreprof-eventwords 1024*1024*128 \
18         -coreprof-enable cpe_main \
19         -coreprof-enable cpe_runmalloc \
20         -coreprof-enable cpe_taskexecute \
21         -coreprof-enable cpe_taskdispatch
22 #       -coreprof-enable cpe_preparememq
23 #       -coreprof-enable cpe_runfree \
24 #       -coreprof-enable cpe_count_poolalloc \
25 #       -coreprof-enable cpe_count_poolreuse \
26 #       -coreprof-enable cpe_workschedgrab \
27 #       -coreprof-enable cpe_taskretire \
28 #       -coreprof-enable cpe_taskstallvar \
29 #       -coreprof-enable cpe_taskstallmem
30
31
32 USEOOO= -ooojava 24 2 #-ooodebug-disable-task-mem-pool #-ooodebug 
33 BSFLAGS= -64bit -mainclass $(PROGRAM)  -heapsize-mb 8000 -garbagestats -joptimize -noloop -optimize #src-after-pp #-debug
34
35 DRELEASEMODE=-disjoint-release-mode -disjoint-dvisit-stack-callees-on-top -disjoint-alias-file aliases.txt tabbed
36 DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
37
38 default:
39         $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par  $(SOURCE_FILES)
40
41 single:
42         $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF)                       -o $(PROGRAM)s -builddir sing $(SOURCE_FILES) 
43
44 ooo:
45         $(BUILDSCRIPT)         $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par  $(SOURCE_FILES) 
46
47 clean:
48         rm -f  $(PROGRAM)p.bin $(PROGRAM)s.bin
49         rm -fr par sing
50         rm -f tmp.c
51         rm -f  *~
52         rm -f  *.dot
53         rm -f  *.png
54         rm -f  *.txt
55         rm -f  aliases.txt
56         rm -f  mlpReport*txt
57         rm -f  results*txt
58         rm -f coreprof.dat
59         rm -f trace.out