Changeset 4c8f86b


Ignore:
Timestamp:
May 14, 2017, 6:28:36 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
561f730
Parents:
7b2c0a99
Message:

add gmp interface and test

Location:
src
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/Makefile.am

    r7b2c0a99 r4c8f86b  
    1111## Created On       : Sun May 31 08:54:01 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Sat Mar 25 18:00:10 2017
    14 ## Update Count     : 212
     13## Last Modified On : Sat May 13 22:36:06 2017
     14## Update Count     : 213
    1515###############################################################################
    1616
     
    4141CC = ${abs_top_srcdir}/src/driver/cfa
    4242
    43 headers = limits stdlib math iostream fstream iterator rational assert containers/pair containers/vector
     43headers = limits stdlib math iostream fstream iterator rational gmp assert containers/pair containers/vector
    4444
    4545# not all platforms support concurrency, add option do disable it
  • src/libcfa/Makefile.in

    r7b2c0a99 r4c8f86b  
    9999am__libcfa_d_a_SOURCES_DIST = libcfa-prelude.c interpose.c \
    100100        libhdr/libdebug.c limits.c stdlib.c math.c iostream.c \
    101         fstream.c iterator.c rational.c assert.c containers/pair.c \
    102         containers/vector.c concurrency/coroutine.c \
     101        fstream.c iterator.c rational.c gmp.c assert.c \
     102        containers/pair.c containers/vector.c concurrency/coroutine.c \
    103103        concurrency/thread.c concurrency/kernel.c \
    104104        concurrency/monitor.c concurrency/CtxSwitch-@MACHINE_TYPE@.S \
     
    113113        libcfa_d_a-iostream.$(OBJEXT) libcfa_d_a-fstream.$(OBJEXT) \
    114114        libcfa_d_a-iterator.$(OBJEXT) libcfa_d_a-rational.$(OBJEXT) \
    115         libcfa_d_a-assert.$(OBJEXT) \
     115        libcfa_d_a-gmp.$(OBJEXT) libcfa_d_a-assert.$(OBJEXT) \
    116116        containers/libcfa_d_a-pair.$(OBJEXT) \
    117117        containers/libcfa_d_a-vector.$(OBJEXT) $(am__objects_1)
     
    128128am__libcfa_a_SOURCES_DIST = libcfa-prelude.c interpose.c \
    129129        libhdr/libdebug.c limits.c stdlib.c math.c iostream.c \
    130         fstream.c iterator.c rational.c assert.c containers/pair.c \
    131         containers/vector.c concurrency/coroutine.c \
     130        fstream.c iterator.c rational.c gmp.c assert.c \
     131        containers/pair.c containers/vector.c concurrency/coroutine.c \
    132132        concurrency/thread.c concurrency/kernel.c \
    133133        concurrency/monitor.c concurrency/CtxSwitch-@MACHINE_TYPE@.S \
     
    140140        libcfa_a-math.$(OBJEXT) libcfa_a-iostream.$(OBJEXT) \
    141141        libcfa_a-fstream.$(OBJEXT) libcfa_a-iterator.$(OBJEXT) \
    142         libcfa_a-rational.$(OBJEXT) libcfa_a-assert.$(OBJEXT) \
    143         containers/libcfa_a-pair.$(OBJEXT) \
     142        libcfa_a-rational.$(OBJEXT) libcfa_a-gmp.$(OBJEXT) \
     143        libcfa_a-assert.$(OBJEXT) containers/libcfa_a-pair.$(OBJEXT) \
    144144        containers/libcfa_a-vector.$(OBJEXT) $(am__objects_5)
    145145@BUILD_CONCURRENCY_TRUE@am__objects_7 = concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \
     
    180180        $(am__libcfa_a_SOURCES_DIST)
    181181am__nobase_cfa_include_HEADERS_DIST = limits stdlib math iostream \
    182         fstream iterator rational assert containers/pair \
     182        fstream iterator rational gmp assert containers/pair \
    183183        containers/vector concurrency/coroutine concurrency/thread \
    184184        concurrency/kernel concurrency/monitor ${shell echo stdhdr/*} \
     
    313313EXTRA_FLAGS = -g -Wall -Werror -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr -imacros libcfa-prelude.c @CFA_FLAGS@
    314314AM_CCASFLAGS = @CFA_FLAGS@
    315 headers = limits stdlib math iostream fstream iterator rational assert \
    316         containers/pair containers/vector $(am__append_3)
     315headers = limits stdlib math iostream fstream iterator rational gmp \
     316        assert containers/pair containers/vector $(am__append_3)
    317317libobjs = ${headers:=.o}
    318318libsrc = libcfa-prelude.c interpose.c libhdr/libdebug.c ${headers:=.c} \
     
    478478@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-assert.Po@am__quote@
    479479@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-fstream.Po@am__quote@
     480@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-gmp.Po@am__quote@
    480481@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-interpose.Po@am__quote@
    481482@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-iostream.Po@am__quote@
     
    488489@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-assert.Po@am__quote@
    489490@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-fstream.Po@am__quote@
     491@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-gmp.Po@am__quote@
    490492@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-interpose.Po@am__quote@
    491493@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-iostream.Po@am__quote@
     
    679681@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-rational.obj `if test -f 'rational.c'; then $(CYGPATH_W) 'rational.c'; else $(CYGPATH_W) '$(srcdir)/rational.c'; fi`
    680682
     683libcfa_d_a-gmp.o: gmp.c
     684@am__fastdepCC_TRUE@    $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-gmp.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-gmp.Tpo -c -o libcfa_d_a-gmp.o `test -f 'gmp.c' || echo '$(srcdir)/'`gmp.c
     685@am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-gmp.Tpo $(DEPDIR)/libcfa_d_a-gmp.Po
     686@AMDEP_TRUE@@am__fastdepCC_FALSE@       $(AM_V_CC)source='gmp.c' object='libcfa_d_a-gmp.o' libtool=no @AMDEPBACKSLASH@
     687@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     688@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-gmp.o `test -f 'gmp.c' || echo '$(srcdir)/'`gmp.c
     689
     690libcfa_d_a-gmp.obj: gmp.c
     691@am__fastdepCC_TRUE@    $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-gmp.obj -MD -MP -MF $(DEPDIR)/libcfa_d_a-gmp.Tpo -c -o libcfa_d_a-gmp.obj `if test -f 'gmp.c'; then $(CYGPATH_W) 'gmp.c'; else $(CYGPATH_W) '$(srcdir)/gmp.c'; fi`
     692@am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-gmp.Tpo $(DEPDIR)/libcfa_d_a-gmp.Po
     693@AMDEP_TRUE@@am__fastdepCC_FALSE@       $(AM_V_CC)source='gmp.c' object='libcfa_d_a-gmp.obj' libtool=no @AMDEPBACKSLASH@
     694@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     695@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-gmp.obj `if test -f 'gmp.c'; then $(CYGPATH_W) 'gmp.c'; else $(CYGPATH_W) '$(srcdir)/gmp.c'; fi`
     696
    681697libcfa_d_a-assert.o: assert.c
    682698@am__fastdepCC_TRUE@    $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-assert.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-assert.Tpo -c -o libcfa_d_a-assert.o `test -f 'assert.c' || echo '$(srcdir)/'`assert.c
     
    916932@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    917933@am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-rational.obj `if test -f 'rational.c'; then $(CYGPATH_W) 'rational.c'; else $(CYGPATH_W) '$(srcdir)/rational.c'; fi`
     934
     935libcfa_a-gmp.o: gmp.c
     936@am__fastdepCC_TRUE@    $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-gmp.o -MD -MP -MF $(DEPDIR)/libcfa_a-gmp.Tpo -c -o libcfa_a-gmp.o `test -f 'gmp.c' || echo '$(srcdir)/'`gmp.c
     937@am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-gmp.Tpo $(DEPDIR)/libcfa_a-gmp.Po
     938@AMDEP_TRUE@@am__fastdepCC_FALSE@       $(AM_V_CC)source='gmp.c' object='libcfa_a-gmp.o' libtool=no @AMDEPBACKSLASH@
     939@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     940@am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-gmp.o `test -f 'gmp.c' || echo '$(srcdir)/'`gmp.c
     941
     942libcfa_a-gmp.obj: gmp.c
     943@am__fastdepCC_TRUE@    $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-gmp.obj -MD -MP -MF $(DEPDIR)/libcfa_a-gmp.Tpo -c -o libcfa_a-gmp.obj `if test -f 'gmp.c'; then $(CYGPATH_W) 'gmp.c'; else $(CYGPATH_W) '$(srcdir)/gmp.c'; fi`
     944@am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-gmp.Tpo $(DEPDIR)/libcfa_a-gmp.Po
     945@AMDEP_TRUE@@am__fastdepCC_FALSE@       $(AM_V_CC)source='gmp.c' object='libcfa_a-gmp.obj' libtool=no @AMDEPBACKSLASH@
     946@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     947@am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-gmp.obj `if test -f 'gmp.c'; then $(CYGPATH_W) 'gmp.c'; else $(CYGPATH_W) '$(srcdir)/gmp.c'; fi`
    918948
    919949libcfa_a-assert.o: assert.c
  • src/tests/Makefile.am

    r7b2c0a99 r4c8f86b  
    1111## Created On       : Sun May 31 09:08:15 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Thu Feb 16 15:27:50 2017
    14 ## Update Count     : 41
     13## Last Modified On : Sun May 14 14:43:48 2017
     14## Update Count     : 42
    1515###############################################################################
    1616
     
    9090        ${CC} ${CFLAGS} -CFA -XCFA -p -XCFA -L ${<} -o ${@}
    9191
     92gmp : gmp.c
     93        ${CC} ${CFLAGS} -lgmp ${<} -o ${@}
     94
    9295memberCtors-ERR1: memberCtors.c
    9396        ${CC} ${CFLAGS} -DERR1 ${<} -o ${@}
  • src/tests/Makefile.in

    r7b2c0a99 r4c8f86b  
    709709        ${CC} ${CFLAGS} -CFA -XCFA -p -XCFA -L ${<} -o ${@}
    710710
     711gmp : gmp.c
     712        ${CC} ${CFLAGS} -lgmp ${<} -o ${@}
     713
    711714memberCtors-ERR1: memberCtors.c
    712715        ${CC} ${CFLAGS} -DERR1 ${<} -o ${@}
Note: See TracChangeset for help on using the changeset viewer.