- Timestamp:
- Aug 14, 2018, 4:10:58 PM (7 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:
- 636e1b9
- Parents:
- c3a8ecd (diff), 5a5d31a (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. - Location:
- libcfa
- Files:
-
- 16 added
- 119 moved
-
.autom4te.cfg (added)
-
Makefile.am (added)
-
Makefile.in (added)
-
aclocal.m4 (added)
-
automake/compile (added)
-
automake/config.guess (added)
-
automake/config.sub (added)
-
automake/depcomp (added)
-
automake/install-sh (added)
-
automake/missing (added)
-
configure (added)
-
configure.ac (added)
-
prelude/Makefile.am (moved) (moved from src/prelude/Makefile.am ) (3 diffs)
-
prelude/Makefile.in (moved) (moved from src/prelude/Makefile.in ) (14 diffs)
-
prelude/bootloader.cf (moved) (moved from src/prelude/bootloader.cf )
-
prelude/builtins.c (moved) (moved from src/prelude/builtins.c ) (1 diff)
-
prelude/builtins.def (moved) (moved from src/prelude/builtins.def )
-
prelude/extras.c (moved) (moved from src/prelude/extras.c )
-
prelude/extras.regx (moved) (moved from src/prelude/extras.regx )
-
prelude/prelude-gen.cc (moved) (moved from src/prelude/prelude-gen.cc )
-
prelude/prelude.old.cf (added)
-
prelude/prototypes.awk (moved) (moved from src/prelude/prototypes.awk )
-
prelude/prototypes.c (moved) (moved from src/prelude/prototypes.c )
-
prelude/prototypes.sed (moved) (moved from src/prelude/prototypes.sed )
-
prelude/sync-builtins.cf (moved) (moved from src/prelude/sync-builtins.cf )
-
prelude/sync-builtins.def (moved) (moved from src/prelude/sync-builtins.def )
-
src/Makefile.am (added)
-
src/Makefile.in (moved) (moved from src/examples/Makefile.in ) (25 diffs)
-
src/assert.cfa (moved) (moved from src/libcfa/assert.c ) (1 diff)
-
src/bits/algorithm.hfa (moved) (moved from src/libcfa/bits/algorithms.h ) (1 diff)
-
src/bits/align.hfa (moved) (moved from src/libcfa/bits/align.h ) (1 diff)
-
src/bits/containers.hfa (moved) (moved from src/libcfa/bits/containers.h ) (2 diffs)
-
src/bits/debug.cfa (moved) (moved from src/libcfa/bits/debug.c )
-
src/bits/debug.hfa (moved) (moved from src/libcfa/bits/debug.h ) (1 diff)
-
src/bits/defs.hfa (moved) (moved from src/libcfa/bits/defs.h ) (1 diff)
-
src/bits/locks.hfa (moved) (moved from src/libcfa/bits/locks.h ) (2 diffs)
-
src/bits/signal.hfa (moved) (moved from src/libcfa/bits/signal.h ) (2 diffs)
-
src/clock.hfa (moved) (moved from src/libcfa/clock ) (2 diffs)
-
src/common.cfa (moved) (moved from src/libcfa/common.c ) (2 diffs)
-
src/common.hfa (moved) (moved from src/libcfa/common )
-
src/concurrency/CtxSwitch-armv7l.S (moved) (moved from src/libcfa/concurrency/CtxSwitch-armv7l.S )
-
src/concurrency/CtxSwitch-i386.S (moved) (moved from src/libcfa/concurrency/CtxSwitch-i386.S )
-
src/concurrency/CtxSwitch-i686.S (moved) (moved from src/libcfa/concurrency/CtxSwitch-i686.S )
-
src/concurrency/CtxSwitch-x64.S (added)
-
src/concurrency/CtxSwitch-x86.S (added)
-
src/concurrency/CtxSwitch-x86_64.S (moved) (moved from src/libcfa/concurrency/CtxSwitch-x86_64.S )
-
src/concurrency/alarm.cfa (moved) (moved from src/libcfa/concurrency/alarm.c ) (1 diff)
-
src/concurrency/alarm.hfa (moved) (moved from src/libcfa/concurrency/alarm.h ) (2 diffs)
-
src/concurrency/coroutine.cfa (moved) (moved from src/libcfa/concurrency/coroutine.c ) (2 diffs)
-
src/concurrency/coroutine.hfa (moved) (moved from src/libcfa/concurrency/coroutine )
-
src/concurrency/invoke.c (moved) (moved from src/libcfa/concurrency/invoke.c )
-
src/concurrency/invoke.h (moved) (moved from src/libcfa/concurrency/invoke.h ) (1 diff)
-
src/concurrency/kernel.cfa (moved) (moved from src/libcfa/concurrency/kernel.c ) (1 diff)
-
src/concurrency/kernel.hfa (moved) (moved from src/libcfa/concurrency/kernel ) (1 diff)
-
src/concurrency/kernel_private.hfa (moved) (moved from src/libcfa/concurrency/kernel_private.h ) (2 diffs)
-
src/concurrency/monitor.cfa (moved) (moved from src/libcfa/concurrency/monitor.c ) (1 diff)
-
src/concurrency/monitor.hfa (moved) (moved from src/libcfa/concurrency/monitor ) (1 diff)
-
src/concurrency/mutex.cfa (moved) (moved from src/libcfa/concurrency/mutex.c ) (1 diff)
-
src/concurrency/mutex.hfa (moved) (moved from src/libcfa/concurrency/mutex ) (1 diff)
-
src/concurrency/preemption.cfa (moved) (moved from src/libcfa/concurrency/preemption.c ) (2 diffs)
-
src/concurrency/preemption.hfa (moved) (moved from src/libcfa/concurrency/preemption.h ) (2 diffs)
-
src/concurrency/thread.cfa (moved) (moved from src/libcfa/concurrency/thread.c ) (1 diff)
-
src/concurrency/thread.hfa (moved) (moved from src/libcfa/concurrency/thread ) (1 diff)
-
src/containers/maybe.cfa (moved) (moved from src/libcfa/containers/maybe.c ) (1 diff)
-
src/containers/maybe.hfa (moved) (moved from src/libcfa/containers/maybe )
-
src/containers/pair.cfa (moved) (moved from src/libcfa/containers/pair.c ) (4 diffs)
-
src/containers/pair.hfa (moved) (moved from src/libcfa/containers/pair )
-
src/containers/result.cfa (moved) (moved from src/libcfa/containers/result.c ) (1 diff)
-
src/containers/result.hfa (moved) (moved from src/libcfa/containers/result )
-
src/containers/vector.cfa (moved) (moved from src/libcfa/containers/vector.c ) (1 diff)
-
src/containers/vector.hfa (moved) (moved from src/libcfa/containers/vector )
-
src/exception.c (moved) (moved from src/libcfa/exception.c ) (1 diff)
-
src/exception.h (moved) (moved from src/libcfa/exception.h )
-
src/expat.h (moved) (moved from src/libcfa/expat.h )
-
src/fstream.cfa (moved) (moved from src/libcfa/fstream.c ) (1 diff)
-
src/fstream.hfa (moved) (moved from src/libcfa/fstream ) (1 diff)
-
src/gmp.hfa (moved) (moved from src/libcfa/gmp ) (1 diff)
-
src/heap.cfa (moved) (moved from src/libcfa/heap.c ) (7 diffs)
-
src/interpose.cfa (moved) (moved from src/libcfa/interpose.c ) (1 diff)
-
src/iostream.cfa (moved) (moved from src/libcfa/iostream.c ) (1 diff)
-
src/iostream.hfa (moved) (moved from src/libcfa/iostream ) (2 diffs)
-
src/iterator.cfa (moved) (moved from src/libcfa/iterator.c ) (2 diffs)
-
src/iterator.hfa (moved) (moved from src/libcfa/iterator )
-
src/limits.cfa (moved) (moved from src/libcfa/limits.c ) (3 diffs)
-
src/limits.hfa (moved) (moved from src/libcfa/limits )
-
src/lsda.h (moved) (moved from src/libcfa/lsda.h )
-
src/math.hfa (moved) (moved from src/libcfa/math ) (1 diff)
-
src/memcheck.awk (moved) (moved from src/libcfa/memcheck.awk )
-
src/rational.cfa (moved) (moved from src/libcfa/rational.c ) (1 diff)
-
src/rational.hfa (moved) (moved from src/libcfa/rational ) (1 diff)
-
src/startup.cfa (moved) (moved from src/libcfa/startup.c ) (1 diff)
-
src/startup.hfa (moved) (moved from src/libcfa/startup.h ) (1 diff)
-
src/stdhdr/assert.h (moved) (moved from src/libcfa/stdhdr/assert.h )
-
src/stdhdr/bfdlink.h (moved) (moved from src/libcfa/stdhdr/bfdlink.h )
-
src/stdhdr/complex.h (moved) (moved from src/libcfa/stdhdr/complex.h )
-
src/stdhdr/ctype.h (moved) (moved from src/libcfa/stdhdr/ctype.h )
-
src/stdhdr/errno.h (moved) (moved from src/libcfa/stdhdr/errno.h )
-
src/stdhdr/fenv.h (moved) (moved from src/libcfa/stdhdr/fenv.h )
-
src/stdhdr/float.h (moved) (moved from src/libcfa/stdhdr/float.h )
-
src/stdhdr/gmp.h (moved) (moved from src/libcfa/stdhdr/gmp.h )
-
src/stdhdr/hwloc.h (moved) (moved from src/libcfa/stdhdr/hwloc.h )
-
src/stdhdr/inttypes.h (moved) (moved from src/libcfa/stdhdr/inttypes.h )
-
src/stdhdr/iso646.h (moved) (moved from src/libcfa/stdhdr/iso646.h )
-
src/stdhdr/krb5.h (moved) (moved from src/libcfa/stdhdr/krb5.h )
-
src/stdhdr/limits.h (moved) (moved from src/libcfa/stdhdr/limits.h )
-
src/stdhdr/locale.h (moved) (moved from src/libcfa/stdhdr/locale.h )
-
src/stdhdr/malloc.h (moved) (moved from src/libcfa/stdhdr/malloc.h )
-
src/stdhdr/math.h (moved) (moved from src/libcfa/stdhdr/math.h )
-
src/stdhdr/setjmp.h (moved) (moved from src/libcfa/stdhdr/setjmp.h )
-
src/stdhdr/signal.h (moved) (moved from src/libcfa/stdhdr/signal.h )
-
src/stdhdr/stdalign.h (moved) (moved from src/libcfa/stdhdr/stdalign.h )
-
src/stdhdr/stdarg.h (moved) (moved from src/libcfa/stdhdr/stdarg.h )
-
src/stdhdr/stdatomic.h (moved) (moved from src/libcfa/stdhdr/stdatomic.h )
-
src/stdhdr/stdbool.h (moved) (moved from src/libcfa/stdhdr/stdbool.h )
-
src/stdhdr/stddef.h (moved) (moved from src/libcfa/stdhdr/stddef.h )
-
src/stdhdr/stdint.h (moved) (moved from src/libcfa/stdhdr/stdint.h )
-
src/stdhdr/stdio.h (moved) (moved from src/libcfa/stdhdr/stdio.h )
-
src/stdhdr/stdlib.h (moved) (moved from src/libcfa/stdhdr/stdlib.h )
-
src/stdhdr/stdnoreturn.h (moved) (moved from src/libcfa/stdhdr/stdnoreturn.h )
-
src/stdhdr/string.h (moved) (moved from src/libcfa/stdhdr/string.h )
-
src/stdhdr/sys/ucontext.h (moved) (moved from src/libcfa/stdhdr/sys/ucontext.h )
-
src/stdhdr/tgmath.h (moved) (moved from src/libcfa/stdhdr/tgmath.h )
-
src/stdhdr/threads.h (moved) (moved from src/libcfa/stdhdr/threads.h )
-
src/stdhdr/time.h (moved) (moved from src/libcfa/stdhdr/time.h )
-
src/stdhdr/uchar.h (moved) (moved from src/libcfa/stdhdr/uchar.h )
-
src/stdhdr/unistd.h (moved) (moved from src/libcfa/stdhdr/unistd.h )
-
src/stdhdr/wchar.h (moved) (moved from src/libcfa/stdhdr/wchar.h )
-
src/stdhdr/wctype.h (moved) (moved from src/libcfa/stdhdr/wctype.h )
-
src/stdlib.cfa (moved) (moved from src/libcfa/stdlib.c ) (1 diff)
-
src/stdlib.hfa (moved) (moved from src/libcfa/stdlib ) (1 diff)
-
src/time.cfa (moved) (moved from src/libcfa/time.c ) (2 diffs)
-
src/time.hfa (moved) (moved from src/libcfa/time ) (1 diff)
-
src/time_t.hfa (moved) (moved from src/libcfa/time_t.h ) (2 diffs)
-
src/virtual.c (moved) (moved from src/libcfa/virtual.c )
-
src/virtual.h (moved) (moved from src/libcfa/virtual.h )
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/Makefile.am
rc3a8ecd r7cd8827 16 16 17 17 # create object files in directory with source files 18 AUTOMAKE_OPTIONS = subdir-objects18 AUTOMAKE_OPTIONS = foreign subdir-objects 19 19 20 20 # put into lib for now 21 21 cfalibdir = ${CFA_LIBDIR} 22 22 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cf bootloader.c 23 noinst_DATA = ../ libcfa/libcfa-prelude.c23 noinst_DATA = ../src/prelude.c 24 24 25 25 CC = @CFACC@ 26 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 27 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 26 28 27 29 $(DEPDIR) : … … 33 35 # create extra forward types/declarations to reduce inclusion of library files 34 36 extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c 35 ${AM_V_GEN} @BACKEND_CC@ @CFA_FLAGS@-E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf37 ${AM_V_GEN}gcc ${AM_CFLAGS} -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf 36 38 37 39 # create forward declarations for gcc builtins 38 40 gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed 39 ${AM_V_GEN} @BACKEND_CC@ @CFA_FLAGS@-I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@41 ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@ 40 42 41 43 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c 42 ${AM_V_GEN} @BACKEND_CC@ @CFA_FLAGS@-I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@44 ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@ 43 45 44 46 prelude.cf : prelude-gen.cc 45 ${AM_V_GEN}${CXX} ${AM_CXXFLAGS} ${CXXFLAGS} ${ <} -o prelude-gen -Wall -Wextra -O2 -g -std=c++1447 ${AM_V_GEN}${CXX} ${AM_CXXFLAGS} ${CXXFLAGS} ${AM_CFLAGS} ${<} -o prelude-gen -Wall -Wextra -O2 -g -std=c++14 46 48 @./prelude-gen > $@ 47 49 @rm ./prelude-gen … … 53 55 # create forward declarations for cfa builtins 54 56 builtins.cf : builtins.c ${CC} 55 ${AM_V_GEN} ${CC} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po57 ${AM_V_GEN}gcc ${AM_CFLAGS} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po 56 58 ${AM_V_at}sed -i 's/builtins.o/builtins.cf/g' $(DEPDIR)/builtins.Po 57 59 58 60 include $(DEPDIR)/builtins.Po 59 61 60 ../ libcfa/libcfa-prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@61 ${AM_V_GEN}@CFACPP@ - l prelude.cf $@ # use src/cfa-cpp as not in lib until after install62 ../src/prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@ 63 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -l prelude.cf $@ # use src/cfa-cpp as not in lib until after install 62 64 63 65 bootloader.c : ${srcdir}/bootloader.cf prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@ 64 ${AM_V_GEN}@CFACPP@ - tpm ${srcdir}/bootloader.cf $@ # use src/cfa-cpp as not in lib until after install66 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -tpm ${srcdir}/bootloader.cf $@ # use src/cfa-cpp as not in lib until after install 65 67 66 68 maintainer-clean-local : 67 69 rm -rf $(DEPDIR) 68 70 69 MAINTAINERCLEANFILES = gcc-builtins.c gcc-builtins.cf builtins.cf extras.cf bootloader.c prelude.cf ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 71 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cf 72 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} -
libcfa/prelude/Makefile.in
rc3a8ecd r7cd8827 90 90 PRE_UNINSTALL = : 91 91 POST_UNINSTALL = : 92 build_triplet = @build@ 93 host_triplet = @host@ 94 subdir = src/prelude 92 subdir = prelude 95 93 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 96 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 94 am__aclocal_m4_deps = $(top_srcdir)/../automake/cfa.m4 \ 95 $(top_srcdir)/configure.ac 97 96 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 98 97 $(ACLOCAL_M4) 99 98 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) 100 99 mkinstalldirs = $(install_sh) -d 101 CONFIG_HEADER = $(top_builddir)/config.h102 100 CONFIG_CLEAN_FILES = 103 101 CONFIG_CLEAN_VPATH_FILES = … … 154 152 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 155 153 ACLOCAL = @ACLOCAL@ 156 ALLOCA = @ALLOCA@157 154 AMTAR = @AMTAR@ 158 155 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 156 ARCHITECTURE = @ARCHITECTURE@ 157 ARCH_FLAGS = @ARCH_FLAGS@ 159 158 AUTOCONF = @AUTOCONF@ 160 159 AUTOHEADER = @AUTOHEADER@ 161 160 AUTOMAKE = @AUTOMAKE@ 162 161 AWK = @AWK@ 163 BACKEND_CC = @BACKEND_CC@164 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@165 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@166 162 CC = @CFACC@ 167 163 CCAS = @CCAS@ … … 171 167 CFACC = @CFACC@ 172 168 CFACPP = @CFACPP@ 173 CFA_BACKEND_CC = @CFA_BACKEND_CC@174 169 CFA_BINDIR = @CFA_BINDIR@ 175 CFA_FLAGS = @CFA_FLAGS@176 170 CFA_INCDIR = @CFA_INCDIR@ 177 171 CFA_LIBDIR = @CFA_LIBDIR@ … … 179 173 CFA_PREFIX = @CFA_PREFIX@ 180 174 CFLAGS = @CFLAGS@ 181 CPP = @CPP@ 175 CONFIGURATION = @CONFIGURATION@ 176 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 177 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 182 178 CPPFLAGS = @CPPFLAGS@ 183 179 CXX = @CXX@ … … 191 187 ECHO_N = @ECHO_N@ 192 188 ECHO_T = @ECHO_T@ 193 EGREP = @EGREP@194 189 EXEEXT = @EXEEXT@ 195 GREP = @GREP@196 190 INSTALL = @INSTALL@ 197 191 INSTALL_DATA = @INSTALL_DATA@ … … 200 194 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 201 195 LDFLAGS = @LDFLAGS@ 202 LEX = @LEX@203 LEXLIB = @LEXLIB@204 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@205 196 LIBOBJS = @LIBOBJS@ 206 197 LIBS = @LIBS@ 207 198 LTLIBOBJS = @LTLIBOBJS@ 208 MACHINE_TYPE = @MACHINE_TYPE@209 199 MAKEINFO = @MAKEINFO@ 210 200 MKDIR_P = @MKDIR_P@ … … 223 213 STRIP = @STRIP@ 224 214 VERSION = @VERSION@ 225 YACC = @YACC@226 YFLAGS = @YFLAGS@227 215 abs_builddir = @abs_builddir@ 228 216 abs_srcdir = @abs_srcdir@ … … 237 225 am__untar = @am__untar@ 238 226 bindir = @bindir@ 239 build = @build@240 227 build_alias = @build_alias@ 241 build_cpu = @build_cpu@242 build_os = @build_os@243 build_vendor = @build_vendor@244 228 builddir = @builddir@ 245 229 datadir = @datadir@ … … 248 232 dvidir = @dvidir@ 249 233 exec_prefix = @exec_prefix@ 250 host = @host@251 234 host_alias = @host_alias@ 252 host_cpu = @host_cpu@253 host_os = @host_os@254 host_vendor = @host_vendor@255 235 htmldir = @htmldir@ 256 236 includedir = @includedir@ … … 279 259 280 260 # create object files in directory with source files 281 AUTOMAKE_OPTIONS = subdir-objects261 AUTOMAKE_OPTIONS = foreign subdir-objects 282 262 283 263 # put into lib for now 284 264 cfalibdir = ${CFA_LIBDIR} 285 265 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cf bootloader.c 286 noinst_DATA = ../libcfa/libcfa-prelude.c 287 MAINTAINERCLEANFILES = gcc-builtins.c gcc-builtins.cf builtins.cf extras.cf bootloader.c prelude.cf ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 266 noinst_DATA = ../src/prelude.c 267 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 268 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 269 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cf 270 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 288 271 all: all-am 289 272 … … 298 281 esac; \ 299 282 done; \ 300 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/prelude/Makefile'; \283 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign prelude/Makefile'; \ 301 284 $(am__cd) $(top_srcdir) && \ 302 $(AUTOMAKE) --foreign src/prelude/Makefile285 $(AUTOMAKE) --foreign prelude/Makefile 303 286 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 304 287 @case '$?' in \ … … 403 386 fi 404 387 mostlyclean-generic: 388 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) 405 389 406 390 clean-generic: … … 506 490 # create extra forward types/declarations to reduce inclusion of library files 507 491 extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c 508 ${AM_V_GEN} @BACKEND_CC@ @CFA_FLAGS@-E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf492 ${AM_V_GEN}gcc ${AM_CFLAGS} -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf 509 493 510 494 # create forward declarations for gcc builtins 511 495 gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed 512 ${AM_V_GEN} @BACKEND_CC@ @CFA_FLAGS@-I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@496 ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@ 513 497 514 498 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c 515 ${AM_V_GEN} @BACKEND_CC@ @CFA_FLAGS@-I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@499 ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@ 516 500 517 501 prelude.cf : prelude-gen.cc 518 ${AM_V_GEN}${CXX} ${AM_CXXFLAGS} ${CXXFLAGS} ${ <} -o prelude-gen -Wall -Wextra -O2 -g -std=c++14502 ${AM_V_GEN}${CXX} ${AM_CXXFLAGS} ${CXXFLAGS} ${AM_CFLAGS} ${<} -o prelude-gen -Wall -Wextra -O2 -g -std=c++14 519 503 @./prelude-gen > $@ 520 504 @rm ./prelude-gen … … 526 510 # create forward declarations for cfa builtins 527 511 builtins.cf : builtins.c ${CC} 528 ${AM_V_GEN} ${CC} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po512 ${AM_V_GEN}gcc ${AM_CFLAGS} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po 529 513 ${AM_V_at}sed -i 's/builtins.o/builtins.cf/g' $(DEPDIR)/builtins.Po 530 514 531 515 include $(DEPDIR)/builtins.Po 532 516 533 ../ libcfa/libcfa-prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@534 ${AM_V_GEN}@CFACPP@ - l prelude.cf $@ # use src/cfa-cpp as not in lib until after install517 ../src/prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@ 518 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -l prelude.cf $@ # use src/cfa-cpp as not in lib until after install 535 519 536 520 bootloader.c : ${srcdir}/bootloader.cf prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@ 537 ${AM_V_GEN}@CFACPP@ - tpm ${srcdir}/bootloader.cf $@ # use src/cfa-cpp as not in lib until after install521 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -tpm ${srcdir}/bootloader.cf $@ # use src/cfa-cpp as not in lib until after install 538 522 539 523 maintainer-clean-local : -
libcfa/prelude/builtins.c
rc3a8ecd r7cd8827 18 18 typedef unsigned long long __cfaabi_abi_exception_type_t; 19 19 20 #include "../ libcfa/virtual.h"21 #include "../ libcfa/exception.h"20 #include "../src/virtual.h" 21 #include "../src/exception.h" 22 22 23 23 void exit( int status, const char fmt[], ... ) __attribute__ (( format(printf, 2, 3), __nothrow__, __leaf__, __noreturn__ )); -
libcfa/src/Makefile.in
rc3a8ecd r7cd8827 17 17 ######################## -*- Mode: Makefile-Automake -*- ###################### 18 18 ############################################################################### 19 19 20 20 21 VPATH = @srcdir@ … … 90 91 PRE_UNINSTALL = : 91 92 POST_UNINSTALL = : 92 build_triplet = @build@ 93 host_triplet = @host@ 94 noinst_PROGRAMS = fstream_test$(EXEEXT) vector_test$(EXEEXT) \ 95 avl_test$(EXEEXT) Bench$(EXEEXT) 96 subdir = src/examples 93 subdir = src 97 94 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 98 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 95 am__aclocal_m4_deps = $(top_srcdir)/../automake/cfa.m4 \ 96 $(top_srcdir)/configure.ac 99 97 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 100 98 $(ACLOCAL_M4) 101 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) 99 DIST_COMMON = $(srcdir)/Makefile.am $(nobase_cfa_include_HEADERS) \ 100 $(am__DIST_COMMON) 102 101 mkinstalldirs = $(install_sh) -d 103 CONFIG_HEADER = $(top_builddir)/config.h104 102 CONFIG_CLEAN_FILES = 105 103 CONFIG_CLEAN_VPATH_FILES = 106 PROGRAMS = $(noinst_PROGRAMS) 107 Bench_SOURCES = Bench.c 108 Bench_OBJECTS = Bench.$(OBJEXT) 109 Bench_LDADD = $(LDADD) 104 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 105 am__vpath_adj = case $$p in \ 106 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 107 *) f=$$p;; \ 108 esac; 109 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; 110 am__install_max = 40 111 am__nobase_strip_setup = \ 112 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` 113 am__nobase_strip = \ 114 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" 115 am__nobase_list = $(am__nobase_strip_setup); \ 116 for p in $$list; do echo "$$p $$p"; done | \ 117 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ 118 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ 119 if (++n[$$2] == $(am__install_max)) \ 120 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ 121 END { for (dir in files) print dir, files[dir] }' 122 am__base_list = \ 123 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ 124 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' 125 am__uninstall_files_from_dir = { \ 126 test -z "$$files" \ 127 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ 128 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ 129 $(am__cd) "$$dir" && rm -f $$files; }; \ 130 } 131 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(cfa_includedir)" 132 LIBRARIES = $(lib_LIBRARIES) 133 AR = ar 134 AM_V_AR = $(am__v_AR_@AM_V@) 135 am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) 136 am__v_AR_0 = @echo " AR " $@; 137 am__v_AR_1 = 138 libcfa_a_AR = $(AR) $(ARFLAGS) 139 libcfa_a_LIBADD = 110 140 am__dirstamp = $(am__leading_dot)dirstamp 111 am_avl_test_OBJECTS = avltree/avl_test.$(OBJEXT) \ 112 avltree/avl0.$(OBJEXT) avltree/avl1.$(OBJEXT) \ 113 avltree/avl2.$(OBJEXT) avltree/avl3.$(OBJEXT) \ 114 avltree/avl4.$(OBJEXT) avltree/avl-private.$(OBJEXT) 115 avl_test_OBJECTS = $(am_avl_test_OBJECTS) 116 avl_test_LDADD = $(LDADD) 117 am_fstream_test_OBJECTS = fstream_test.$(OBJEXT) 118 fstream_test_OBJECTS = $(am_fstream_test_OBJECTS) 119 fstream_test_LDADD = $(LDADD) 120 am_vector_test_OBJECTS = vector_int.$(OBJEXT) array.$(OBJEXT) \ 121 vector_test.$(OBJEXT) 122 vector_test_OBJECTS = $(am_vector_test_OBJECTS) 123 vector_test_LDADD = $(LDADD) 141 am__objects_1 = fstream.$(OBJEXT) iostream.$(OBJEXT) \ 142 iterator.$(OBJEXT) limits.$(OBJEXT) rational.$(OBJEXT) \ 143 time.$(OBJEXT) stdlib.$(OBJEXT) common.$(OBJEXT) \ 144 containers/maybe.$(OBJEXT) containers/pair.$(OBJEXT) \ 145 containers/result.$(OBJEXT) containers/vector.$(OBJEXT) \ 146 concurrency/coroutine.$(OBJEXT) concurrency/thread.$(OBJEXT) \ 147 concurrency/kernel.$(OBJEXT) concurrency/monitor.$(OBJEXT) \ 148 concurrency/mutex.$(OBJEXT) 149 am__objects_2 = prelude.$(OBJEXT) startup.$(OBJEXT) \ 150 interpose.$(OBJEXT) bits/debug.$(OBJEXT) assert.$(OBJEXT) \ 151 exception.$(OBJEXT) virtual.$(OBJEXT) heap.$(OBJEXT) \ 152 $(am__objects_1) \ 153 concurrency/CtxSwitch-@ARCHITECTURE@.$(OBJEXT) \ 154 concurrency/alarm.$(OBJEXT) concurrency/invoke.$(OBJEXT) \ 155 concurrency/preemption.$(OBJEXT) 156 am_libcfa_a_OBJECTS = $(am__objects_2) 157 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) 124 158 AM_V_P = $(am__v_P_@AM_V@) 125 159 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) … … 134 168 am__v_at_0 = @ 135 169 am__v_at_1 = 136 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)137 depcomp = $(SHELL) $(top_srcdir)/ automake/depcomp170 DEFAULT_INCLUDES = -I.@am__isrc@ 171 depcomp = $(SHELL) $(top_srcdir)/./automake/depcomp 138 172 am__depfiles_maybe = depfiles 139 173 am__mv = mv -f 174 CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 175 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) 176 AM_V_CPPAS = $(am__v_CPPAS_@AM_V@) 177 am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@) 178 am__v_CPPAS_0 = @echo " CPPAS " $@; 179 am__v_CPPAS_1 = 140 180 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 141 181 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) … … 150 190 am__v_CCLD_0 = @echo " CCLD " $@; 151 191 am__v_CCLD_1 = 152 SOURCES = Bench.c $(avl_test_SOURCES) $(fstream_test_SOURCES) \ 153 $(vector_test_SOURCES) 154 DIST_SOURCES = Bench.c $(avl_test_SOURCES) $(fstream_test_SOURCES) \ 155 $(vector_test_SOURCES) 192 SOURCES = $(libcfa_a_SOURCES) 193 DIST_SOURCES = $(libcfa_a_SOURCES) 156 194 am__can_run_installinfo = \ 157 195 case $$AM_UPDATE_INFO_DIR in \ … … 159 197 *) (install-info --version) >/dev/null 2>&1;; \ 160 198 esac 199 HEADERS = $(nobase_cfa_include_HEADERS) 161 200 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 162 201 # Read a list of newline-separated strings from the standard input, … … 178 217 ETAGS = etags 179 218 CTAGS = ctags 180 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/automake/depcomp 219 am__DIST_COMMON = $(srcdir)/../../src/cfa.make $(srcdir)/Makefile.in \ 220 $(top_srcdir)/./automake/depcomp 181 221 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 182 222 ACLOCAL = @ACLOCAL@ 183 ALLOCA = @ALLOCA@184 223 AMTAR = @AMTAR@ 185 224 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 225 ARCHITECTURE = @ARCHITECTURE@ 226 ARCH_FLAGS = @ARCH_FLAGS@ 186 227 AUTOCONF = @AUTOCONF@ 187 228 AUTOHEADER = @AUTOHEADER@ 188 229 AUTOMAKE = @AUTOMAKE@ 189 230 AWK = @AWK@ 190 BACKEND_CC = @BACKEND_CC@ 191 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 192 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@ 193 CC = @CFA_BINDIR@/@CFA_NAME@ 231 CC = @CC@ 194 232 CCAS = @CCAS@ 195 233 CCASDEPMODE = @CCASDEPMODE@ … … 198 236 CFACC = @CFACC@ 199 237 CFACPP = @CFACPP@ 200 CFA_BACKEND_CC = @CFA_BACKEND_CC@201 238 CFA_BINDIR = @CFA_BINDIR@ 202 CFA_FLAGS = @CFA_FLAGS@203 239 CFA_INCDIR = @CFA_INCDIR@ 204 240 CFA_LIBDIR = @CFA_LIBDIR@ 205 241 CFA_NAME = @CFA_NAME@ 206 242 CFA_PREFIX = @CFA_PREFIX@ 207 208 # applies to both programs 209 C FLAGS =210 C PP = @CPP@243 CFLAGS = @CFLAGS@ 244 CONFIGURATION = @CONFIGURATION@ 245 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 246 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 211 247 CPPFLAGS = @CPPFLAGS@ 212 248 CXX = @CXX@ … … 220 256 ECHO_N = @ECHO_N@ 221 257 ECHO_T = @ECHO_T@ 222 EGREP = @EGREP@223 258 EXEEXT = @EXEEXT@ 224 GREP = @GREP@225 259 INSTALL = @INSTALL@ 226 260 INSTALL_DATA = @INSTALL_DATA@ … … 229 263 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 230 264 LDFLAGS = @LDFLAGS@ 231 LEX = @LEX@232 LEXLIB = @LEXLIB@233 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@234 265 LIBOBJS = @LIBOBJS@ 235 266 LIBS = @LIBS@ 236 267 LTLIBOBJS = @LTLIBOBJS@ 237 MACHINE_TYPE = @MACHINE_TYPE@238 268 MAKEINFO = @MAKEINFO@ 239 269 MKDIR_P = @MKDIR_P@ … … 252 282 STRIP = @STRIP@ 253 283 VERSION = @VERSION@ 254 YACC = @YACC@255 YFLAGS = @YFLAGS@256 284 abs_builddir = @abs_builddir@ 257 285 abs_srcdir = @abs_srcdir@ … … 266 294 am__untar = @am__untar@ 267 295 bindir = @bindir@ 268 build = @build@269 296 build_alias = @build_alias@ 270 build_cpu = @build_cpu@271 build_os = @build_os@272 build_vendor = @build_vendor@273 297 builddir = @builddir@ 274 298 datadir = @datadir@ … … 277 301 dvidir = @dvidir@ 278 302 exec_prefix = @exec_prefix@ 279 host = @host@280 303 host_alias = @host_alias@ 281 host_cpu = @host_cpu@282 host_os = @host_os@283 host_vendor = @host_vendor@284 304 htmldir = @htmldir@ 285 305 includedir = @includedir@ 286 306 infodir = @infodir@ 287 307 install_sh = @install_sh@ 288 libdir = @libdir@308 libdir = ${CFA_LIBDIR} 289 309 libexecdir = @libexecdir@ 290 310 localedir = @localedir@ … … 306 326 top_builddir = @top_builddir@ 307 327 top_srcdir = @top_srcdir@ 308 AM_CFLAGS = -g -Wall -Wno-unused-function -O2 309 fstream_test_SOURCES = fstream_test.c 310 vector_test_SOURCES = vector_int.c array.c vector_test.c 311 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 328 329 # create object files in directory with source files 330 AUTOMAKE_OPTIONS = subdir-objects 331 ARFLAGS = cr 332 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS) 333 AM_V_CFA = $(am__v_CFA_@AM_V@) 334 am__v_CFA_ = $(am__v_CFA_@AM_DEFAULT_V@) 335 am__v_CFA_0 = @echo " CFA " $@; 336 am__v_CFA_1 = 337 lib_LIBRARIES = libcfa.a 338 339 # AM_CFLAGS for all cfa source 340 # AM_CFAFLAGS for only cfa source 341 # use -no-include-stdhdr to prevent rebuild cycles 342 # The built sources must not depend on the installed headers 343 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 344 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 345 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 346 347 #---------------------------------------------------------------------------------------------------------------- 348 349 # not all platforms support concurrency, add option do disable it 350 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa \ 351 rational.hfa time.hfa stdlib.hfa common.hfa \ 352 containers/maybe.hfa containers/pair.hfa containers/result.hfa \ 353 containers/vector.hfa concurrency/coroutine.hfa \ 354 concurrency/thread.hfa concurrency/kernel.hfa \ 355 concurrency/monitor.hfa concurrency/mutex.hfa 356 libobjs = ${headers:.hfa=.o} 357 358 # not all platforms support concurrency, add option do disable it 359 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa \ 360 exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} \ 361 concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa \ 362 concurrency/invoke.c concurrency/preemption.cfa 363 libcfa_a_SOURCES = ${libsrc} 364 stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} 365 cfa_includedir = $(CFA_INCDIR) 366 nobase_cfa_include_HEADERS = \ 367 ${headers} \ 368 ${stdhdr} \ 369 math.hfa \ 370 gmp.hfa \ 371 time_t.hfa \ 372 bits/align.hfa \ 373 bits/containers.hfa \ 374 bits/defs.hfa \ 375 bits/debug.hfa \ 376 bits/locks.hfa \ 377 concurrency/invoke.h 378 379 MOSTLYCLEANFILES = prelude.c 312 380 all: all-am 313 381 314 382 .SUFFIXES: 315 .SUFFIXES: . c.o .obj316 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)383 .SUFFIXES: .S .c .cfa .o .obj 384 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../../src/cfa.make $(am__configure_deps) 317 385 @for dep in $?; do \ 318 386 case '$(am__configure_deps)' in \ … … 323 391 esac; \ 324 392 done; \ 325 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ examples/Makefile'; \393 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ 326 394 $(am__cd) $(top_srcdir) && \ 327 $(AUTOMAKE) --foreign src/ examples/Makefile395 $(AUTOMAKE) --foreign src/Makefile 328 396 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 329 397 @case '$?' in \ … … 334 402 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 335 403 esac; 404 $(srcdir)/../../src/cfa.make $(am__empty): 336 405 337 406 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) … … 343 412 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 344 413 $(am__aclocal_m4_deps): 345 346 clean-noinstPROGRAMS: 347 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) 348 avltree/$(am__dirstamp): 349 @$(MKDIR_P) avltree 350 @: > avltree/$(am__dirstamp) 351 avltree/$(DEPDIR)/$(am__dirstamp): 352 @$(MKDIR_P) avltree/$(DEPDIR) 353 @: > avltree/$(DEPDIR)/$(am__dirstamp) 354 avltree/avl_test.$(OBJEXT): avltree/$(am__dirstamp) \ 355 avltree/$(DEPDIR)/$(am__dirstamp) 356 avltree/avl0.$(OBJEXT): avltree/$(am__dirstamp) \ 357 avltree/$(DEPDIR)/$(am__dirstamp) 358 avltree/avl1.$(OBJEXT): avltree/$(am__dirstamp) \ 359 avltree/$(DEPDIR)/$(am__dirstamp) 360 avltree/avl2.$(OBJEXT): avltree/$(am__dirstamp) \ 361 avltree/$(DEPDIR)/$(am__dirstamp) 362 avltree/avl3.$(OBJEXT): avltree/$(am__dirstamp) \ 363 avltree/$(DEPDIR)/$(am__dirstamp) 364 avltree/avl4.$(OBJEXT): avltree/$(am__dirstamp) \ 365 avltree/$(DEPDIR)/$(am__dirstamp) 366 avltree/avl-private.$(OBJEXT): avltree/$(am__dirstamp) \ 367 avltree/$(DEPDIR)/$(am__dirstamp) 368 369 avl_test$(EXEEXT): $(avl_test_OBJECTS) $(avl_test_DEPENDENCIES) $(EXTRA_avl_test_DEPENDENCIES) 370 @rm -f avl_test$(EXEEXT) 371 $(AM_V_CCLD)$(LINK) $(avl_test_OBJECTS) $(avl_test_LDADD) $(LIBS) 372 373 fstream_test$(EXEEXT): $(fstream_test_OBJECTS) $(fstream_test_DEPENDENCIES) $(EXTRA_fstream_test_DEPENDENCIES) 374 @rm -f fstream_test$(EXEEXT) 375 $(AM_V_CCLD)$(LINK) $(fstream_test_OBJECTS) $(fstream_test_LDADD) $(LIBS) 376 377 vector_test$(EXEEXT): $(vector_test_OBJECTS) $(vector_test_DEPENDENCIES) $(EXTRA_vector_test_DEPENDENCIES) 378 @rm -f vector_test$(EXEEXT) 379 $(AM_V_CCLD)$(LINK) $(vector_test_OBJECTS) $(vector_test_LDADD) $(LIBS) 414 install-libLIBRARIES: $(lib_LIBRARIES) 415 @$(NORMAL_INSTALL) 416 @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ 417 list2=; for p in $$list; do \ 418 if test -f $$p; then \ 419 list2="$$list2 $$p"; \ 420 else :; fi; \ 421 done; \ 422 test -z "$$list2" || { \ 423 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ 424 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ 425 echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \ 426 $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; } 427 @$(POST_INSTALL) 428 @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ 429 for p in $$list; do \ 430 if test -f $$p; then \ 431 $(am__strip_dir) \ 432 echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \ 433 ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \ 434 else :; fi; \ 435 done 436 437 uninstall-libLIBRARIES: 438 @$(NORMAL_UNINSTALL) 439 @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ 440 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ 441 dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir) 442 443 clean-libLIBRARIES: 444 -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES) 445 bits/$(am__dirstamp): 446 @$(MKDIR_P) bits 447 @: > bits/$(am__dirstamp) 448 bits/$(DEPDIR)/$(am__dirstamp): 449 @$(MKDIR_P) bits/$(DEPDIR) 450 @: > bits/$(DEPDIR)/$(am__dirstamp) 451 bits/debug.$(OBJEXT): bits/$(am__dirstamp) \ 452 bits/$(DEPDIR)/$(am__dirstamp) 453 containers/$(am__dirstamp): 454 @$(MKDIR_P) containers 455 @: > containers/$(am__dirstamp) 456 containers/$(DEPDIR)/$(am__dirstamp): 457 @$(MKDIR_P) containers/$(DEPDIR) 458 @: > containers/$(DEPDIR)/$(am__dirstamp) 459 containers/maybe.$(OBJEXT): containers/$(am__dirstamp) \ 460 containers/$(DEPDIR)/$(am__dirstamp) 461 containers/pair.$(OBJEXT): containers/$(am__dirstamp) \ 462 containers/$(DEPDIR)/$(am__dirstamp) 463 containers/result.$(OBJEXT): containers/$(am__dirstamp) \ 464 containers/$(DEPDIR)/$(am__dirstamp) 465 containers/vector.$(OBJEXT): containers/$(am__dirstamp) \ 466 containers/$(DEPDIR)/$(am__dirstamp) 467 concurrency/$(am__dirstamp): 468 @$(MKDIR_P) concurrency 469 @: > concurrency/$(am__dirstamp) 470 concurrency/$(DEPDIR)/$(am__dirstamp): 471 @$(MKDIR_P) concurrency/$(DEPDIR) 472 @: > concurrency/$(DEPDIR)/$(am__dirstamp) 473 concurrency/coroutine.$(OBJEXT): concurrency/$(am__dirstamp) \ 474 concurrency/$(DEPDIR)/$(am__dirstamp) 475 concurrency/thread.$(OBJEXT): concurrency/$(am__dirstamp) \ 476 concurrency/$(DEPDIR)/$(am__dirstamp) 477 concurrency/kernel.$(OBJEXT): concurrency/$(am__dirstamp) \ 478 concurrency/$(DEPDIR)/$(am__dirstamp) 479 concurrency/monitor.$(OBJEXT): concurrency/$(am__dirstamp) \ 480 concurrency/$(DEPDIR)/$(am__dirstamp) 481 concurrency/mutex.$(OBJEXT): concurrency/$(am__dirstamp) \ 482 concurrency/$(DEPDIR)/$(am__dirstamp) 483 concurrency/CtxSwitch-@ARCHITECTURE@.$(OBJEXT): \ 484 concurrency/$(am__dirstamp) \ 485 concurrency/$(DEPDIR)/$(am__dirstamp) 486 concurrency/alarm.$(OBJEXT): concurrency/$(am__dirstamp) \ 487 concurrency/$(DEPDIR)/$(am__dirstamp) 488 concurrency/invoke.$(OBJEXT): concurrency/$(am__dirstamp) \ 489 concurrency/$(DEPDIR)/$(am__dirstamp) 490 concurrency/preemption.$(OBJEXT): concurrency/$(am__dirstamp) \ 491 concurrency/$(DEPDIR)/$(am__dirstamp) 492 493 libcfa.a: $(libcfa_a_OBJECTS) $(libcfa_a_DEPENDENCIES) $(EXTRA_libcfa_a_DEPENDENCIES) 494 $(AM_V_at)-rm -f libcfa.a 495 $(AM_V_AR)$(libcfa_a_AR) libcfa.a $(libcfa_a_OBJECTS) $(libcfa_a_LIBADD) 496 $(AM_V_at)$(RANLIB) libcfa.a 380 497 381 498 mostlyclean-compile: 382 499 -rm -f *.$(OBJEXT) 383 -rm -f avltree/*.$(OBJEXT) 500 -rm -f bits/*.$(OBJEXT) 501 -rm -f concurrency/*.$(OBJEXT) 502 -rm -f containers/*.$(OBJEXT) 384 503 385 504 distclean-compile: 386 505 -rm -f *.tab.c 387 506 388 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Bench.Po@am__quote@ 389 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/array.Po@am__quote@ 390 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstream_test.Po@am__quote@ 391 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector_int.Po@am__quote@ 392 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector_test.Po@am__quote@ 393 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl-private.Po@am__quote@ 394 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl0.Po@am__quote@ 395 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl1.Po@am__quote@ 396 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl2.Po@am__quote@ 397 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl3.Po@am__quote@ 398 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl4.Po@am__quote@ 399 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl_test.Po@am__quote@ 507 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception.Po@am__quote@ 508 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prelude.Po@am__quote@ 509 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virtual.Po@am__quote@ 510 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/CtxSwitch-@ARCHITECTURE@.Po@am__quote@ 511 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/invoke.Po@am__quote@ 512 513 .S.o: 514 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 515 @am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 516 @am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 517 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 518 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 519 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ $< 520 521 .S.obj: 522 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ 523 @am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ 524 @am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 525 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 526 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 527 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 400 528 401 529 .c.o: … … 414 542 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 415 543 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 544 install-nobase_cfa_includeHEADERS: $(nobase_cfa_include_HEADERS) 545 @$(NORMAL_INSTALL) 546 @list='$(nobase_cfa_include_HEADERS)'; test -n "$(cfa_includedir)" || list=; \ 547 if test -n "$$list"; then \ 548 echo " $(MKDIR_P) '$(DESTDIR)$(cfa_includedir)'"; \ 549 $(MKDIR_P) "$(DESTDIR)$(cfa_includedir)" || exit 1; \ 550 fi; \ 551 $(am__nobase_list) | while read dir files; do \ 552 xfiles=; for file in $$files; do \ 553 if test -f "$$file"; then xfiles="$$xfiles $$file"; \ 554 else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ 555 test -z "$$xfiles" || { \ 556 test "x$$dir" = x. || { \ 557 echo " $(MKDIR_P) '$(DESTDIR)$(cfa_includedir)/$$dir'"; \ 558 $(MKDIR_P) "$(DESTDIR)$(cfa_includedir)/$$dir"; }; \ 559 echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(cfa_includedir)/$$dir'"; \ 560 $(INSTALL_HEADER) $$xfiles "$(DESTDIR)$(cfa_includedir)/$$dir" || exit $$?; }; \ 561 done 562 563 uninstall-nobase_cfa_includeHEADERS: 564 @$(NORMAL_UNINSTALL) 565 @list='$(nobase_cfa_include_HEADERS)'; test -n "$(cfa_includedir)" || list=; \ 566 $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ 567 dir='$(DESTDIR)$(cfa_includedir)'; $(am__uninstall_files_from_dir) 416 568 417 569 ID: $(am__tagged_files) … … 499 651 check-am: all-am 500 652 check: check-am 501 all-am: Makefile $( PROGRAMS)653 all-am: Makefile $(LIBRARIES) $(HEADERS) 502 654 installdirs: 655 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(cfa_includedir)"; do \ 656 test -z "$$dir" || $(MKDIR_P) "$$dir"; \ 657 done 503 658 install: install-am 504 659 install-exec: install-exec-am … … 521 676 fi 522 677 mostlyclean-generic: 678 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) 523 679 524 680 clean-generic: … … 527 683 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 528 684 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) 529 -rm -f avltree/$(DEPDIR)/$(am__dirstamp) 530 -rm -f avltree/$(am__dirstamp) 685 -rm -f bits/$(DEPDIR)/$(am__dirstamp) 686 -rm -f bits/$(am__dirstamp) 687 -rm -f concurrency/$(DEPDIR)/$(am__dirstamp) 688 -rm -f concurrency/$(am__dirstamp) 689 -rm -f containers/$(DEPDIR)/$(am__dirstamp) 690 -rm -f containers/$(am__dirstamp) 531 691 532 692 maintainer-clean-generic: … … 535 695 clean: clean-am 536 696 537 clean-am: clean-generic clean- noinstPROGRAMS mostlyclean-am697 clean-am: clean-generic clean-libLIBRARIES mostlyclean-am 538 698 539 699 distclean: distclean-am 540 -rm -rf ./$(DEPDIR) avltree/$(DEPDIR)700 -rm -rf ./$(DEPDIR) concurrency/$(DEPDIR) 541 701 -rm -f Makefile 542 702 distclean-am: clean-am distclean-compile distclean-generic \ … … 555 715 info-am: 556 716 557 install-data-am: 717 install-data-am: install-nobase_cfa_includeHEADERS 558 718 559 719 install-dvi: install-dvi-am … … 561 721 install-dvi-am: 562 722 563 install-exec-am: 723 install-exec-am: install-libLIBRARIES 564 724 565 725 install-html: install-html-am … … 584 744 585 745 maintainer-clean: maintainer-clean-am 586 -rm -rf ./$(DEPDIR) avltree/$(DEPDIR)746 -rm -rf ./$(DEPDIR) concurrency/$(DEPDIR) 587 747 -rm -f Makefile 588 maintainer-clean-am: distclean-am maintainer-clean-generic 748 maintainer-clean-am: distclean-am maintainer-clean-generic \ 749 maintainer-clean-local 589 750 590 751 mostlyclean: mostlyclean-am … … 600 761 ps-am: 601 762 602 uninstall-am: 763 uninstall-am: uninstall-libLIBRARIES \ 764 uninstall-nobase_cfa_includeHEADERS 603 765 604 766 .MAKE: install-am install-strip 605 767 606 768 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ 607 clean- noinstPROGRAMS cscopelist-am ctags ctags-am distclean \769 clean-libLIBRARIES cscopelist-am ctags ctags-am distclean \ 608 770 distclean-compile distclean-generic distclean-tags distdir dvi \ 609 771 dvi-am html html-am info info-am install install-am \ 610 772 install-data install-data-am install-dvi install-dvi-am \ 611 773 install-exec install-exec-am install-html install-html-am \ 612 install-info install-info-am install-man install-pdf \ 613 install-pdf-am install-ps install-ps-am install-strip \ 614 installcheck installcheck-am installdirs maintainer-clean \ 615 maintainer-clean-generic mostlyclean mostlyclean-compile \ 616 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ 617 uninstall-am 774 install-info install-info-am install-libLIBRARIES install-man \ 775 install-nobase_cfa_includeHEADERS install-pdf install-pdf-am \ 776 install-ps install-ps-am install-strip installcheck \ 777 installcheck-am installdirs maintainer-clean \ 778 maintainer-clean-generic maintainer-clean-local mostlyclean \ 779 mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ 780 tags tags-am uninstall uninstall-am uninstall-libLIBRARIES \ 781 uninstall-nobase_cfa_includeHEADERS 618 782 619 783 .PRECIOUS: Makefile 620 784 621 785 622 Bench$(EXEEXT) : Bench.c 623 @for ccflags in "-debug" "-nodebug"; do \ 624 echo ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt Bench.c;\ 625 ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt Bench.c;\ 626 ./a.out ; \ 627 done ; \ 628 rm -f ./a.out ; 786 .cfa.o: $(CFACC) $(CFACPP) 787 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 788 $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 789 $(am__mv) $$depbase.Tpo $$depbase.Po 790 791 #---------------------------------------------------------------------------------------------------------------- 792 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 793 ${libobjs} : ${cfalib_DATA} 794 795 #---------------------------------------------------------------------------------------------------------------- 796 maintainer-clean-local: 797 -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR} 629 798 630 799 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
libcfa/src/assert.cfa
rc3a8ecd r7cd8827 17 17 #include <stdarg.h> // varargs 18 18 #include <stdio.h> // fprintf 19 #include "bits/debug.h "19 #include "bits/debug.hfa" 20 20 21 21 extern "C" { -
libcfa/src/bits/algorithm.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/algorithms.h -- Builtins for exception handling.7 // bits/algorithms.hfa -- Builtins for exception handling. 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/align.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // align.h --7 // align.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/containers.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/containers.h -- Intrusive generic containers.h7 // bits/containers.hfa -- Intrusive generic containers.hfa 8 8 // 9 9 // Author : Thierry Delisle … … 15 15 #pragma once 16 16 17 #include "bits/align.h "18 #include "bits/defs.h "17 #include "bits/align.hfa" 18 #include "bits/defs.hfa" 19 19 20 20 //----------------------------------------------------------------------------- -
libcfa/src/bits/debug.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // debug.h --7 // debug.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/defs.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // defs.h --7 // defs.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/locks.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/locks.h -- Fast internal locks.7 // bits/locks.hfa -- Fast internal locks. 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "bits/debug.h "19 #include "bits/defs.h "18 #include "bits/debug.hfa" 19 #include "bits/defs.hfa" 20 20 #include <assert.h> 21 21 -
libcfa/src/bits/signal.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/signal.h -- Helper functions and defines to use signals7 // bits/signal.hfa -- Helper functions and defines to use signals 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "bits/debug.h "19 #include "bits/defs.h "18 #include "bits/debug.hfa" 19 #include "bits/defs.hfa" 20 20 21 21 extern "C" { -
libcfa/src/clock.hfa
rc3a8ecd r7cd8827 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2018 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 // clock -- 8 // 6 // 7 // clock -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Thu Apr 12 14:36:06 2018 … … 12 12 // Last Modified On : Mon Jul 2 21:40:01 2018 13 13 // Update Count : 7 14 // 14 // 15 15 16 #include <time >16 #include <time.hfa> 17 17 18 18 -
libcfa/src/common.cfa
rc3a8ecd r7cd8827 1 // -*- Mode: C -*- 2 // 1 // -*- Mode: C -*- 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 // common.c -- 9 // 7 // 8 // common.c -- 9 // 10 10 // Author : Peter A. Buhr 11 11 // Created On : Thu Jul 12 08:02:29 2018 … … 13 13 // Last Modified On : Thu Jul 12 08:38:47 2018 14 14 // Update Count : 3 15 // 15 // 16 16 17 #include "common "17 #include "common.hfa" 18 18 #include <stdlib.h> // div_t, *div 19 19 -
libcfa/src/concurrency/alarm.cfa
rc3a8ecd r7cd8827 22 22 } 23 23 24 #include "alarm.h "25 #include "kernel_private.h "26 #include "preemption.h "24 #include "alarm.hfa" 25 #include "kernel_private.hfa" 26 #include "preemption.hfa" 27 27 28 28 //============================================================================================= -
libcfa/src/concurrency/alarm.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // alarm.h --7 // alarm.hfa -- 8 8 // 9 9 // Author : Thierry Delisle … … 21 21 #include <assert.h> 22 22 23 #include "time "23 #include "time.hfa" 24 24 25 25 struct thread_desc; -
libcfa/src/concurrency/coroutine.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "coroutine "16 #include "coroutine.hfa" 17 17 18 18 extern "C" { … … 25 25 } 26 26 27 #include "kernel_private.h "27 #include "kernel_private.hfa" 28 28 29 29 #define __CFA_INVOKE_PRIVATE__ -
libcfa/src/concurrency/invoke.h
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "bits/containers.h "17 #include "bits/defs.h "18 #include "bits/locks.h "16 #include "bits/containers.hfa" 17 #include "bits/defs.hfa" 18 #include "bits/locks.hfa" 19 19 20 20 #ifdef __cforall -
libcfa/src/concurrency/kernel.cfa
rc3a8ecd r7cd8827 27 27 28 28 //CFA Includes 29 #include "time "30 #include "kernel_private.h "31 #include "preemption.h "32 #include "startup.h "29 #include "time.hfa" 30 #include "kernel_private.hfa" 31 #include "preemption.hfa" 32 #include "startup.hfa" 33 33 34 34 //Private includes -
libcfa/src/concurrency/kernel.hfa
rc3a8ecd r7cd8827 19 19 20 20 #include "invoke.h" 21 #include "time_t.h "21 #include "time_t.hfa" 22 22 23 23 extern "C" { -
libcfa/src/concurrency/kernel_private.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // kernel_private.h --7 // kernel_private.hfa -- 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "kernel "19 #include "thread "18 #include "kernel.hfa" 19 #include "thread.hfa" 20 20 21 #include "alarm.h "21 #include "alarm.hfa" 22 22 23 23 -
libcfa/src/concurrency/monitor.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "monitor "17 18 #include <stdlib >16 #include "monitor.hfa" 17 18 #include <stdlib.hfa> 19 19 #include <inttypes.h> 20 20 21 #include "kernel_private.h "22 23 #include "bits/algorithm s.h"21 #include "kernel_private.hfa" 22 23 #include "bits/algorithm.hfa" 24 24 25 25 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/monitor.hfa
rc3a8ecd r7cd8827 20 20 #include <assert.h> 21 21 #include "invoke.h" 22 #include "stdlib "22 #include "stdlib.hfa" 23 23 24 24 trait is_monitor(dtype T) { -
libcfa/src/concurrency/mutex.cfa
rc3a8ecd r7cd8827 16 16 // 17 17 18 #include "mutex "18 #include "mutex.hfa" 19 19 20 #include "kernel_private.h "20 #include "kernel_private.hfa" 21 21 22 22 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/mutex.hfa
rc3a8ecd r7cd8827 20 20 #include <stdbool.h> 21 21 22 #include "bits/algorithm s.h"23 #include "bits/locks.h "22 #include "bits/algorithm.hfa" 23 #include "bits/locks.hfa" 24 24 25 25 #include "invoke.h" 26 #include "time_t.h "26 #include "time_t.hfa" 27 27 28 28 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/preemption.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "preemption.h "16 #include "preemption.hfa" 17 17 #include <assert.h> 18 18 … … 24 24 } 25 25 26 #include "bits/signal.h "26 #include "bits/signal.hfa" 27 27 28 28 #if !defined(__CFA_DEFAULT_PREEMPTION__) -
libcfa/src/concurrency/preemption.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // preemption.h --7 // preemption.hfa -- 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "alarm.h "19 #include "kernel_private.h "18 #include "alarm.hfa" 19 #include "kernel_private.hfa" 20 20 21 21 void kernel_start_preemption(); -
libcfa/src/concurrency/thread.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "thread "16 #include "thread.hfa" 17 17 18 #include "kernel_private.h "18 #include "kernel_private.hfa" 19 19 20 20 #define __CFA_INVOKE_PRIVATE__ -
libcfa/src/concurrency/thread.hfa
rc3a8ecd r7cd8827 19 19 #include "invoke.h" 20 20 21 #include "coroutine "22 #include "kernel "23 #include "monitor "21 #include "coroutine.hfa" 22 #include "kernel.hfa" 23 #include "monitor.hfa" 24 24 25 25 //----------------------------------------------------------------------------- -
libcfa/src/containers/maybe.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include <containers/maybe >16 #include <containers/maybe.hfa> 17 17 #include <assert.h> 18 18 -
libcfa/src/containers/pair.cfa
rc3a8ecd r7cd8827 11 11 // 12 12 13 #include <containers/pair >13 #include <containers/pair.hfa> 14 14 15 forall(otype R, otype S 15 forall(otype R, otype S 16 16 | { int ?==?(R, R); int ?<?(R, R); int ?<?(S, S); }) 17 17 int ?<?(pair(R, S) p, pair(R, S) q) { … … 19 19 } 20 20 21 forall(otype R, otype S 21 forall(otype R, otype S 22 22 | { int ?==?(R, R); int ?<?(R, R); int ?<=?(S, S); }) 23 23 int ?<=?(pair(R, S) p, pair(R, S) q) { … … 35 35 } 36 36 37 forall(otype R, otype S 37 forall(otype R, otype S 38 38 | { int ?==?(R, R); int ?>?(R, R); int ?>?(S, S); }) 39 39 int ?>?(pair(R, S) p, pair(R, S) q) { … … 41 41 } 42 42 43 forall(otype R, otype S 43 forall(otype R, otype S 44 44 | { int ?==?(R, R); int ?>?(R, R); int ?>=?(S, S); }) 45 45 int ?>=?(pair(R, S) p, pair(R, S) q) { -
libcfa/src/containers/result.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include <containers/result >16 #include <containers/result.hfa> 17 17 #include <assert.h> 18 18 -
libcfa/src/containers/vector.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include <containers/vector >16 #include <containers/vector.hfa> 17 17 18 #include <stdlib >18 #include <stdlib.hfa> 19 19 20 20 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) -
libcfa/src/exception.c
rc3a8ecd r7cd8827 23 23 #include <stdio.h> 24 24 #include <unwind.h> 25 #include <bits/debug.h >25 #include <bits/debug.hfa> 26 26 27 27 // FIX ME: temporary hack to keep ARM build working -
libcfa/src/fstream.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "fstream "16 #include "fstream.hfa" 17 17 18 18 #include <stdio.h> // vfprintf, vfscanf -
libcfa/src/fstream.hfa
rc3a8ecd r7cd8827 16 16 #pragma once 17 17 18 #include "iostream "18 #include "iostream.hfa" 19 19 20 20 enum { sepSize = 16 }; -
libcfa/src/gmp.hfa
rc3a8ecd r7cd8827 19 19 20 20 #include <gmp.h> // GNU multi-precise integers 21 #include <fstream > // sout21 #include <fstream.hfa> // sout 22 22 23 23 struct Int { mpz_t mpz; }; // wrap GMP implementation -
libcfa/src/heap.cfa
rc3a8ecd r7cd8827 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 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 // heap.c -- 8 // 6 // 7 // heap.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Dec 19 21:58:35 2017 … … 12 12 // Last Modified On : Sat Aug 11 08:22:16 2018 13 13 // Update Count : 495 14 // 14 // 15 15 16 16 #include <unistd.h> // sbrk, sysconf … … 22 22 } // extern "C" 23 23 24 #include "bits/align.h " // libPow225 #include "bits/defs.h " // likely, unlikely26 #include "bits/locks.h " // __spinlock_t27 #include "startup.h " // STARTUP_PRIORITY_MEMORY28 #include "stdlib " // bsearchl24 #include "bits/align.hfa" // libPow2 25 #include "bits/defs.hfa" // likely, unlikely 26 #include "bits/locks.hfa" // __spinlock_t 27 #include "startup.hfa" // STARTUP_PRIORITY_MEMORY 28 #include "stdlib.hfa" // bsearchl 29 29 #include "malloc.h" 30 30 … … 282 282 static void ?{}( HeapManager & manager ) with ( manager ) { 283 283 pageSize = sysconf( _SC_PAGESIZE ); 284 284 285 285 for ( unsigned int i = 0; i < NoBucketSizes; i += 1 ) { // initialize the free lists 286 286 freeLists[i].blockSize = bucketSizes[i]; … … 758 758 bool mapped __attribute__(( unused )) = headers( "calloc", area, header, freeElem, asize, alignment ); 759 759 #ifndef __CFA_DEBUG__ 760 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 760 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 761 761 if ( ! mapped ) 762 762 #endif // __CFA_DEBUG__ … … 781 781 bool mapped __attribute__(( unused )) = headers( "cmemalign", area, header, freeElem, asize, alignment ); 782 782 #ifndef __CFA_DEBUG__ 783 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 783 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 784 784 if ( ! mapped ) 785 785 #endif // __CFA_DEBUG__ … … 826 826 bool mapped __attribute__(( unused )) = headers( "realloc", area, header, freeElem, asize, alignment ); 827 827 #ifndef __CFA_DEBUG__ 828 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 828 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 829 829 if ( ! mapped ) 830 830 #endif // __CFA_DEBUG__ -
libcfa/src/interpose.cfa
rc3a8ecd r7cd8827 25 25 } 26 26 27 #include "bits/debug.h "28 #include "bits/defs.h "29 #include "bits/signal.h " // sigHandler_?30 #include "startup.h " // STARTUP_PRIORITY_CORE27 #include "bits/debug.hfa" 28 #include "bits/defs.hfa" 29 #include "bits/signal.hfa" // sigHandler_? 30 #include "startup.hfa" // STARTUP_PRIORITY_CORE 31 31 32 32 //============================================================================================= -
libcfa/src/iostream.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "iostream "16 #include "iostream.hfa" 17 17 18 18 extern "C" { -
libcfa/src/iostream.hfa
rc3a8ecd r7cd8827 16 16 #pragma once 17 17 18 #include "iterator "18 #include "iterator.hfa" 19 19 20 20 trait ostream( dtype ostype ) { … … 164 164 165 165 166 #include <time_t.h > // Duration (constructors) / Time (constructors)166 #include <time_t.hfa> // Duration (constructors) / Time (constructors) 167 167 168 168 forall( dtype ostype | ostream( ostype ) ) ostype & ?|?( ostype & os, Duration dur ); -
libcfa/src/iterator.cfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // iterator.c -- 7 // iterator.c -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "iterator "16 #include "iterator.hfa" 17 17 18 18 forall( otype iterator_type, otype elt_type | iterator( iterator_type, elt_type ) ) -
libcfa/src/limits.cfa
rc3a8ecd r7cd8827 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 // limits.c -- 8 // 6 // 7 // limits.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Apr 6 18:06:52 2016 … … 12 12 // Last Modified On : Thu Mar 1 16:22:51 2018 13 13 // Update Count : 74 14 // 14 // 15 15 16 16 #include <limits.h> … … 19 19 #include <math.h> 20 20 #include <complex.h> 21 #include "limits "21 #include "limits.hfa" 22 22 23 23 // Integral Constants -
libcfa/src/math.hfa
rc3a8ecd r7cd8827 350 350 //--------------------------------------- 351 351 352 #include "common "352 #include "common.hfa" 353 353 354 354 //--------------------------------------- -
libcfa/src/rational.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "rational "17 #include "fstream "18 #include "stdlib "16 #include "rational.hfa" 17 #include "fstream.hfa" 18 #include "stdlib.hfa" 19 19 20 20 forall( otype RationalImpl | arithmetic( RationalImpl ) ) { -
libcfa/src/rational.hfa
rc3a8ecd r7cd8827 18 18 #pragma once 19 19 20 #include "iostream "20 #include "iostream.hfa" 21 21 22 22 trait scalar( otype T ) { -
libcfa/src/startup.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "startup.h "16 #include "startup.hfa" 17 17 #include <unistd.h> 18 18 -
libcfa/src/startup.hfa
rc3a8ecd r7cd8827 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // startup.h --7 // startup.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/stdlib.cfa
rc3a8ecd r7cd8827 14 14 // 15 15 16 #include "stdlib "16 #include "stdlib.hfa" 17 17 18 18 //--------------------------------------- -
libcfa/src/stdlib.hfa
rc3a8ecd r7cd8827 251 251 //--------------------------------------- 252 252 253 #include "common "253 #include "common.hfa" 254 254 255 255 // Local Variables: // -
libcfa/src/time.cfa
rc3a8ecd r7cd8827 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2018 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 // time.c -- 8 // 6 // 7 // time.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Mar 27 13:33:14 2018 … … 12 12 // Last Modified On : Sun May 6 22:26:00 2018 13 13 // Update Count : 37 14 // 14 // 15 15 16 #include "time "17 #include "iostream "16 #include "time.hfa" 17 #include "iostream.hfa" 18 18 #include <stdio.h> // snprintf 19 19 #include <assert.h> -
libcfa/src/time.hfa
rc3a8ecd r7cd8827 23 23 #include <sys/time.h> // timeval 24 24 } 25 #include <time_t.h > // Duration/Time types25 #include <time_t.hfa> // Duration/Time types 26 26 27 27 enum { TIMEGRAN = 1_000_000_000LL }; // nanosecond granularity, except for timeval -
libcfa/src/time_t.hfa
rc3a8ecd r7cd8827 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2018 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 // time_t.h --8 // 6 // 7 // time_t.hfa -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Apr 10 14:42:03 2018 … … 12 12 // Last Modified On : Fri Apr 13 07:51:47 2018 13 13 // Update Count : 6 14 // 14 // 15 15 16 16 #pragma once
Note:
See TracChangeset
for help on using the changeset viewer.