Ignore:
Timestamp:
Apr 7, 2017, 2:32:03 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
3a48e283
Parents:
4cfcf41
Message:

Expand benchmarks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/generic_types/evaluation/Makefile

    r4cfcf41 r122aecd  
    11CFA = my-cfa
    22DEPFLAGS = -MMD -MP
     3OPT = -O2
     4CFLAGS = $(OPT)
     5CXXFLAGS = $(OPT)
    36
    47.PHONY: all clean distclean bench
    58
    6 all: c-bench cpp-bench cfa-bench c2-bench cpp2-bench cfa2-bench
     9all: c-bench cpp-bench cfa-bench
    710
    811# rewrite object generation to auto-determine deps
     
    1316c-%.o : c-%.c
    1417c-%.o : c-%.c c-%.d
    15         $(COMPILE.c) -O0 $(OUTPUT_OPTION) -c $<
     18        $(COMPILE.c) $(OUTPUT_OPTION) -c $<
    1619
    1720cpp-%.o : cpp-%.cpp
    1821cpp-%.o : cpp-%.cpp cpp-%.d
    19         $(COMPILE.cpp) -O0 $(OUTPUT_OPTION) -c $<
     22        $(COMPILE.cpp) $(OUTPUT_OPTION) -c $<
    2023
    2124cfa-%.o : cfa-%.c
    2225cfa-%.o : cfa-%.c cfa-%.d
    23         $(COMPILE.cfa) -O0 $(OUTPUT_OPTION) -c $<
    24 
    25 c2-%.o : c-%.c
    26 c2-%.o : c-%.c c-%.d
    27         $(COMPILE.c) -O2 $(OUTPUT_OPTION) -c $<
    28 
    29 cpp2-%.o : cpp-%.cpp
    30 cpp2-%.o : cpp-%.cpp cpp-%.d
    31         $(COMPILE.cpp) -O2 $(OUTPUT_OPTION) -c $<
    32 
    33 cfa2-%.o : cfa-%.c
    34 cfa2-%.o : cfa-%.c cfa-%.d
    35         $(COMPILE.cfa) -O2 $(OUTPUT_OPTION) -c $<
     26        $(COMPILE.cfa) $(OUTPUT_OPTION) -c $<
    3627
    3728COBJS = c-stack.o
    3829CPPOBJS =
    3930CFAOBJS = cfa-stack.o
    40 C2OBJS = $(patsubst c-%,c2-%, $(COBJS))
    41 CPP2OBJS = $(patsubst cpp-%,cpp2-%, $(CPPOBJS))
    42 CFA2OBJS = $(patsubst cfa-%,cfa2-%, $(CFAOBJS))
    4331
    4432c-bench: c-bench.c c-bench.d $(COBJS)
    45         $(COMPILE.c) -O0 -o $@ $< $(COBJS) $(LDFLAGS)
     33        $(COMPILE.c) -o $@ $< $(COBJS) $(LDFLAGS)
    4634
    4735cpp-bench: cpp-bench.cpp cpp-bench.d $(CPPOBJS)
    48         $(COMPILE.cpp) -O0 -o $@ $< $(CPPOBJS) $(LDFLAGS)
     36        $(COMPILE.cpp) -o $@ $< $(CPPOBJS) $(LDFLAGS)
    4937
    5038cfa-bench: cfa-bench.c cfa-bench.d $(CFAOBJS)
    51         $(COMPILE.cfa) -O0 -o $@ $< $(CFAOBJS) $(LDFLAGS)
    52 
    53 c2-bench: c-bench.c c-bench.d $(C2OBJS)
    54         $(COMPILE.c) -O2 -o $@ $< $(C2OBJS) $(LDFLAGS)
    55 
    56 cpp2-bench: cpp-bench.cpp cpp-bench.d $(CPP2OBJS)
    57         $(COMPILE.cpp) -O2 -o $@ $< $(CPP2OBJS) $(LDFLAGS)
    58 
    59 cfa2-bench: cfa-bench.c cfa-bench.d $(CFA2OBJS)
    60         $(COMPILE.cfa) -O2 -o $@ $< $(CFA2OBJS) $(LDFLAGS)
     39        $(COMPILE.cfa) -o $@ $< $(CFAOBJS) $(LDFLAGS)
    6140
    6241clean:
     
    6443        -rm $(CPPOBJS) cpp-bench
    6544        -rm $(CFAOBJS) cfa-bench
    66         -rm $(C2OBJS) c2-bench
    67         -rm $(CPP2OBJS) cpp2-bench
    68         -rm $(CFA2OBJS) cfa2-bench
    6945
    7046distclean: clean
     
    7349        -rm $(CFAOBJS:.o=.d) cfa-bench.d
    7450
    75 bench: c-bench cpp-bench cfa-bench c2-bench cpp2-bench cfa2-bench
     51bench: c-bench cpp-bench cfa-bench
    7652        @echo '## C ##'
    7753        @./c-bench
     
    8056        @echo '## Cforall ##'
    8157        @./cfa-bench
    82         @echo '## C -O2 ##'
    83         @./c2-bench
    84         @echo '## C++ -O2 ##'
    85         @./cpp2-bench
    86         @echo '## Cforall -O2 ##'
    87         @./cfa2-bench
    8858
    8959# so make doesn't fail without dependency files
Note: See TracChangeset for help on using the changeset viewer.