Changeset 95b1e28
- Timestamp:
- Jul 31, 2018, 8:35:42 AM (5 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 5d4fa18
- Parents:
- 4137e31 (diff), a4248de1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r4137e31 r95b1e28 8 8 config.status 9 9 config.log 10 config.py 10 11 stamp-h1 11 12 /Makefile -
Jenkinsfile
r4137e31 r95b1e28 174 174 175 175 def notify_server(int wait) { 176 sh """curl -- data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true"""176 sh """curl --silent --show-error --data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true""" 177 177 return 178 178 } … … 260 260 def install_dir = pwd tmp: true 261 261 262 //Output compiler version to help with debug 263 echo """C++ Compiler :""" 264 sh "which ${compiler.cpp_cc} && ${compiler.cpp_cc} --version" 265 echo """C Compiler :""" 266 sh "which ${compiler.cfa_cc} && ${compiler.cfa_cc} --version" 267 268 //Configure the conpilation (Output is not relevant) 269 //Use the current directory as the installation target so nothing escapes the sandbox 270 //Also specify the compiler by hand 271 sh "./configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet" 272 273 //Compile the project 274 sh 'make -j 8 --no-print-directory V=0 install' 262 // Build outside of the src tree to ease cleaning 263 sh "mkdir -p build" 264 dir ('build') { 265 //Configure the conpilation (Output is not relevant) 266 //Use the current directory as the installation target so nothing escapes the sandbox 267 //Also specify the compiler by hand 268 sh "../configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet" 269 270 //Compile the project 271 sh 'make -j 8 --no-print-directory' 272 } 275 273 } 276 274 } … … 281 279 //Run the tests from the tests directory 282 280 if ( do_alltests ) { 283 sh 'make -C src/tests all-tests debug=yes --no-print-directory'284 sh 'make -C src/tests all-tests debug=no --no-print-directory'281 sh 'make -C build/src/tests all-tests debug=yes --no-print-directory' 282 sh 'make -C build/src/tests all-tests debug=no --no-print-directory' 285 283 } 286 284 else { 287 sh 'make -C src/tests --no-print-directory'285 sh 'make -C build/src/tests --no-print-directory' 288 286 } 289 287 } … … 296 294 297 295 //Append bench results 298 sh 'make -C src/benchmark --no-print-directory jenkins githash=' + gitRefNewValue + ' arch=' + arch_name + ' | tee bench.json'296 sh 'make -C build/src/benchmark --no-print-directory jenkins githash=' + gitRefNewValue + ' arch=' + arch_name + ' | tee bench.json' 299 297 } 300 298 } … … 302 300 def clean() { 303 301 build_stage('Cleanup') { 304 305 //do a maintainer-clean to make sure we need to remake from scratch 306 sh 'make maintainer-clean > /dev/null' 302 // clean the build by wipping the build directory 303 sh 'rm -rf build' 307 304 } 308 305 } … … 329 326 330 327 //Then publish the results 331 sh 'curl - H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'328 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true' 332 329 } 333 330 } -
doc/user/Makefile
r4137e31 r95b1e28 51 51 # File Dependencies # 52 52 53 build/version: ../../configure | ${Build} 54 ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@ 55 53 56 ${DOCUMENT} : ${BASE}.ps 54 57 ps2pdf $< … … 58 61 59 62 ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \ 60 ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib | ${Build}63 ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib build/version | ${Build} 61 64 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. 62 65 if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi -
doc/user/user.tex
r4137e31 r95b1e28 1 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 %% 2 %% 3 3 %% Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 4 4 %% 5 5 %% The contents of this file are covered under the licence agreement in the 6 6 %% file "LICENCE" distributed with Cforall. 7 %% 8 %% user.tex -- 9 %% 7 %% 8 %% user.tex -- 9 %% 10 10 %% Author : Peter A. Buhr 11 11 %% Created On : Wed Apr 6 14:53:29 2016 … … 72 72 73 73 % Names used in the document. 74 \newcommand{\Version}{\input{ ../../version}}74 \newcommand{\Version}{\input{build/version}} 75 75 \newcommand{\Textbf}[2][red]{{\color{#1}{\textbf{#2}}}} 76 76 \newcommand{\Emph}[2][red]{{\color{#1}\textbf{\emph{#2}}}} … … 430 430 #endif 431 431 \end{cfa} 432 which conditionally includes the correct header file, if the program is compiled using \Indexc{gcc} or \Indexc{cfa}. 432 which conditionally includes the correct header file, if the program is compiled using \Indexc{gcc} or \Indexc{cfa}. 433 433 434 434 … … 1447 1447 \end{cfa} 1448 1448 Algol68 infers the following dereferencing ©*p2 = *p1 + x©, because adding the arbitrary integer value in ©x© to the address of ©p1© and storing the resulting address into ©p2© is an unlikely operation. 1449 Unfortunately, automatic dereferencing does not work in all cases, and so some mechanism is necessary to fix incorrect choices. 1449 Unfortunately, automatic dereferencing does not work in all cases, and so some mechanism is necessary to fix incorrect choices. 1450 1450 1451 1451 Rather than inferring dereference, most programming languages pick one implicit dereferencing semantics, and the programmer explicitly indicates the other to resolve address-duality. … … 2282 2282 struct T t; 2283 2283 } s; 2284 2284 2285 2285 2286 2286 … … 2354 2354 } 2355 2355 \end{cfa} 2356 because 2356 because 2357 2357 2358 2358 Currently, there are no \Index{lambda} expressions, \ie unnamed routines because routine names are very important to properly select the correct routine. … … 3394 3394 sout | sepDisable | 1 | 2 | 3 | endl; // globally turn off implicit separator 3395 3395 sout | sepEnable | 1 | 2 | 3 | endl; // globally turn on implicit separator 3396 3396 3397 3397 sout | 1 | sepOff | 2 | 3 | endl; // locally turn on implicit separator 3398 3398 sout | sepDisable | 1 | sepOn | 2 | 3 | endl; // globally turn off implicit separator -
src/benchmark/Makefile.am
r4137e31 r95b1e28 17 17 # applies to both programs 18 18 CFLAGS = 19 AM_CFLAGS = -g -Wall -Wno-unused-function -O2 20 CC = @CFA_BINDIR@/@CFA_NAME@ 19 AM_CFLAGS = \ 20 -XCFA \ 21 -t \ 22 -B${abs_top_builddir}/src/driver \ 23 -g \ 24 -O2 \ 25 -Wall \ 26 -Wno-unused-function \ 27 -quiet \ 28 -I$(srcdir) \ 29 -L${abs_top_builddir}/src/libcfa \ 30 -I${abs_top_srcdir}/src/libcfa \ 31 -I${abs_top_srcdir}/src/libcfa/containers \ 32 -I${abs_top_srcdir}/src/libcfa/concurrency \ 33 -I${abs_top_srcdir}/src/libcfa/stdhdr 34 35 CC = ${top_builddir}/src/driver/cfa 21 36 TOOLSDIR = ${abs_top_srcdir}/tools/ 22 37 REPEAT = ${TOOLSDIR}repeat … … 93 108 ## ========================================================================================================= 94 109 loop$(EXEEXT): 95 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}110 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 96 111 97 112 function$(EXEEXT): 98 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}113 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 99 114 100 115 fetch_add$(EXEEXT): 101 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}116 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 102 117 103 118 ## ========================================================================================================= … … 118 133 119 134 ctxswitch-pthread$(EXEEXT): 120 @@BACKEND_CC@ ctxswitch/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}135 @@BACKEND_CC@ $(srcdir)/ctxswitch/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 121 136 122 137 ctxswitch-cfa_coroutine$(EXEEXT): 123 @${CC} ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}138 @${CC} $(srcdir)/ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 124 139 125 140 ctxswitch-cfa_thread$(EXEEXT): 126 @${CC} ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}141 @${CC} $(srcdir)/ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 127 142 128 143 ctxswitch-cfa_thread2$(EXEEXT): 129 @${CC} ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}144 @${CC} $(srcdir)/ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 130 145 131 146 ctxswitch-upp_coroutine$(EXEEXT): 132 @u++ ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}147 @u++ $(srcdir)/ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 133 148 134 149 ctxswitch-upp_thread$(EXEEXT): 135 @u++ ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}150 @u++ $(srcdir)/ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 136 151 137 152 ctxswitch-kos_fibre$(EXEEXT): 138 @${CXX} ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt153 @${CXX} $(srcdir)/ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 139 154 140 155 ctxswitch-kos_fibre2$(EXEEXT): 141 @${CXX} ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt156 @${CXX} $(srcdir)/ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 142 157 143 158 ctxswitch-goroutine$(EXEEXT): 144 @go build -o a.out ctxswitch/goroutine.go159 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go 145 160 146 161 ctxswitch-java_thread$(EXEEXT): 147 @javac ctxswitch/JavaThread.java162 @javac $(srcdir)/ctxswitch/JavaThread.java 148 163 @echo "#!/bin/sh" > a.out 149 164 @echo "cd ctxswitch && java JavaThread" >> a.out … … 163 178 164 179 mutex-pthread_lock$(EXEEXT): 165 @@BACKEND_CC@ mutex/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}180 @@BACKEND_CC@ $(srcdir)/mutex/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 166 181 167 182 mutex-upp$(EXEEXT): 168 @u++ mutex/upp.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}183 @u++ $(srcdir)/mutex/upp.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 169 184 170 185 mutex-cfa1$(EXEEXT): 171 @${CC} mutex/cfa1.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}186 @${CC} $(srcdir)/mutex/cfa1.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 172 187 173 188 mutex-cfa2$(EXEEXT): 174 @${CC} mutex/cfa2.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}189 @${CC} $(srcdir)/mutex/cfa2.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 175 190 176 191 mutex-cfa4$(EXEEXT): 177 @${CC} mutex/cfa4.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}192 @${CC} $(srcdir)/mutex/cfa4.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 178 193 179 194 mutex-java_thread$(EXEEXT): 180 @javac mutex/JavaThread.java195 @javac $(srcdir)/mutex/JavaThread.java 181 196 @echo "#!/bin/sh" > a.out 182 197 @echo "cd mutex && java JavaThread" >> a.out … … 193 208 194 209 signal-pthread_cond$(EXEEXT): 195 @@BACKEND_CC@ schedint/pthreads.c -DBENCH_N=500000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}210 @@BACKEND_CC@ $(srcdir)/schedint/pthreads.c -DBENCH_N=500000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 196 211 197 212 signal-upp$(EXEEXT): 198 @u++ schedint/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}213 @u++ $(srcdir)/schedint/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 199 214 200 215 signal-cfa1$(EXEEXT): 201 @${CC} schedint/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}216 @${CC} $(srcdir)/schedint/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 202 217 203 218 signal-cfa2$(EXEEXT): 204 @${CC} schedint/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}219 @${CC} $(srcdir)/schedint/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 205 220 206 221 signal-cfa4$(EXEEXT): 207 @${CC} schedint/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}222 @${CC} $(srcdir)/schedint/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 208 223 209 224 signal-java_thread$(EXEEXT): 210 @javac schedint/JavaThread.java225 @javac $(srcdir)/schedint/JavaThread.java 211 226 @echo "#!/bin/sh" > a.out 212 227 @echo "cd schedint && java JavaThread" >> a.out … … 222 237 223 238 waitfor-upp$(EXEEXT): 224 @u++ schedext/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}239 @u++ $(srcdir)/schedext/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 225 240 226 241 waitfor-cfa1$(EXEEXT): 227 @${CC} schedext/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}242 @${CC} $(srcdir)/schedext/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 228 243 229 244 waitfor-cfa2$(EXEEXT): 230 @${CC} schedext/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}245 @${CC} $(srcdir)/schedext/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 231 246 232 247 waitfor-cfa4$(EXEEXT): 233 @${CC} schedext/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}248 @${CC} $(srcdir)/schedext/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 234 249 235 250 ## ========================================================================================================= … … 245 260 246 261 creation-cfa_coroutine$(EXEEXT): 247 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}262 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 248 263 249 264 creation-cfa_coroutine_eager$(EXEEXT): 250 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER265 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER 251 266 252 267 creation-cfa_thread$(EXEEXT): 253 @${CC} creation/cfa_thrd.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}268 @${CC} $(srcdir)/creation/cfa_thrd.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 254 269 255 270 creation-upp_coroutine$(EXEEXT): 256 @u++ creation/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}271 @u++ $(srcdir)/creation/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 257 272 258 273 creation-upp_thread$(EXEEXT): 259 @u++ creation/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}274 @u++ $(srcdir)/creation/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 260 275 261 276 creation-pthread$(EXEEXT): 262 @@BACKEND_CC@ creation/pthreads.c -DBENCH_N=250000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}277 @@BACKEND_CC@ $(srcdir)/creation/pthreads.c -DBENCH_N=250000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 263 278 264 279 creation-goroutine$(EXEEXT): 265 @go build -o a.out creation/goroutine.go280 @go build -o a.out $(srcdir)/creation/goroutine.go 266 281 267 282 creation-java_thread$(EXEEXT): 268 @javac creation/JavaThread.java283 @javac $(srcdir)/creation/JavaThread.java 269 284 @echo "#!/bin/sh" > a.out 270 285 @echo "cd creation && java JavaThread" >> a.out … … 284 299 285 300 301 testdir = $(top_srcdir)/src/tests 302 286 303 compile-array$(EXEEXT): 287 @${CC} -quiet -fsyntax-only -w ../tests/array.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}304 @${CC} -quiet -fsyntax-only -w $(testdir)/array.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 288 305 289 306 compile-attributes$(EXEEXT): 290 @${CC} -quiet -fsyntax-only -w ../tests/attributes.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}307 @${CC} -quiet -fsyntax-only -w $(testdir)/attributes.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 291 308 292 309 compile-empty$(EXEEXT): 293 @${CC} -quiet -fsyntax-only -w compile/empty.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}310 @${CC} -quiet -fsyntax-only -w $(srcdir)/compile/empty.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 294 311 295 312 compile-expression$(EXEEXT): 296 @${CC} -quiet -fsyntax-only -w ../tests/expression.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}313 @${CC} -quiet -fsyntax-only -w $(testdir)/expression.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 297 314 298 315 compile-io$(EXEEXT): 299 @${CC} -quiet -fsyntax-only -w ../tests/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}316 @${CC} -quiet -fsyntax-only -w $(testdir)/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 300 317 301 318 compile-monitor$(EXEEXT): 302 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}319 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 303 320 304 321 compile-operators$(EXEEXT): 305 @${CC} -quiet -fsyntax-only -w ../tests/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}322 @${CC} -quiet -fsyntax-only -w $(testdir)/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 306 323 307 324 compile-thread$(EXEEXT): 308 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/thread.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}325 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/thread.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 309 326 310 327 compile-typeof$(EXEEXT): 311 @${CC} -quiet -fsyntax-only -w ../tests/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}312 328 @${CC} -quiet -fsyntax-only -w $(testdir)/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 329 -
src/benchmark/Makefile.in
r4137e31 r95b1e28 135 135 AWK = @AWK@ 136 136 BACKEND_CC = @BACKEND_CC@ 137 CC = @CFA_BINDIR@/@CFA_NAME@137 CC = ${top_builddir}/src/driver/cfa 138 138 CCAS = @CCAS@ 139 139 CCASDEPMODE = @CCASDEPMODE@ … … 247 247 top_builddir = @top_builddir@ 248 248 top_srcdir = @top_srcdir@ 249 AM_CFLAGS = -g -Wall -Wno-unused-function -O2 249 AM_CFLAGS = \ 250 -XCFA \ 251 -t \ 252 -B${abs_top_builddir}/src/driver \ 253 -g \ 254 -O2 \ 255 -Wall \ 256 -Wno-unused-function \ 257 -quiet \ 258 -I$(srcdir) \ 259 -L${abs_top_builddir}/src/libcfa \ 260 -I${abs_top_srcdir}/src/libcfa \ 261 -I${abs_top_srcdir}/src/libcfa/containers \ 262 -I${abs_top_srcdir}/src/libcfa/concurrency \ 263 -I${abs_top_srcdir}/src/libcfa/stdhdr 264 250 265 TOOLSDIR = ${abs_top_srcdir}/tools/ 251 266 REPEAT = ${TOOLSDIR}repeat … … 255 270 TIME_FORMAT = "%E" 256 271 PRINT_FORMAT = %20s: #Comments needed for spacing 272 testdir = $(top_srcdir)/src/tests 257 273 all: all-am 258 274 … … 505 521 506 522 loop$(EXEEXT): 507 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}523 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 508 524 509 525 function$(EXEEXT): 510 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}526 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 511 527 512 528 fetch_add$(EXEEXT): 513 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}529 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 514 530 515 531 ctxswitch$(EXEEXT): \ … … 529 545 530 546 ctxswitch-pthread$(EXEEXT): 531 @@BACKEND_CC@ ctxswitch/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}547 @@BACKEND_CC@ $(srcdir)/ctxswitch/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 532 548 533 549 ctxswitch-cfa_coroutine$(EXEEXT): 534 @${CC} ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}550 @${CC} $(srcdir)/ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 535 551 536 552 ctxswitch-cfa_thread$(EXEEXT): 537 @${CC} ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}553 @${CC} $(srcdir)/ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 538 554 539 555 ctxswitch-cfa_thread2$(EXEEXT): 540 @${CC} ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}556 @${CC} $(srcdir)/ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 541 557 542 558 ctxswitch-upp_coroutine$(EXEEXT): 543 @u++ ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}559 @u++ $(srcdir)/ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 544 560 545 561 ctxswitch-upp_thread$(EXEEXT): 546 @u++ ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}562 @u++ $(srcdir)/ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 547 563 548 564 ctxswitch-kos_fibre$(EXEEXT): 549 @${CXX} ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt565 @${CXX} $(srcdir)/ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 550 566 551 567 ctxswitch-kos_fibre2$(EXEEXT): 552 @${CXX} ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt568 @${CXX} $(srcdir)/ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 553 569 554 570 ctxswitch-goroutine$(EXEEXT): 555 @go build -o a.out ctxswitch/goroutine.go571 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go 556 572 557 573 ctxswitch-java_thread$(EXEEXT): 558 @javac ctxswitch/JavaThread.java574 @javac $(srcdir)/ctxswitch/JavaThread.java 559 575 @echo "#!/bin/sh" > a.out 560 576 @echo "cd ctxswitch && java JavaThread" >> a.out … … 573 589 574 590 mutex-pthread_lock$(EXEEXT): 575 @@BACKEND_CC@ mutex/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}591 @@BACKEND_CC@ $(srcdir)/mutex/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 576 592 577 593 mutex-upp$(EXEEXT): 578 @u++ mutex/upp.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}594 @u++ $(srcdir)/mutex/upp.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 579 595 580 596 mutex-cfa1$(EXEEXT): 581 @${CC} mutex/cfa1.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}597 @${CC} $(srcdir)/mutex/cfa1.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 582 598 583 599 mutex-cfa2$(EXEEXT): 584 @${CC} mutex/cfa2.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}600 @${CC} $(srcdir)/mutex/cfa2.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 585 601 586 602 mutex-cfa4$(EXEEXT): 587 @${CC} mutex/cfa4.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}603 @${CC} $(srcdir)/mutex/cfa4.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 588 604 589 605 mutex-java_thread$(EXEEXT): 590 @javac mutex/JavaThread.java606 @javac $(srcdir)/mutex/JavaThread.java 591 607 @echo "#!/bin/sh" > a.out 592 608 @echo "cd mutex && java JavaThread" >> a.out … … 602 618 603 619 signal-pthread_cond$(EXEEXT): 604 @@BACKEND_CC@ schedint/pthreads.c -DBENCH_N=500000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}620 @@BACKEND_CC@ $(srcdir)/schedint/pthreads.c -DBENCH_N=500000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 605 621 606 622 signal-upp$(EXEEXT): 607 @u++ schedint/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}623 @u++ $(srcdir)/schedint/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 608 624 609 625 signal-cfa1$(EXEEXT): 610 @${CC} schedint/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}626 @${CC} $(srcdir)/schedint/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 611 627 612 628 signal-cfa2$(EXEEXT): 613 @${CC} schedint/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}629 @${CC} $(srcdir)/schedint/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 614 630 615 631 signal-cfa4$(EXEEXT): 616 @${CC} schedint/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}632 @${CC} $(srcdir)/schedint/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 617 633 618 634 signal-java_thread$(EXEEXT): 619 @javac schedint/JavaThread.java635 @javac $(srcdir)/schedint/JavaThread.java 620 636 @echo "#!/bin/sh" > a.out 621 637 @echo "cd schedint && java JavaThread" >> a.out … … 629 645 630 646 waitfor-upp$(EXEEXT): 631 @u++ schedext/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}647 @u++ $(srcdir)/schedext/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 632 648 633 649 waitfor-cfa1$(EXEEXT): 634 @${CC} schedext/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}650 @${CC} $(srcdir)/schedext/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 635 651 636 652 waitfor-cfa2$(EXEEXT): 637 @${CC} schedext/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}653 @${CC} $(srcdir)/schedext/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 638 654 639 655 waitfor-cfa4$(EXEEXT): 640 @${CC} schedext/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}656 @${CC} $(srcdir)/schedext/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 641 657 642 658 creation$(EXEEXT) :\ … … 651 667 652 668 creation-cfa_coroutine$(EXEEXT): 653 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}669 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 654 670 655 671 creation-cfa_coroutine_eager$(EXEEXT): 656 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER672 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER 657 673 658 674 creation-cfa_thread$(EXEEXT): 659 @${CC} creation/cfa_thrd.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}675 @${CC} $(srcdir)/creation/cfa_thrd.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 660 676 661 677 creation-upp_coroutine$(EXEEXT): 662 @u++ creation/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}678 @u++ $(srcdir)/creation/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 663 679 664 680 creation-upp_thread$(EXEEXT): 665 @u++ creation/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}681 @u++ $(srcdir)/creation/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 666 682 667 683 creation-pthread$(EXEEXT): 668 @@BACKEND_CC@ creation/pthreads.c -DBENCH_N=250000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}684 @@BACKEND_CC@ $(srcdir)/creation/pthreads.c -DBENCH_N=250000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 669 685 670 686 creation-goroutine$(EXEEXT): 671 @go build -o a.out creation/goroutine.go687 @go build -o a.out $(srcdir)/creation/goroutine.go 672 688 673 689 creation-java_thread$(EXEEXT): 674 @javac creation/JavaThread.java690 @javac $(srcdir)/creation/JavaThread.java 675 691 @echo "#!/bin/sh" > a.out 676 692 @echo "cd creation && java JavaThread" >> a.out … … 688 704 689 705 compile-array$(EXEEXT): 690 @${CC} -quiet -fsyntax-only -w ../tests/array.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}706 @${CC} -quiet -fsyntax-only -w $(testdir)/array.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 691 707 692 708 compile-attributes$(EXEEXT): 693 @${CC} -quiet -fsyntax-only -w ../tests/attributes.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}709 @${CC} -quiet -fsyntax-only -w $(testdir)/attributes.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 694 710 695 711 compile-empty$(EXEEXT): 696 @${CC} -quiet -fsyntax-only -w compile/empty.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}712 @${CC} -quiet -fsyntax-only -w $(srcdir)/compile/empty.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 697 713 698 714 compile-expression$(EXEEXT): 699 @${CC} -quiet -fsyntax-only -w ../tests/expression.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}715 @${CC} -quiet -fsyntax-only -w $(testdir)/expression.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 700 716 701 717 compile-io$(EXEEXT): 702 @${CC} -quiet -fsyntax-only -w ../tests/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}718 @${CC} -quiet -fsyntax-only -w $(testdir)/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 703 719 704 720 compile-monitor$(EXEEXT): 705 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}721 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 706 722 707 723 compile-operators$(EXEEXT): 708 @${CC} -quiet -fsyntax-only -w ../tests/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}724 @${CC} -quiet -fsyntax-only -w $(testdir)/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 709 725 710 726 compile-thread$(EXEEXT): 711 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/thread.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}727 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/thread.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 712 728 713 729 compile-typeof$(EXEEXT): 714 @${CC} -quiet -fsyntax-only -w ../tests/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}730 @${CC} -quiet -fsyntax-only -w $(testdir)/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 715 731 716 732 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
src/driver/cfa.cc
r4137e31 r95b1e28 343 343 args[nargs] = "--undefined=__cfaabi_interpose_startup"; 344 344 nargs += 1; 345 args[nargs] = "-Xlinker"; 346 nargs += 1; 347 args[nargs] = "--undefined=__cfaabi_appready_startup"; 348 nargs += 1; 345 349 346 350 // include the cfa library in case it's needed -
src/libcfa/Makefile.am
r4137e31 r95b1e28 55 55 56 56 libobjs = ${headers:=.o} 57 libsrc = libcfa-prelude.c interpose.c bits/debug.c assert.c exception.c virtual.c heap.c startup.c \57 libsrc = libcfa-prelude.c startup.c interpose.c bits/debug.c assert.c exception.c virtual.c heap.c \ 58 58 ${headers:=.c} 59 59 … … 64 64 65 65 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 66 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers 66 67 % : %.c 67 @true 68 echo "Dummy rule, should never be called" 69 false 70 71 # This rule should always match headers and since it has no prerequisite it will never be called 72 $(addprefix $(srcdir)/,$(headers)): 73 echo "Dummy rule, should never be called" 74 false 68 75 69 76 concurrency/libcfa_a-invoke.o : concurrency/invoke.c -
src/libcfa/Makefile.in
r4137e31 r95b1e28 148 148 libcfa_d_a_AR = $(AR) $(ARFLAGS) 149 149 libcfa_d_a_LIBADD = 150 am__libcfa_d_a_SOURCES_DIST = libcfa-prelude.c interpose.c \151 bits/debug.c assert.c exception.c virtual.c heap.c startup.c \152 fstream.c iostream.c iterator.c limits.c rational.c time.c \153 stdlib.ccommon.c containers/maybe.c containers/pair.c \150 am__libcfa_d_a_SOURCES_DIST = libcfa-prelude.c startup.c interpose.c \ 151 bits/debug.c assert.c exception.c virtual.c heap.c fstream.c \ 152 iostream.c iterator.c limits.c rational.c time.c stdlib.c \ 153 common.c containers/maybe.c containers/pair.c \ 154 154 containers/result.c containers/vector.c \ 155 155 concurrency/coroutine.c concurrency/thread.c \ … … 177 177 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-preemption.$(OBJEXT) 178 178 am__objects_4 = libcfa_d_a-libcfa-prelude.$(OBJEXT) \ 179 libcfa_d_a- interpose.$(OBJEXT) bits/libcfa_d_a-debug.$(OBJEXT) \180 libcfa_d_a-assert.$(OBJEXT) libcfa_d_a-exception.$(OBJEXT) \181 libcfa_d_a- virtual.$(OBJEXT) libcfa_d_a-heap.$(OBJEXT) \182 libcfa_d_a- startup.$(OBJEXT) $(am__objects_2) $(am__objects_3)179 libcfa_d_a-startup.$(OBJEXT) libcfa_d_a-interpose.$(OBJEXT) \ 180 bits/libcfa_d_a-debug.$(OBJEXT) libcfa_d_a-assert.$(OBJEXT) \ 181 libcfa_d_a-exception.$(OBJEXT) libcfa_d_a-virtual.$(OBJEXT) \ 182 libcfa_d_a-heap.$(OBJEXT) $(am__objects_2) $(am__objects_3) 183 183 am_libcfa_d_a_OBJECTS = $(am__objects_4) 184 184 libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS) 185 185 libcfa_a_AR = $(AR) $(ARFLAGS) 186 186 libcfa_a_LIBADD = 187 am__libcfa_a_SOURCES_DIST = libcfa-prelude.c interpose.c bits/debug.c \188 assert.c exception.c virtual.c heap.c startup.c fstream.c \187 am__libcfa_a_SOURCES_DIST = libcfa-prelude.c startup.c interpose.c \ 188 bits/debug.c assert.c exception.c virtual.c heap.c fstream.c \ 189 189 iostream.c iterator.c limits.c rational.c time.c stdlib.c \ 190 190 common.c containers/maybe.c containers/pair.c \ … … 212 212 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-preemption.$(OBJEXT) 213 213 am__objects_8 = libcfa_a-libcfa-prelude.$(OBJEXT) \ 214 libcfa_a- interpose.$(OBJEXT) bits/libcfa_a-debug.$(OBJEXT) \215 libcfa_a-assert.$(OBJEXT) libcfa_a-exception.$(OBJEXT) \216 libcfa_a- virtual.$(OBJEXT) libcfa_a-heap.$(OBJEXT) \217 libcfa_a- startup.$(OBJEXT) $(am__objects_6) $(am__objects_7)214 libcfa_a-startup.$(OBJEXT) libcfa_a-interpose.$(OBJEXT) \ 215 bits/libcfa_a-debug.$(OBJEXT) libcfa_a-assert.$(OBJEXT) \ 216 libcfa_a-exception.$(OBJEXT) libcfa_a-virtual.$(OBJEXT) \ 217 libcfa_a-heap.$(OBJEXT) $(am__objects_6) $(am__objects_7) 218 218 am_libcfa_a_OBJECTS = $(am__objects_8) 219 219 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) … … 428 428 containers/vector $(am__append_3) 429 429 libobjs = ${headers:=.o} 430 libsrc = libcfa-prelude.c interpose.c bits/debug.c assert.c \ 431 exception.c virtual.c heap.c startup.c ${headers:=.c} \ 432 $(am__append_4) 430 libsrc = libcfa-prelude.c startup.c interpose.c bits/debug.c assert.c \ 431 exception.c virtual.c heap.c ${headers:=.c} $(am__append_4) 433 432 libcfa_a_SOURCES = ${libsrc} 434 433 libcfa_a_CFLAGS = -nodebug -O2 … … 708 707 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-libcfa-prelude.obj `if test -f 'libcfa-prelude.c'; then $(CYGPATH_W) 'libcfa-prelude.c'; else $(CYGPATH_W) '$(srcdir)/libcfa-prelude.c'; fi` 709 708 709 libcfa_d_a-startup.o: startup.c 710 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 711 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po 712 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.o' libtool=no @AMDEPBACKSLASH@ 713 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 714 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 715 716 libcfa_d_a-startup.obj: startup.c 717 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 718 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po 719 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.obj' libtool=no @AMDEPBACKSLASH@ 720 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 721 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 722 710 723 libcfa_d_a-interpose.o: interpose.c 711 724 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-interpose.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-interpose.Tpo -c -o libcfa_d_a-interpose.o `test -f 'interpose.c' || echo '$(srcdir)/'`interpose.c … … 778 791 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-heap.obj `if test -f 'heap.c'; then $(CYGPATH_W) 'heap.c'; else $(CYGPATH_W) '$(srcdir)/heap.c'; fi` 779 792 780 libcfa_d_a-startup.o: startup.c781 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c782 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po783 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.o' libtool=no @AMDEPBACKSLASH@784 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@785 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c786 787 libcfa_d_a-startup.obj: startup.c788 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`789 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po790 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.obj' libtool=no @AMDEPBACKSLASH@791 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@792 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`793 794 793 libcfa_d_a-fstream.o: fstream.c 795 794 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-fstream.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-fstream.Tpo -c -o libcfa_d_a-fstream.o `test -f 'fstream.c' || echo '$(srcdir)/'`fstream.c … … 1072 1071 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-libcfa-prelude.obj `if test -f 'libcfa-prelude.c'; then $(CYGPATH_W) 'libcfa-prelude.c'; else $(CYGPATH_W) '$(srcdir)/libcfa-prelude.c'; fi` 1073 1072 1073 libcfa_a-startup.o: startup.c 1074 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 1075 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po 1076 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.o' libtool=no @AMDEPBACKSLASH@ 1077 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1078 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 1079 1080 libcfa_a-startup.obj: startup.c 1081 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 1082 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po 1083 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.obj' libtool=no @AMDEPBACKSLASH@ 1084 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1085 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 1086 1074 1087 libcfa_a-interpose.o: interpose.c 1075 1088 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-interpose.o -MD -MP -MF $(DEPDIR)/libcfa_a-interpose.Tpo -c -o libcfa_a-interpose.o `test -f 'interpose.c' || echo '$(srcdir)/'`interpose.c … … 1141 1154 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1142 1155 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-heap.obj `if test -f 'heap.c'; then $(CYGPATH_W) 'heap.c'; else $(CYGPATH_W) '$(srcdir)/heap.c'; fi` 1143 1144 libcfa_a-startup.o: startup.c1145 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c1146 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po1147 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.o' libtool=no @AMDEPBACKSLASH@1148 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@1149 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c1150 1151 libcfa_a-startup.obj: startup.c1152 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`1153 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po1154 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.obj' libtool=no @AMDEPBACKSLASH@1155 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@1156 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`1157 1156 1158 1157 libcfa_a-fstream.o: fstream.c … … 1677 1676 1678 1677 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 1678 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers 1679 1679 % : %.c 1680 @true 1680 echo "Dummy rule, should never be called" 1681 false 1682 1683 # This rule should always match headers and since it has no prerequisite it will never be called 1684 $(addprefix $(srcdir)/,$(headers)): 1685 echo "Dummy rule, should never be called" 1686 false 1681 1687 1682 1688 concurrency/libcfa_a-invoke.o : concurrency/invoke.c -
src/libcfa/startup.c
r4137e31 r95b1e28 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 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 // 7 // startup.c -- 8 // 6 // 7 // startup.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Jul 24 16:21:57 2018 … … 12 12 // Last Modified On : Wed Jul 25 16:42:01 2018 13 13 // Update Count : 11 14 // 14 // 15 15 16 16 #include "startup.h" … … 39 39 } // extern "C" 40 40 41 struct __spinlock_t; 42 void __cfaabi_dbg_record(struct __spinlock_t & this, const char * prev_name) __attribute__(( weak )) {} 43 41 44 // Local Variables: // 42 45 // mode: c // -
src/tests/Makefile.am
r4137e31 r95b1e28 79 79 @+${TEST_PY} --debug=${debug} -Iconcurrent 80 80 81 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated 82 # however, here it is more complicated because it must match the dependencies based on how 83 # they are generated by gcc 84 headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*") 85 headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers)) 86 headers_deps = $(addprefix %/, $(headers_real)) 87 $(headers_deps) : 88 echo "Dummy rule, should never be called" 89 90 # %/stdlib: 91 # echo "Dummy rule, should never be called" 92 93 # implicit rule so not all test require a rule 81 94 % : %.c $(CC) 95 echo $(headers_deps) 82 96 $(COMPILE) $(abspath ${<}) -o ${@} 83 97 -
src/tests/Makefile.in
r4137e31 r95b1e28 309 309 fstream_test_SOURCES = fstream_test.c 310 310 avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c 311 312 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated 313 # however, here it is more complicated because it must match the dependencies exactly 314 # depencies seem to have the absolute path to the build directory and relative path 315 # to the headers from there 316 headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*") 317 headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers)) 318 headers_deps = $(addprefix %/, $(headers_real)) 311 319 all: all-am 312 320 … … 626 634 concurrency : 627 635 @+${TEST_PY} --debug=${debug} -Iconcurrent 628 636 $(headers_deps) : 637 echo "Dummy rule, should never be called" 638 639 # %/stdlib: 640 # echo "Dummy rule, should never be called" 641 642 # implicit rule so not all test require a rule 629 643 % : %.c $(CC) 644 echo $(headers_deps) 630 645 $(COMPILE) $(abspath ${<}) -o ${@} 631 646 -
src/tests/preempt_longrun/Makefile.am
r4137e31 r95b1e28 32 32 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell cat .type | tr a-z A-Z) 33 33 CFLAGS = ${BUILD_FLAGS} 34 CC = @CFA_BINDIR@/@CFA_NAME@34 CC = ${top_builddir}/src/driver/cfa 35 35 36 36 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield -
src/tests/preempt_longrun/Makefile.in
r4137e31 r95b1e28 337 337 AWK = @AWK@ 338 338 BACKEND_CC = @BACKEND_CC@ 339 CC = @CFA_BINDIR@/@CFA_NAME@339 CC = ${top_builddir}/src/driver/cfa 340 340 CCAS = @CCAS@ 341 341 CCASDEPMODE = @CCASDEPMODE@
Note: See TracChangeset
for help on using the changeset viewer.