Changes in / [1f690b3:9507ce3]
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
r1f690b3 r9507ce3 20 20 include $(top_srcdir)/src/cfa.make 21 21 22 UPPC OMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS)22 UPPCC = u++ 23 23 24 24 AM_CFLAGS = -O2 -Wall -I$(srcdir) -lrt -pthread … … 34 34 PRINT_FORMAT = %20s: #Comments needed for spacing 35 35 36 #prevent any tests in parallel 36 37 .NOTPARALLEL: 37 38 38 noinst_PROGRAMS = 39 39 #make sure automake includes the compile rules for C and C++ 40 EXTRA_PROGRAMS = dummy 41 dummy_SOURCES = c.c cxx.cpp 42 43 ## ========================================================================================================= 40 44 all : ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT) 41 45 … … 47 51 @${STATS} .result.log 48 52 @echo "------------------------------------------------------" 49 @rm -f a.out .result.log 53 @rm -f a.out .result.log *.class 50 54 51 55 %.runquiet : … … 100 104 ## ========================================================================================================= 101 105 loop$(EXEEXT): 102 $( COMPILE) -DBENCH_N=5000000000loop.c106 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/loop.c 103 107 104 108 function$(EXEEXT): 105 $( COMPILE) -DBENCH_N=5000000000function.c109 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/function.c 106 110 107 111 fetch_add$(EXEEXT): 108 $( COMPILE) -DBENCH_N=500000000fetch_add.c112 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000000 $(srcdir)/fetch_add.c 109 113 110 114 ## ========================================================================================================= … … 129 133 130 134 ctxswitch-kos_fibre$(EXEEXT): 131 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre135 $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 132 136 133 137 ctxswitch-kos_fibre2$(EXEEXT): 134 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre138 $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 135 139 endif 136 140 … … 138 142 139 143 ctxswitch-pthread$(EXEEXT): 140 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c144 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c 141 145 142 146 ctxswitch-cfa_coroutine$(EXEEXT): 143 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.c147 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.c 144 148 145 149 ctxswitch-cfa_thread$(EXEEXT): 146 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.c150 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.c 147 151 148 152 ctxswitch-cfa_thread2$(EXEEXT): 149 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.c153 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.c 150 154 151 155 ctxswitch-upp_coroutine$(EXEEXT): 152 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc156 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc 153 157 154 158 ctxswitch-upp_thread$(EXEEXT): 155 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc159 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 156 160 157 161 ctxswitch-goroutine$(EXEEXT): 158 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go162 $(AM_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go 159 163 160 164 ctxswitch-java_thread$(EXEEXT): 161 @javac$(srcdir)/ctxswitch/JavaThread.java165 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 162 166 @echo "#!/bin/sh" > a.out 163 @echo " cd ctxswitch &&java JavaThread" >> a.out167 @echo "java JavaThread" >> a.out 164 168 @chmod a+x a.out 165 169 … … 177 181 178 182 mutex-pthread_lock$(EXEEXT): 179 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c183 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c 180 184 181 185 mutex-upp$(EXEEXT): 182 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc186 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc 183 187 184 188 mutex-cfa1$(EXEEXT): 185 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.c189 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.c 186 190 187 191 mutex-cfa2$(EXEEXT): 188 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.c192 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.c 189 193 190 194 mutex-cfa4$(EXEEXT): 191 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.c195 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.c 192 196 193 197 mutex-java_thread$(EXEEXT): 194 @javac$(srcdir)/mutex/JavaThread.java198 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 195 199 @echo "#!/bin/sh" > a.out 196 @echo " cd mutex &&java JavaThread" >> a.out200 @echo "java JavaThread" >> a.out 197 201 @chmod a+x a.out 198 202 … … 207 211 208 212 signal-pthread_cond$(EXEEXT): 209 @$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c213 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c 210 214 211 215 signal-upp$(EXEEXT): 212 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc216 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc 213 217 214 218 signal-cfa1$(EXEEXT): 215 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.c219 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.c 216 220 217 221 signal-cfa2$(EXEEXT): 218 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.c222 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.c 219 223 220 224 signal-cfa4$(EXEEXT): 221 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.c225 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.c 222 226 223 227 signal-java_thread$(EXEEXT): 224 @javac$(srcdir)/schedint/JavaThread.java228 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 225 229 @echo "#!/bin/sh" > a.out 226 @echo " cd schedint &&java JavaThread" >> a.out230 @echo "java JavaThread" >> a.out 227 231 @chmod a+x a.out 228 232 … … 236 240 237 241 waitfor-upp$(EXEEXT): 238 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc242 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc 239 243 240 244 waitfor-cfa1$(EXEEXT): 241 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.c245 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.c 242 246 243 247 waitfor-cfa2$(EXEEXT): 244 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.c248 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.c 245 249 246 250 waitfor-cfa4$(EXEEXT): 247 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.c251 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.c 248 252 249 253 ## ========================================================================================================= … … 259 263 260 264 creation-cfa_coroutine$(EXEEXT): 261 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c265 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c 262 266 263 267 creation-cfa_coroutine_eager$(EXEEXT): 264 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c268 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c 265 269 266 270 creation-cfa_thread$(EXEEXT): 267 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.c271 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.c 268 272 269 273 creation-upp_coroutine$(EXEEXT): 270 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc274 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc 271 275 272 276 creation-upp_thread$(EXEEXT): 273 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc277 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc 274 278 275 279 creation-pthread$(EXEEXT): 276 @$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c280 $(AM_V_CC)$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c 277 281 278 282 creation-goroutine$(EXEEXT): 279 @go build -o a.out $(srcdir)/creation/goroutine.go283 $(AM_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go 280 284 281 285 creation-java_thread$(EXEEXT): 282 @javac$(srcdir)/creation/JavaThread.java286 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 283 287 @echo "#!/bin/sh" > a.out 284 @echo " cd creation &&java JavaThread" >> a.out288 @echo "java JavaThread" >> a.out 285 289 @chmod a+x a.out 286 290 … … 301 305 302 306 compile-array$(EXEEXT): 303 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.c307 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.c 304 308 305 309 compile-attributes$(EXEEXT): 306 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.c310 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.c 307 311 308 312 compile-empty$(EXEEXT): 309 @$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.c313 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.c 310 314 311 315 compile-expression$(EXEEXT): 312 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.c316 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.c 313 317 314 318 compile-io$(EXEEXT): 315 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.c319 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.c 316 320 317 321 compile-monitor$(EXEEXT): 318 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.c322 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.c 319 323 320 324 compile-operators$(EXEEXT): 321 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.c325 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.c 322 326 323 327 compile-thread$(EXEEXT): 324 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.c328 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.c 325 329 326 330 compile-typeof$(EXEEXT): 327 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.c328 331 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.c 332 -
benchmark/Makefile.in
r1f690b3 r9507ce3 17 17 ######################## -*- Mode: Makefile-Automake -*- ###################### 18 18 ############################################################################### 19 20 19 VPATH = @srcdir@ 21 20 am__is_gnu_make = { \ … … 92 91 build_triplet = @build@ 93 92 host_triplet = @host@ 94 noinst_PROGRAMS = 93 EXTRA_PROGRAMS = dummy$(EXEEXT) 95 94 @WITH_LIBFIBRE_TRUE@am__append_1 = \ 96 95 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre.run \ … … 108 107 CONFIG_CLEAN_FILES = 109 108 CONFIG_CLEAN_VPATH_FILES = 110 PROGRAMS = $(noinst_PROGRAMS) 109 am_dummy_OBJECTS = c.$(OBJEXT) cxx.$(OBJEXT) 110 dummy_OBJECTS = $(am_dummy_OBJECTS) 111 dummy_LDADD = $(LDADD) 111 112 AM_V_P = $(am__v_P_@AM_V@) 112 113 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) … … 121 122 am__v_at_0 = @ 122 123 am__v_at_1 = 123 SOURCES = 124 DIST_SOURCES = 124 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) 125 depcomp = $(SHELL) $(top_srcdir)/automake/depcomp 126 am__depfiles_maybe = depfiles 127 am__mv = mv -f 128 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 129 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 130 AM_V_CC = $(am__v_CC_@AM_V@) 131 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) 132 am__v_CC_0 = @echo " CC " $@; 133 am__v_CC_1 = 134 CCLD = $(CC) 135 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 136 AM_V_CCLD = $(am__v_CCLD_@AM_V@) 137 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) 138 am__v_CCLD_0 = @echo " CCLD " $@; 139 am__v_CCLD_1 = 140 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 141 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) 142 AM_V_CXX = $(am__v_CXX_@AM_V@) 143 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) 144 am__v_CXX_0 = @echo " CXX " $@; 145 am__v_CXX_1 = 146 CXXLD = $(CXX) 147 CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ 148 -o $@ 149 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) 150 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) 151 am__v_CXXLD_0 = @echo " CXXLD " $@; 152 am__v_CXXLD_1 = 153 SOURCES = $(dummy_SOURCES) 154 DIST_SOURCES = $(dummy_SOURCES) 125 155 am__can_run_installinfo = \ 126 156 case $$AM_UPDATE_INFO_DIR in \ … … 129 159 esac 130 160 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 131 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/src/cfa.make \ 132 compile 161 # Read a list of newline-separated strings from the standard input, 162 # and print each of them once, without duplicates. Input order is 163 # *not* preserved. 164 am__uniquify_input = $(AWK) '\ 165 BEGIN { nonempty = 0; } \ 166 { items[$$0] = 1; nonempty = 1; } \ 167 END { if (nonempty) { for (i in items) print i; }; } \ 168 ' 169 # Make sure the list of sources is unique. This is necessary because, 170 # e.g., the same source file might be shared among _SOURCES variables 171 # for different programs/libraries. 172 am__define_uniq_tagged_files = \ 173 list='$(am__tagged_files)'; \ 174 unique=`for i in $$list; do \ 175 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 176 done | $(am__uniquify_input)` 177 ETAGS = etags 178 CTAGS = ctags 179 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/automake/depcomp \ 180 $(top_srcdir)/src/cfa.make compile 133 181 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 134 182 ACLOCAL = @ACLOCAL@ … … 269 317 am__v_CFA_0 = @echo " CFA " $@; 270 318 am__v_CFA_1 = 319 AM_V_JAVAC = $(am__v_JAVAC_@AM_V@) 320 am__v_JAVAC_ = $(am__v_JAVAC_@AM_DEFAULT_V@) 321 am__v_JAVAC_0 = @echo " JAVAC " $@; 322 am__v_JAVAC_1 = 323 AM_V_GOC = $(am__v_GOC_@AM_V@) 324 am__v_GOC_ = $(am__v_GOC_@AM_DEFAULT_V@) 325 am__v_GOC_0 = @echo " GOC " $@; 326 am__v_GOC_1 = 327 UPPCOMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS) 328 AM_V_UPP = $(am__v_UPP_@AM_V@) 329 am__v_UPP_ = $(am__v_UPP_@AM_DEFAULT_V@) 330 am__v_UPP_0 = @echo " UPP " $@; 331 am__v_UPP_1 = 271 332 272 333 # applies to both programs 273 UPPC OMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS)334 UPPCC = u++ 274 335 AM_CFLAGS = -O2 -Wall -I$(srcdir) -lrt -pthread 275 336 AM_CFAFLAGS = -quiet -in-tree -nodebug … … 282 343 TIME_FORMAT = "%E" 283 344 PRINT_FORMAT = %20s: #Comments needed for spacing 345 dummy_SOURCES = c.c cxx.cpp 284 346 CTXSWITCH_DEPEND = loop.run function.run fetch_add.run \ 285 347 ctxswitch-pthread.run ctxswitch-cfa_coroutine.run \ … … 292 354 293 355 .SUFFIXES: 294 .SUFFIXES: .c fa .lo .o356 .SUFFIXES: .c .cfa .cpp .lo .o .obj 295 357 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/src/cfa.make $(am__configure_deps) 296 358 @for dep in $?; do \ … … 324 386 $(am__aclocal_m4_deps): 325 387 326 clean-noinstPROGRAMS: 327 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) 328 tags TAGS: 329 330 ctags CTAGS: 331 332 cscope cscopelist: 333 388 dummy$(EXEEXT): $(dummy_OBJECTS) $(dummy_DEPENDENCIES) $(EXTRA_dummy_DEPENDENCIES) 389 @rm -f dummy$(EXEEXT) 390 $(AM_V_CXXLD)$(CXXLINK) $(dummy_OBJECTS) $(dummy_LDADD) $(LIBS) 391 392 mostlyclean-compile: 393 -rm -f *.$(OBJEXT) 394 395 distclean-compile: 396 -rm -f *.tab.c 397 398 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c.Po@am__quote@ 399 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cxx.Po@am__quote@ 400 401 .c.o: 402 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 403 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 404 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 405 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 406 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 407 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< 408 409 .c.obj: 410 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ 411 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ 412 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 413 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 414 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 415 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 416 417 .cpp.o: 418 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 419 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 420 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 421 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 422 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 423 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< 424 425 .cpp.obj: 426 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ 427 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ 428 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 429 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 430 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 431 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 432 433 ID: $(am__tagged_files) 434 $(am__define_uniq_tagged_files); mkid -fID $$unique 435 tags: tags-am 436 TAGS: tags 437 438 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 439 set x; \ 440 here=`pwd`; \ 441 $(am__define_uniq_tagged_files); \ 442 shift; \ 443 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ 444 test -n "$$unique" || unique=$$empty_fix; \ 445 if test $$# -gt 0; then \ 446 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 447 "$$@" $$unique; \ 448 else \ 449 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 450 $$unique; \ 451 fi; \ 452 fi 453 ctags: ctags-am 454 455 CTAGS: ctags 456 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 457 $(am__define_uniq_tagged_files); \ 458 test -z "$(CTAGS_ARGS)$$unique" \ 459 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 460 $$unique 461 462 GTAGS: 463 here=`$(am__cd) $(top_builddir) && pwd` \ 464 && $(am__cd) $(top_srcdir) \ 465 && gtags -i $(GTAGS_ARGS) "$$here" 466 cscopelist: cscopelist-am 467 468 cscopelist-am: $(am__tagged_files) 469 list='$(am__tagged_files)'; \ 470 case "$(srcdir)" in \ 471 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ 472 *) sdir=$(subdir)/$(srcdir) ;; \ 473 esac; \ 474 for i in $$list; do \ 475 if test -f "$$i"; then \ 476 echo "$(subdir)/$$i"; \ 477 else \ 478 echo "$$sdir/$$i"; \ 479 fi; \ 480 done >> $(top_builddir)/cscope.files 481 482 distclean-tags: 483 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 334 484 335 485 distdir: $(DISTFILES) … … 365 515 check-am: all-am 366 516 check: check-am 367 all-am: Makefile $(PROGRAMS)517 all-am: Makefile 368 518 installdirs: 369 519 install: install-am … … 399 549 clean: clean-am 400 550 401 clean-am: clean-generic clean-noinstPROGRAMSmostlyclean-am551 clean-am: clean-generic mostlyclean-am 402 552 403 553 distclean: distclean-am 554 -rm -rf ./$(DEPDIR) 404 555 -rm -f Makefile 405 distclean-am: clean-am distclean-generic 556 distclean-am: clean-am distclean-compile distclean-generic \ 557 distclean-tags 406 558 407 559 dvi: dvi-am … … 446 598 447 599 maintainer-clean: maintainer-clean-am 600 -rm -rf ./$(DEPDIR) 448 601 -rm -f Makefile 449 602 maintainer-clean-am: distclean-am maintainer-clean-generic … … 451 604 mostlyclean: mostlyclean-am 452 605 453 mostlyclean-am: mostlyclean- generic606 mostlyclean-am: mostlyclean-compile mostlyclean-generic 454 607 455 608 pdf: pdf-am … … 465 618 .MAKE: install-am install-strip 466 619 467 .PHONY: all all-am check check-am clean clean-generic \ 468 clean-noinstPROGRAMS cscopelist-am ctags-am distclean \ 469 distclean-generic distdir dvi dvi-am html html-am info info-am \ 470 install install-am install-data install-data-am install-dvi \ 471 install-dvi-am install-exec install-exec-am install-html \ 472 install-html-am install-info install-info-am install-man \ 473 install-pdf install-pdf-am install-ps install-ps-am \ 474 install-strip installcheck installcheck-am installdirs \ 475 maintainer-clean maintainer-clean-generic mostlyclean \ 476 mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ 620 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ 621 cscopelist-am ctags ctags-am distclean distclean-compile \ 622 distclean-generic distclean-tags distdir dvi dvi-am html \ 623 html-am info info-am install install-am install-data \ 624 install-data-am install-dvi install-dvi-am install-exec \ 625 install-exec-am install-html install-html-am install-info \ 626 install-info-am install-man install-pdf install-pdf-am \ 627 install-ps install-ps-am install-strip installcheck \ 628 installcheck-am installdirs maintainer-clean \ 629 maintainer-clean-generic mostlyclean mostlyclean-compile \ 630 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ 477 631 uninstall-am 478 632 … … 490 644 $(am__mv) $$depbase.Tpo $$depbase.Plo 491 645 646 #prevent any tests in parallel 492 647 .NOTPARALLEL: 493 648 … … 501 656 @${STATS} .result.log 502 657 @echo "------------------------------------------------------" 503 @rm -f a.out .result.log 658 @rm -f a.out .result.log *.class 504 659 505 660 %.runquiet : … … 551 706 552 707 loop$(EXEEXT): 553 $( COMPILE) -DBENCH_N=5000000000loop.c708 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/loop.c 554 709 555 710 function$(EXEEXT): 556 $( COMPILE) -DBENCH_N=5000000000function.c711 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/function.c 557 712 558 713 fetch_add$(EXEEXT): 559 $( COMPILE) -DBENCH_N=500000000fetch_add.c714 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000000 $(srcdir)/fetch_add.c 560 715 561 716 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre$(EXEEXT): 562 @WITH_LIBFIBRE_TRUE@ @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre717 @WITH_LIBFIBRE_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 563 718 564 719 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre2$(EXEEXT): 565 @WITH_LIBFIBRE_TRUE@ @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre720 @WITH_LIBFIBRE_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 566 721 567 722 ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) 568 723 569 724 ctxswitch-pthread$(EXEEXT): 570 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c725 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c 571 726 572 727 ctxswitch-cfa_coroutine$(EXEEXT): 573 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.c728 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.c 574 729 575 730 ctxswitch-cfa_thread$(EXEEXT): 576 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.c731 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.c 577 732 578 733 ctxswitch-cfa_thread2$(EXEEXT): 579 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.c734 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.c 580 735 581 736 ctxswitch-upp_coroutine$(EXEEXT): 582 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc737 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc 583 738 584 739 ctxswitch-upp_thread$(EXEEXT): 585 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc740 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 586 741 587 742 ctxswitch-goroutine$(EXEEXT): 588 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go743 $(AM_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go 589 744 590 745 ctxswitch-java_thread$(EXEEXT): 591 @javac$(srcdir)/ctxswitch/JavaThread.java746 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 592 747 @echo "#!/bin/sh" > a.out 593 @echo " cd ctxswitch &&java JavaThread" >> a.out748 @echo "java JavaThread" >> a.out 594 749 @chmod a+x a.out 595 750 … … 606 761 607 762 mutex-pthread_lock$(EXEEXT): 608 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c763 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c 609 764 610 765 mutex-upp$(EXEEXT): 611 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc766 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc 612 767 613 768 mutex-cfa1$(EXEEXT): 614 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.c769 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.c 615 770 616 771 mutex-cfa2$(EXEEXT): 617 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.c772 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.c 618 773 619 774 mutex-cfa4$(EXEEXT): 620 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.c775 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.c 621 776 622 777 mutex-java_thread$(EXEEXT): 623 @javac$(srcdir)/mutex/JavaThread.java778 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 624 779 @echo "#!/bin/sh" > a.out 625 @echo " cd mutex &&java JavaThread" >> a.out780 @echo "java JavaThread" >> a.out 626 781 @chmod a+x a.out 627 782 … … 635 790 636 791 signal-pthread_cond$(EXEEXT): 637 @$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c792 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c 638 793 639 794 signal-upp$(EXEEXT): 640 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc795 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc 641 796 642 797 signal-cfa1$(EXEEXT): 643 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.c798 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.c 644 799 645 800 signal-cfa2$(EXEEXT): 646 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.c801 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.c 647 802 648 803 signal-cfa4$(EXEEXT): 649 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.c804 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.c 650 805 651 806 signal-java_thread$(EXEEXT): 652 @javac$(srcdir)/schedint/JavaThread.java807 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 653 808 @echo "#!/bin/sh" > a.out 654 @echo " cd schedint &&java JavaThread" >> a.out809 @echo "java JavaThread" >> a.out 655 810 @chmod a+x a.out 656 811 … … 662 817 663 818 waitfor-upp$(EXEEXT): 664 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc819 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc 665 820 666 821 waitfor-cfa1$(EXEEXT): 667 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.c822 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.c 668 823 669 824 waitfor-cfa2$(EXEEXT): 670 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.c825 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.c 671 826 672 827 waitfor-cfa4$(EXEEXT): 673 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.c828 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.c 674 829 675 830 creation$(EXEEXT) :\ … … 684 839 685 840 creation-cfa_coroutine$(EXEEXT): 686 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c841 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c 687 842 688 843 creation-cfa_coroutine_eager$(EXEEXT): 689 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c844 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c 690 845 691 846 creation-cfa_thread$(EXEEXT): 692 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.c847 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.c 693 848 694 849 creation-upp_coroutine$(EXEEXT): 695 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc850 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc 696 851 697 852 creation-upp_thread$(EXEEXT): 698 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc853 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc 699 854 700 855 creation-pthread$(EXEEXT): 701 @$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c856 $(AM_V_CC)$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c 702 857 703 858 creation-goroutine$(EXEEXT): 704 @go build -o a.out $(srcdir)/creation/goroutine.go859 $(AM_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go 705 860 706 861 creation-java_thread$(EXEEXT): 707 @javac$(srcdir)/creation/JavaThread.java862 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 708 863 @echo "#!/bin/sh" > a.out 709 @echo " cd creation &&java JavaThread" >> a.out864 @echo "java JavaThread" >> a.out 710 865 @chmod a+x a.out 711 866 … … 721 876 722 877 compile-array$(EXEEXT): 723 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.c878 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.c 724 879 725 880 compile-attributes$(EXEEXT): 726 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.c881 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.c 727 882 728 883 compile-empty$(EXEEXT): 729 @$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.c884 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.c 730 885 731 886 compile-expression$(EXEEXT): 732 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.c887 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.c 733 888 734 889 compile-io$(EXEEXT): 735 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.c890 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.c 736 891 737 892 compile-monitor$(EXEEXT): 738 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.c893 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.c 739 894 740 895 compile-operators$(EXEEXT): 741 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.c896 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.c 742 897 743 898 compile-thread$(EXEEXT): 744 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.c899 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.c 745 900 746 901 compile-typeof$(EXEEXT): 747 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.c902 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.c 748 903 749 904 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
driver/as.cc
r1f690b3 r9507ce3 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 6 // 7 7 // as.c -- map assembler file, scan for debug information. If found, expand file by one character and insert Cforall 8 8 // language code on the N line from the start of the debug information. 9 // 9 // 10 10 // Author : Peter A. Buhr 11 11 // Created On : Wed Aug 1 10:49:42 2018 … … 13 13 // Last Modified On : Sat Sep 8 08:40:16 2018 14 14 // Update Count : 97 15 // 15 // 16 16 17 17 #include <cstdio> // perror … … 45 45 46 46 if ( size ) { // cannot map 0 sized file 47 char * start = (char *)mmap( NULL, size , PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0 );47 char * start = (char *)mmap( NULL, size + 2, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0 ); 48 48 if ( start == (void *)-1 ) { perror( "mmap" ); exit( EXIT_FAILURE ); }; 49 49 … … 65 65 } // if 66 66 67 if ( munmap( start, size ) ) { perror( "munmap" ); exit( EXIT_FAILURE ); }; // update on disk67 if ( munmap( start, size + 2 ) ) { perror( "munmap" ); exit( EXIT_FAILURE ); }; // update on disk 68 68 } // if 69 69 -
libcfa/src/Makefile.am
r1f690b3 r9507ce3 68 68 libdeps = $(join \ 69 69 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 70 $(notdir ${libobjs:.lo=.P o}) \70 $(notdir ${libobjs:.lo=.Plo}) \ 71 71 ) 72 72 73 -include $(libdeps) 73 include $(libdeps) 74 75 $(libdeps): 76 @mkdir -p $(dir $@) 77 @echo '#dummy' > $@ 74 78 75 79 prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 76 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}80 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@} 77 81 78 82 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 79 83 ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \ 80 @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}84 @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@} 81 85 82 86 -
libcfa/src/Makefile.in
r1f690b3 r9507ce3 407 407 am__v_CFA_0 = @echo " CFA " $@; 408 408 am__v_CFA_1 = 409 AM_V_JAVAC = $(am__v_JAVAC_@AM_V@) 410 am__v_JAVAC_ = $(am__v_JAVAC_@AM_DEFAULT_V@) 411 am__v_JAVAC_0 = @echo " JAVAC " $@; 412 am__v_JAVAC_1 = 413 AM_V_GOC = $(am__v_GOC_@AM_V@) 414 am__v_GOC_ = $(am__v_GOC_@AM_DEFAULT_V@) 415 am__v_GOC_0 = @echo " GOC " $@; 416 am__v_GOC_1 = 417 UPPCOMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS) 418 AM_V_UPP = $(am__v_UPP_@AM_V@) 419 am__v_UPP_ = $(am__v_UPP_@AM_DEFAULT_V@) 420 am__v_UPP_0 = @echo " UPP " $@; 421 am__v_UPP_1 = 409 422 lib_LTLIBRARIES = libcfa.la 410 423 … … 453 466 libdeps = $(join \ 454 467 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 455 $(notdir ${libobjs:.lo=.P o}) \468 $(notdir ${libobjs:.lo=.Plo}) \ 456 469 ) 457 470 … … 909 922 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 910 923 911 -include $(libdeps) 924 include $(libdeps) 925 926 $(libdeps): 927 @mkdir -p $(dir $@) 928 @echo '#dummy' > $@ 912 929 913 930 prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 914 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}931 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@} 915 932 916 933 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 917 934 ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \ 918 @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@}935 @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@} 919 936 920 937 #---------------------------------------------------------------------------------------------------------------- -
libcfa/src/bits/locks.hfa
r1f690b3 r9507ce3 37 37 #endif 38 38 39 #if defined( __i386 ) || defined( __x86_64 ) || defined( __ARM_ARCH )40 // Intel recommendation41 #define __ALIGN__ __attribute__(( aligned (128) ))42 #elif defined( __sparc )43 #define __ALIGN__ CALIGN44 #else45 #error unsupported architecture46 #endif47 48 39 struct __spinlock_t { 49 40 // Wrap in struct to prevent false sharing with debug info 50 struct { 51 // Align lock on 128-bit boundary 52 __ALIGN__ volatile bool lock; 53 }; 41 volatile bool lock; 54 42 #ifdef __CFA_DEBUG__ 55 43 // previous function to acquire the lock … … 58 46 void* prev_thrd; 59 47 #endif 60 } __ALIGN__;48 }; 61 49 62 50 #ifdef __cforall -
src/cfa.make
r1f690b3 r9507ce3 21 21 $(LTCFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 22 22 $(am__mv) $$depbase.Tpo $$depbase.Plo 23 24 AM_V_JAVAC = $(am__v_JAVAC_@AM_V@) 25 am__v_JAVAC_ = $(am__v_JAVAC_@AM_DEFAULT_V@) 26 am__v_JAVAC_0 = @echo " JAVAC " $@; 27 am__v_JAVAC_1 = 28 29 AM_V_GOC = $(am__v_GOC_@AM_V@) 30 am__v_GOC_ = $(am__v_GOC_@AM_DEFAULT_V@) 31 am__v_GOC_0 = @echo " GOC " $@; 32 am__v_GOC_1 = 33 34 35 UPPCOMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS) 36 37 AM_V_UPP = $(am__v_UPP_@AM_V@) 38 am__v_UPP_ = $(am__v_UPP_@AM_DEFAULT_V@) 39 am__v_UPP_0 = @echo " UPP " $@; 40 am__v_UPP_1 =
Note: See TracChangeset
for help on using the changeset viewer.