source: benchmark/Makefile.am @ 1d72a11

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 1d72a11 was 1d72a11, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Fixed headers for benchmarks in Python, Rust and NodeJs?

  • Property mode set to 100644
File size: 15.3 KB
RevLine 
[ac93b228]1######################## -*- Mode: Makefile-Automake -*- ######################
2##
3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
4##
5## The contents of this file are covered under the licence agreement in the
6## file "LICENCE" distributed with Cforall.
7##
8## Makefile.am --
9##
10## Author           : Peter A. Buhr
11## Created On       : Sun May 31 09:08:15 2015
12## Last Modified By : Peter A. Buhr
[8633485b]13## Last Modified On : Sat Jan 25 09:20:44 2020
14## Update Count     : 255
[ac93b228]15###############################################################################
16
[0c1b566]17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
[107b01a]18ACLOCAL_AMFLAGS  = -I automake
[0c1b566]19
[ac93b228]20# applies to both programs
[7a7ab42]21include $(top_srcdir)/src/cfa.make
22
[dc33b5b]23AM_CFLAGS = -O2 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror
[abec2f8]24AM_CFAFLAGS = -quiet -nodebug
[5a8037a7]25AM_UPPFLAGS = -quiet -nodebug -multi -std=c++14
[7a7ab42]26
[528ccc8]27BENCH_V_CC = $(__bench_v_CC_$(__quiet))
28BENCH_V_CFA = $(__bench_v_CFA_$(__quiet))
29BENCH_V_CXX = $(__bench_v_CXX_$(__quiet))
[90cb6f7]30BENCH_V_UPP = $(__bench_v_UPP_$(__quiet))
[528ccc8]31BENCH_V_GOC = $(__bench_v_GOC_$(__quiet))
[1d72a11]32BENCH_V_PY = $(__bench_v_PY_$(__quiet))
[90cb6f7]33BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet))
[6e540ea]34BENCH_V_NODEJS = $(__bench_v_NODEJS_$(__quiet))
[528ccc8]35BENCH_V_JAVAC = $(__bench_v_JAVAC_$(__quiet))
36
37__quiet = verbose
38__bench_v_CC_quiet = @
39__bench_v_CFA_quiet = @
40__bench_v_CXX_quiet = @
[90cb6f7]41__bench_v_UPP_quiet = @
[528ccc8]42__bench_v_GOC_quiet = @
[90cb6f7]43__bench_v_RUSTC_quiet = @
[528ccc8]44__bench_v_JAVAC_quiet = @
45__bench_v_CC_verbose = $(AM_V_CC)
46__bench_v_CFA_verbose = $(AM_V_CFA)
47__bench_v_CXX_verbose = $(AM_V_CXX)
[90cb6f7]48__bench_v_UPP_verbose = $(AM_V_UPP)
[528ccc8]49__bench_v_GOC_verbose = $(AM_V_GOC)
[1d72a11]50__bench_v_PY_verbose = $(AM_V_PY)
51__bench_v_RUSTC_verbose = $(AM_V_RUST)
[6e540ea]52__bench_v_NODEJS_verbose = $(AM_V_NODEJS)
[528ccc8]53__bench_v_JAVAC_verbose = $(AM_V_JAVAC)
54
55
[5e49e47]56TOOLSDIR = ${abs_top_builddir}/tools/
57REPEAT   = ${abs_top_builddir}/tools/repeat
58STATS    = ${abs_top_srcdir}/tools/stat.py
[2385236]59# NEED AT LEAST 4 DATA VALUES FOR BENCHMARKS BECAUSE THE MAX AND MIN VALUES ARE REMOVED
[c12869e]60repeats  = 13 # 31 for benchmarks
[c6f1f3e]61arch     = x64
[05f4b85]62skipcompile = no
[a5b7905]63TIME_FORMAT = "%E"
[2086ab2]64PRINT_FORMAT = %20s: #Comments needed for spacing
[034165a]65
[d0c91a6]66# Dummy hack tricks
[5e49e47]67EXTRA_PROGRAMS = dummy # build but do not install
68dummy_SOURCES = dummyC.c dummyCXX.cpp
69
70dummyC.c:
[580c11b]71        echo "int main() { return 0; }" > ${@}
[5e49e47]72
73dummyCXX.cpp:
[580c11b]74        echo "int main() { return 0; }" > ${@}
[5e49e47]75
[4aac9ff]76.SILENT:                # do not print recipe
[034165a]77.NOTPARALLEL:
[4aac9ff]78.PHONY: jenkins cleancsv
[ac93b228]79
[43fa66e]80## =========================================================================================================
[90cb6f7]81
[26fd986]82all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT)
[4cedd9f]83
[4eb07bc]84basic_loop_DURATION = 15000000000
85basic_function_DURATION = 10000000000
[2316525]86basic_tls_fetch_add_DURATION = 10000000000
[4eb07bc]87basic_DURATION = 250000000
88
[c93fd72]89ctxswitch_pthread_DURATION = 25000000
[9e1fa35]90ctxswitch_rust_thread_DURATION = $(ctxswitch_pthread_DURATION)
[4eb07bc]91ctxswitch_cfa_generator_DURATION = 5000000000
[8633485b]92ctxswitch_nodejs_await_DURATION = 5000000
[4eb07bc]93ctxswitch_DURATION = 100000000
94
[26fd986]95#mutex_java_DURATION = 10000000
[4eb07bc]96mutex_DURATION = 50000000
97
[26fd986]98schedint_pthread_DURATION = 1000000
99schedint_java_DURATION = $(schedint_pthread_DURATION)
100schedint_rust_DURATION = $(schedint_pthread_DURATION)
101schedint_DURATION = 10000000
[4eb07bc]102
[26fd986]103schedext_DURATION = 10000000
[4eb07bc]104
105creation_pthread_DURATION = 250000
[26fd986]106creation_rust_thread_DURATION = ${creation_pthread_DURATION}
107creation_java_thread_DURATION = ${creation_pthread_DURATION}
[9e1fa35]108creation_cfa_coroutine_DURATION = 100000000
109creation_cfa_coroutine_eager_DURATION = 10000000
110creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION}
111creation_cfa_thread_DURATION = 10000000
112creation_upp_thread_DURATION = ${creation_cfa_thread_DURATION}
113creation_DURATION = 10000000
[4eb07bc]114
[a5b7905]115%.run : %$(EXEEXT) ${REPEAT}
[580c11b]116        rm -f .result.log
117        echo "------------------------------------------------------"
118        echo $<
[c12869e]119        ${REPEAT} ${repeats} -- ./a.out\
[c93fd72]120                $(if ${$(subst -,_,$(basename $@))_DURATION},\
121                        ${$(subst -,_,$(basename $@))_DURATION},\
122                        ${$(firstword $(subst -, ,$(basename $@)))_DURATION}) | tee -a .result.log
[580c11b]123        ${STATS} .result.log
124        echo "------------------------------------------------------"
125        rm -f a.out .result.log *.class
[ac93b228]126
[c12869e]127#       ${REPEAT} ${repeats} -- /usr/bin/time -f "%Uu %Ss %Er %Mkb" ./a.out
128
[a5b7905]129%.runquiet :
[580c11b]130        +make $(basename $@) CFLAGS="-w" __quiet=quiet
131        taskset -c 1 ./a.out
132        rm -f a.out
[a5b7905]133
134%.make :
[580c11b]135        printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@))
136        +/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1
[a5b7905]137
138${REPEAT} :
[580c11b]139        +make -C ${abs_top_builddir}/tools repeat
[a5b7905]140
141## =========================================================================================================
142
[f15fe0a]143FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@
144
[4aac9ff]145cleancsv:
146        rm -f compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv
147
148jenkins$(EXEEXT): cleancsv
[05f4b85]149@DOifskipcompile@
[580c11b]150        +make compile.csv
151        -+make compile.diff.csv
[05f4b85]152@DOendif@
[580c11b]153        +make ctxswitch.csv
154        -+make ctxswitch.diff.csv
155        +make mutex.csv
156        -+make mutex.diff.csv
[26fd986]157        +make schedint.csv
158        -+make schedint.diff.csv
[d9f2874]159@DOifskipcompile@
[c6f1f3e]160        cat compile.csv
161        -cat compile.diff.csv
[d9f2874]162@DOendif@
[c6f1f3e]163        cat ctxswitch.csv
164        -cat ctxswitch.diff.csv
165        cat mutex.csv
166        -cat mutex.diff.csv
[26fd986]167        cat schedint.csv
168        -cat schedint.diff.csv
[f15fe0a]169
170compile.csv:
[4aac9ff]171        echo "building $@"
[580c11b]172        echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@
173        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@
174        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@
175        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@
176        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@
177        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@
178        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@
179        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@
180        +make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@
181        $(srcdir)/fixcsv.sh $@
[f15fe0a]182
183ctxswitch.csv:
[4aac9ff]184        echo "building $@"
[580c11b]185        echo "generator,coroutine,thread" > $@
186        +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@
187        +make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@
188        +make ctxswitch-cfa_thread.runquiet >> $@
189        $(srcdir)/fixcsv.sh $@
[f15fe0a]190
191mutex.csv:
[4aac9ff]192        echo "building $@"
[580c11b]193        echo "1-monitor,2-monitor" > $@
194        +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@
195        +make mutex-cfa2.runquiet >> $@
196        $(srcdir)/fixcsv.sh $@
[f15fe0a]197
[26fd986]198schedint.csv:
[4aac9ff]199        echo "building $@"
[26fd986]200        echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@
201        +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@
202        +make schedint-cfa2.runquiet >> $@ && echo -n ',' >> $@
203        +make schedext-cfa1.runquiet >> $@ && echo -n ',' >> $@
204        +make schedext-cfa2.runquiet >> $@
[580c11b]205        $(srcdir)/fixcsv.sh $@
[ac93b228]206
[c6f1f3e]207%.diff.csv: %.csv
[580c11b]208        test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false)
209        $(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@
[c6f1f3e]210
[d885a58]211## =========================================================================================================
212
[4eb07bc]213BASIC_DEPEND  =                                 \
214        basic-loop.run                          \
[90cb6f7]215        basic-function.run                      \
216        basic-fetch_add.run                     \
217        basic-ttst_lock.run                     \
218        basic-tls-fetch_add.run
219
220basic-loop$(EXEEXT):
221        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c
222
223basic-function$(EXEEXT):
224        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c
225
226basic-fetch_add$(EXEEXT):
227        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c
228
229basic-ttst_lock$(EXEEXT):
230        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c
231
232basic-tls-fetch_add$(EXEEXT):
233        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c
[d885a58]234
[90cb6f7]235basic$(EXEEXT): $(BASIC_DEPEND)
[d885a58]236
[034165a]237## =========================================================================================================
[90cb6f7]238
239CTXSWITCH_DEPEND  =                     \
[dc33b5b]240        ctxswitch-cfa_generator.run     \
[b7170a64]241        ctxswitch-cfa_coroutine.run     \
242        ctxswitch-cfa_thread.run        \
[6810fcb]243        ctxswitch-cfa_thread2.run       \
[b7170a64]244        ctxswitch-upp_coroutine.run     \
[50abab9]245        ctxswitch-upp_thread.run        \
[c12869e]246        ctxswitch-python_coroutine.run  \
247        ctxswitch-nodejs_coroutine.run  \
[7ac3151]248        ctxswitch-nodejs_await.run      \
[c12869e]249        ctxswitch-goroutine_thread.run  \
[90cb6f7]250        ctxswitch-rust_thread.run       \
[580c11b]251        ctxswitch-nodejs_coroutine.run  \
[c12869e]252        ctxswitch-java_thread.run       \
253        ctxswitch-pthread.run
[dc33b5b]254
[41cca44]255if WITH_LIBFIBRE
[90cb6f7]256CTXSWITCH_DEPEND  +=                    \
257        ctxswitch-kos_fibre.run         \
[41cca44]258        ctxswitch-kos_fibre2.run
259
260ctxswitch-kos_fibre$(EXEEXT):
[528ccc8]261        $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp  -I$(LIBFIBRE_DIR) -lfibre
[41cca44]262
263ctxswitch-kos_fibre2$(EXEEXT):
[528ccc8]264        $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre
[41cca44]265endif
266
267ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND)
268
[dc33b5b]269ctxswitch-cfa_generator$(EXEEXT):
[90cb6f7]270        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa
[dc33b5b]271
[034165a]272ctxswitch-cfa_coroutine$(EXEEXT):
[90cb6f7]273        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa
[034165a]274
275ctxswitch-cfa_thread$(EXEEXT):
[90cb6f7]276        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa
[6810fcb]277
278ctxswitch-cfa_thread2$(EXEEXT):
[90cb6f7]279        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa
[034165a]280
281ctxswitch-upp_coroutine$(EXEEXT):
[90cb6f7]282        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc
[034165a]283
284ctxswitch-upp_thread$(EXEEXT):
[90cb6f7]285        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc
[ac93b228]286
[c12869e]287ctxswitch-python_coroutine$(EXEEXT):
[1d72a11]288        $(BENCH_V_PY)echo "#!/bin/sh" > a.out
[c12869e]289        echo "python3.7 $(srcdir)/ctxswitch/python_cor.py" >> a.out
290        chmod a+x a.out
[90cb6f7]291
[580c11b]292ctxswitch-nodejs_coroutine$(EXEEXT):
[1d72a11]293        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
[2316525]294        echo "nodejs $(srcdir)/ctxswitch/node_cor.js" >> a.out
[4eb07bc]295        chmod a+x a.out
[580c11b]296
[7ac3151]297ctxswitch-nodejs_await$(EXEEXT):
[1d72a11]298        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
[7ac3151]299        echo "nodejs $(srcdir)/ctxswitch/node_await.js" >> a.out
300        chmod a+x a.out
301
[c12869e]302ctxswitch-goroutine_thread$(EXEEXT):
303        $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go
304
305ctxswitch-rust_thread$(EXEEXT):
306        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs
307
[50abab9]308ctxswitch-java_thread$(EXEEXT):
[528ccc8]309        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java
[580c11b]310        echo "#!/bin/sh" > a.out
311        echo "java JavaThread" >> a.out
312        chmod a+x a.out
313
[c12869e]314ctxswitch-pthread$(EXEEXT):
315        $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c
316
[f54a0ab]317## =========================================================================================================
[90cb6f7]318
319mutex$(EXEEXT) :                \
[f54a0ab]320        mutex-cfa1.run          \
321        mutex-cfa2.run          \
[6aa537a4]322        mutex-cfa4.run          \
[9e1fa35]323        mutex-upp.run           \
[90cb6f7]324        mutex-go.run            \
325        mutex-rust.run          \
[c12869e]326        mutex-java.run          \
327        mutex-pthread.run
[f54a0ab]328
[90cb6f7]329mutex-pthread$(EXEEXT):
[4eb07bc]330        $(BENCH_V_CC)$(COMPILE) $(srcdir)/mutex/pthreads.c
[f54a0ab]331
332mutex-cfa1$(EXEEXT):
[4eb07bc]333        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa1.cfa
[f54a0ab]334
335mutex-cfa2$(EXEEXT):
[4eb07bc]336        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa2.cfa
[f54a0ab]337
338mutex-cfa4$(EXEEXT):
[4eb07bc]339        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa4.cfa
[90cb6f7]340
[9e1fa35]341mutex-upp$(EXEEXT):
342        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/mutex/upp.cc
343
[90cb6f7]344mutex-go$(EXEEXT):
345        $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go
346
347mutex-rust$(EXEEXT):
348        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs
[034165a]349
[90cb6f7]350mutex-java$(EXEEXT):
[528ccc8]351        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java
[580c11b]352        echo "#!/bin/sh" > a.out
353        echo "java JavaThread" >> a.out
354        chmod a+x a.out
[6aa537a4]355
[9f0b975]356## =========================================================================================================
[90cb6f7]357
[26fd986]358schedint$(EXEEXT) :             \
359        schedint-cfa1.run       \
360        schedint-cfa2.run       \
361        schedint-cfa4.run       \
362        schedint-upp.run        \
363        schedint-rust.run       \
364        schedint-java.run       \
365        schedint-pthread.run
[9f0b975]366
[26fd986]367schedint-cfa1$(EXEEXT):
[4eb07bc]368        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa1.cfa
[9f0b975]369
[26fd986]370schedint-cfa2$(EXEEXT):
[4eb07bc]371        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa2.cfa
[9f0b975]372
[26fd986]373schedint-cfa4$(EXEEXT):
[4eb07bc]374        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa4.cfa
[90cb6f7]375
[26fd986]376schedint-upp$(EXEEXT):
377        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedint/upp.cc
378
379schedint-rust$(EXEEXT):
[90cb6f7]380        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs
[9f0b975]381
[26fd986]382schedint-java$(EXEEXT):
[528ccc8]383        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java
[580c11b]384        echo "#!/bin/sh" > a.out
385        echo "java JavaThread" >> a.out
386        chmod a+x a.out
[6aa537a4]387
[26fd986]388schedint-pthread$(EXEEXT):
389        $(BENCH_V_CC)$(COMPILE) $(srcdir)/schedint/pthreads.c
[90cb6f7]390
[26fd986]391## =========================================================================================================
[9f0b975]392
[26fd986]393schedext$(EXEEXT) :             \
394        schedext-cfa1.run       \
395        schedext-cfa2.run       \
396        schedext-cfa4.run       \
397        schedext-upp.run        \
398        schedext-goroutine.run
[9f0b975]399
[26fd986]400schedext-cfa1$(EXEEXT):
[4eb07bc]401        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa1.cfa
[9f0b975]402
[26fd986]403schedext-cfa2$(EXEEXT):
[4eb07bc]404        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa2.cfa
[9f0b975]405
[26fd986]406schedext-cfa4$(EXEEXT):
[4eb07bc]407        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa4.cfa
[9f0b975]408
[26fd986]409schedext-upp$(EXEEXT):
410        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedext/upp.cc
411
412schedext-goroutine$(EXEEXT):
413        $(BENCH_V_GOC)go build -o a.out $(srcdir)/schedext/goroutine.go
414
415
[4cedd9f]416## =========================================================================================================
[90cb6f7]417
418creation$(EXEEXT) :                             \
[26fd986]419        creation-cfa_generator.run              \
[3351cc0]420        creation-cfa_coroutine.run              \
421        creation-cfa_coroutine_eager.run        \
422        creation-cfa_thread.run                 \
423        creation-upp_coroutine.run              \
[50abab9]424        creation-upp_thread.run                 \
[c12869e]425        creation-python_coroutine.run           \
[9e1fa35]426        creation-nodejs_coroutine.run           \
[c12869e]427        creation-goroutine_thread.run           \
428        creation-rust_thread.run                \
429        creation-java_thread.run                \
430        creation-pthread.run
[4cedd9f]431
[26fd986]432creation-cfa_generator$(EXEEXT):
433        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_gen.cfa
434
[4cedd9f]435creation-cfa_coroutine$(EXEEXT):
[4eb07bc]436        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa
[4cedd9f]437
[3351cc0]438creation-cfa_coroutine_eager$(EXEEXT):
[4eb07bc]439        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa  -DEAGER
[3351cc0]440
[4cedd9f]441creation-cfa_thread$(EXEEXT):
[4eb07bc]442        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_thrd.cfa
[4cedd9f]443
444creation-upp_coroutine$(EXEEXT):
[4eb07bc]445        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_cor.cc
[4cedd9f]446
447creation-upp_thread$(EXEEXT):
[4eb07bc]448        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_thrd.cc
[4cedd9f]449
[c12869e]450creation-python_coroutine$(EXEEXT):
[1d72a11]451        $(BENCH_V_PY)echo "#!/bin/sh" > a.out
[c12869e]452        echo "python3.7 $(srcdir)/creation/python_cor.py" >> a.out
453        chmod a+x a.out
[90cb6f7]454
[9e1fa35]455creation-nodejs_coroutine$(EXEEXT):
[1d72a11]456        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
[2316525]457        echo "nodejs $(srcdir)/creation/node_cor.js" >> a.out
[9e1fa35]458        chmod a+x a.out
459
[c12869e]460creation-goroutine_thread$(EXEEXT):
461        $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go
462
463creation-rust_thread$(EXEEXT):
464        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs
465
[26fd986]466creation-java_thread$(EXEEXT):
[528ccc8]467        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java
[580c11b]468        echo "#!/bin/sh" > a.out
469        echo "java JavaThread" >> a.out
470        chmod a+x a.out
[50abab9]471
[c12869e]472creation-pthread$(EXEEXT):
473        $(BENCH_V_CC)$(COMPILE) $(srcdir)/creation/pthreads.c
474
[034165a]475## =========================================================================================================
476
[90cb6f7]477compile$(EXEEXT) :              \
[a5b7905]478        compile-array.make      \
479        compile-attributes.make \
480        compile-empty.make      \
481        compile-expression.make \
482        compile-io.make         \
483        compile-monitor.make    \
484        compile-operators.make  \
485        compile-typeof.make
[3edc2df]486
[524ed86]487testdir = $(top_srcdir)/tests
[d3db83c]488
[3edc2df]489compile-array$(EXEEXT):
[580c11b]490        $(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa
[3edc2df]491
492compile-attributes$(EXEEXT):
[580c11b]493        $(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa
[3edc2df]494
495compile-empty$(EXEEXT):
[580c11b]496        $(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa
[3edc2df]497
498compile-expression$(EXEEXT):
[580c11b]499        $(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa
[3edc2df]500
501compile-io$(EXEEXT):
[580c11b]502        $(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa
[3edc2df]503
504compile-monitor$(EXEEXT):
[580c11b]505        $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa
[3edc2df]506
507compile-operators$(EXEEXT):
[580c11b]508        $(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa
[3edc2df]509
510compile-thread$(EXEEXT):
[580c11b]511        $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa
[3edc2df]512
513compile-typeof$(EXEEXT):
[580c11b]514        $(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa
Note: See TracBrowser for help on using the repository browser.