compbench-devel Mailing List for CompBenchmarks (Page 6)
Brought to you by:
xfred
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(48) |
Oct
(51) |
Nov
(66) |
Dec
(83) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(242) |
Feb
(56) |
Mar
(95) |
Apr
(120) |
May
(127) |
Jun
(32) |
Jul
(10) |
Aug
(55) |
Sep
(114) |
Oct
(3) |
Nov
|
Dec
|
From: Frederic T. <xf...@us...> - 2007-08-28 19:50:20
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29891 Modified Files: configure.in Log Message: Detects TOP_SRCDIR and put it in config.h Index: configure.in =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/configure.in,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** configure.in 27 Aug 2007 20:02:31 -0000 1.37 --- configure.in 28 Aug 2007 19:50:13 -0000 1.38 *************** *** 260,263 **** --- 260,264 ---- top_srcdir=`cd $srcdir; pwd`; + AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$top_srcdir", [Sources prefix]) AC_SUBST(CBM_PROG_PERL) |
From: Frederic T. <xf...@us...> - 2007-08-27 20:28:52
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv25935 Modified Files: System.cpp Log Message: Fix minor 64-bits/32-bits issue on std::string handling. Index: System.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System/System.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** System.cpp 27 Aug 2007 20:20:58 -0000 1.21 --- System.cpp 27 Aug 2007 20:28:49 -0000 1.22 *************** *** 368,375 **** std::string System::Split(const std::string& str, const std::string& delim, unsigned int wantedIndex) { ! unsigned int offset = 0; ! int delimIndex = 0; ! unsigned int nowIndex = 0; ! int oneTime = 0; delimIndex = str.find(delim, offset); --- 368,375 ---- std::string System::Split(const std::string& str, const std::string& delim, unsigned int wantedIndex) { ! unsigned int offset = 0; ! std::string::size_type delimIndex = 0; ! unsigned int nowIndex = 0; ! int oneTime = 0; delimIndex = str.find(delim, offset); |
From: Frederic T. <xf...@us...> - 2007-08-27 20:21:02
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv23046 Modified Files: System.cpp Log Message: Fix on possible signess issue (64-bits). Index: System.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System/System.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** System.cpp 21 Aug 2007 21:02:05 -0000 1.20 --- System.cpp 27 Aug 2007 20:20:58 -0000 1.21 *************** *** 369,375 **** { unsigned int offset = 0; ! unsigned int delimIndex = 0; unsigned int nowIndex = 0; ! int oneTime = 0; delimIndex = str.find(delim, offset); --- 369,375 ---- { unsigned int offset = 0; ! int delimIndex = 0; unsigned int nowIndex = 0; ! int oneTime = 0; delimIndex = str.find(delim, offset); |
From: Frederic T. <xf...@us...> - 2007-08-27 20:02:36
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16368 Modified Files: configure.in Log Message: Exists if swig's not found. Index: configure.in =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/configure.in,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** configure.in 24 Aug 2007 18:36:54 -0000 1.36 --- configure.in 27 Aug 2007 20:02:31 -0000 1.37 *************** *** 48,51 **** --- 48,55 ---- SWIG_PYTHON + if test "$SWIG"x = "x"; then + echo "swig is not installed" >&2 + exit 1; + fi # AC_DEFINE_DIR([CBM_DATADIR], [$datadir], [Data directory]) |
From: Frederic T. <xf...@us...> - 2007-08-27 16:56:55
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17918 Modified Files: ChangeLog Log Message: Minor changes. Index: ChangeLog =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/ChangeLog,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** ChangeLog 21 Aug 2007 19:44:49 -0000 1.24 --- ChangeLog 26 Aug 2007 19:02:17 -0000 1.25 *************** *** 20,24 **** * Time-out used on download operations. * Measure compilation and execution times with a precision of ! about millisecond. * Many changes in compbenchmarks-core command-line options. * Configuration is now XML based, and much more flexible. --- 20,24 ---- * Time-out used on download operations. * Measure compilation and execution times with a precision of ! (about) millisecond. * Many changes in compbenchmarks-core command-line options. * Configuration is now XML based, and much more flexible. |
From: Frederic T. <xf...@us...> - 2007-08-24 21:52:29
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv1812 Modified Files: UI.h Log Message: Doxygen documentation improved a little bit. Index: UI.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** UI.h 24 Aug 2007 18:37:56 -0000 1.13 --- UI.h 24 Aug 2007 21:52:21 -0000 1.14 *************** *** 15,43 **** namespace CBM { ! /** \brief Basic API for user interface. * ! * This class defines few methods to interact with compbenchmarks-config, or ! * with the console. */ class UI { private: ! UIMsg *root; ! UIMsg *current; ! UIMsg *lastTopChild; ! Mutex mui; virtual UIMsg *currentMsg(void); protected: ! /** Checks if in main thread ! */ virtual void postMsg(UIMsg *_msg); ! virtual void childDone(void); public: UI(); virtual UIMsg *msgFatal(std::string _text); virtual UIMsg *msgShell(std::string _shellCommand); virtual UIMsg *msgCreate(UIMsg::ObjectType _type, --- 15,79 ---- namespace CBM { ! /** \brief Basic API for posting messages to user interface. * ! * This class defines few methods to handle and post messages from core ! * to the user interface. ! * ! * \sa UIMsg */ class UI { private: ! UIMsg *root; /*<! Root message. */ ! UIMsg *current; /*<! Current message (last posted). */ ! UIMsg *lastTopChild; /*<! Current message's top child. */ ! Mutex mui; /*<! Mutex managing concurrent accesses. */ + /** \brief Returns current message. + * + * Returns a pointer to the current message (last posted). + * \return Current message. + * \sa current */ virtual UIMsg *currentMsg(void); protected: ! /** \brief Internal method to post a message. ! * ! * Locks mui, insert given message, either as root or as a current ! * message's child. Update current, and may update lastTopChild. ! * Finally, it calls Display to report message to user interface. ! * ! * \sa mui ! * \sa current ! * \sa lastTopChild ! * \sa Display ! */ virtual void postMsg(UIMsg *_msg); ! ! /** \brief Internal method to close a message. ! * ! * This method signals the end of the current message (meaning it won't ! * have anymore childs) : lock mui, and call DisplayDone(). ! * May change current. ! * ! * \sa mui ! * \sa DisplayDone() ! * \sa current ! */ virtual void childDone(void); public: UI(); + /** \brief Emit a fatal message + * + * \param _text Text to be shown to user. + */ virtual UIMsg *msgFatal(std::string _text); + + /** \brief Emit a shell command execution information + * + * \param _shellCommand Shell command to be executed. + */ virtual UIMsg *msgShell(std::string _shellCommand); virtual UIMsg *msgCreate(UIMsg::ObjectType _type, |
From: Frederic T. <xf...@us...> - 2007-08-24 18:52:57
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv660 Modified Files: UI.cpp Log Message: Previous messages are deleted (fix memory leak). Previous commit was incomplete. Index: UI.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** UI.cpp 24 Aug 2007 18:37:56 -0000 1.14 --- UI.cpp 24 Aug 2007 18:52:50 -0000 1.15 *************** *** 39,42 **** --- 39,49 ---- { mui.Lock(); + + if (_msg->getParent()==root) { + if (lastTopChild) { + delete(lastTopChild); + lastTopChild=0; + } + } if (!current) current=root; *************** *** 45,48 **** --- 52,59 ---- current=_msg; + + if (_msg->getParent()==root) + lastTopChild=_msg; + Display(current); mui.Unlock(); |
From: Frederic T. <xf...@us...> - 2007-08-24 18:40:40
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28728 Modified Files: config.h.in Log Message: dialog is not needed anymore. Index: config.h.in =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/config.h.in,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** config.h.in 23 May 2007 17:26:51 -0000 1.4 --- config.h.in 24 Aug 2007 18:40:37 -0000 1.5 *************** *** 16,22 **** #undef CBM_PROG_DD - /* dialog */ - #undef CBM_PROG_DIALOG - /* grep */ #undef CBM_PROG_GREP --- 16,19 ---- |
From: Frederic T. <xf...@us...> - 2007-08-24 18:38:03
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27589 Modified Files: UI.cpp UI.h Log Message: Previous messages are deleted (fix memory leak). Index: UI.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** UI.h 21 Aug 2007 19:53:48 -0000 1.12 --- UI.h 24 Aug 2007 18:37:56 -0000 1.13 *************** *** 25,28 **** --- 25,30 ---- UIMsg *root; UIMsg *current; + UIMsg *lastTopChild; + Mutex mui; Index: UI.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** UI.cpp 21 Aug 2007 19:53:48 -0000 1.13 --- UI.cpp 24 Aug 2007 18:37:56 -0000 1.14 *************** *** 28,31 **** --- 28,32 ---- root=new UIMsg(); current=0; + lastTopChild=0; } |
From: Frederic T. <xf...@us...> - 2007-08-24 18:37:04
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27206 Modified Files: configure.in Log Message: swig 1.3.29 required (not 1.3.31). Index: configure.in =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/configure.in,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** configure.in 21 Aug 2007 21:01:30 -0000 1.35 --- configure.in 24 Aug 2007 18:36:54 -0000 1.36 *************** *** 44,48 **** AC_PROG_LIBTOOL AM_PATH_PYTHON(2.4.4) ! AC_PROG_SWIG(1.3.31) SWIG_ENABLE_CXX SWIG_PYTHON --- 44,48 ---- AC_PROG_LIBTOOL AM_PATH_PYTHON(2.4.4) ! AC_PROG_SWIG(1.3.29) SWIG_ENABLE_CXX SWIG_PYTHON |
From: Frederic T. <xf...@us...> - 2007-08-22 18:31:56
|
Update of /cvsroot/compbench/CompBenchmarks++/CBM-PI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30878 Modified Files: Makefile.am Log Message: $(SWIG) used. Perl module removed from distribution (generated by swig). Index: Makefile.am =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/CBM-PI/Makefile.am,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Makefile.am 24 May 2007 16:01:14 -0000 1.20 --- Makefile.am 22 Aug 2007 18:31:51 -0000 1.21 *************** *** 37,41 **** # data_DATA = $(top_srcdir)/CBM-PI/CBM.pm ! EXTRA_DIST = CBM.pm CBM.i inst_pkgdata_DATA = CBM.so $(top_srcdir)/CBM-PI/CBM.pm --- 37,41 ---- # data_DATA = $(top_srcdir)/CBM-PI/CBM.pm ! EXTRA_DIST = CBM.i inst_pkgdata_DATA = CBM.so $(top_srcdir)/CBM-PI/CBM.pm *************** *** 44,51 **** $(top_builddir)/CBM-PI/CBM_wrap.cxx: CBM.i $(CBMPI_DEP_H) ! swig -c++ $(INCLUDES) -Wall -proxy -shadow -perl $< $(top_builddir)/CBM-PI/CBM.pm: CBM.i $(CBMPI_DEP_H) ! swig -c++ $(INCLUDES) -Wall -proxy -shadow -perl $< AM_CXXFLAGS = `$(PERL) -MExtUtils::Embed -e ccopts` --- 44,51 ---- $(top_builddir)/CBM-PI/CBM_wrap.cxx: CBM.i $(CBMPI_DEP_H) ! $(SWIG) -c++ $(INCLUDES) -Wall -proxy -shadow -perl $< $(top_builddir)/CBM-PI/CBM.pm: CBM.i $(CBMPI_DEP_H) ! $(SWIG) -c++ $(INCLUDES) -Wall -proxy -shadow -perl $< AM_CXXFLAGS = `$(PERL) -MExtUtils::Embed -e ccopts` |
From: Frederic T. <xf...@us...> - 2007-08-22 18:29:15
|
Update of /cvsroot/compbench/CompBenchmarks++/CBM-PI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29871 Removed Files: CBM.pm CBM_wrap.cxx Log Message: Useless in CVS. --- CBM.pm DELETED --- --- CBM_wrap.cxx DELETED --- |
From: Frederic T. <xf...@us...> - 2007-08-22 17:58:38
|
Update of /cvsroot/compbench/CompBenchmarks++/m4 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15706 Added Files: ac_python_devel.m4 Log Message: First import (removes dependencies upon autoconf macro archive package) --- NEW FILE: ac_python_devel.m4 --- ##### http://autoconf-archive.cryp.to/ac_python_devel.html # # SYNOPSIS # # AC_PYTHON_DEVEL([version]) # # DESCRIPTION # # Note: Defines as a precious variable "PYTHON_VERSION". Don't # override it in your configure.ac. # # This macro checks for Python and tries to get the include path to # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and # $(PYTHON_LDFLAGS) output variables. It also exports # $(PYTHON_EXTRA_LIBS) and $(PYTHON_EXTRA_LDFLAGS) for embedding # Python in your code. # # You can search for some particular version of Python by passing a # parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". # Please note that you *have* to pass also an operator along with the # version to match, and pay special attention to the single quotes # surrounding the version number. Don't use "PYTHON_VERSION" for # this: that environment variable is declared as precious and thus # reserved for the end-user. # # This macro should work for all versions of Python >= 2.1.0. As an # end user, you can disable the check for the python version by # setting the PYTHON_NOVERSIONCHECK environment variable to something # else than the empty string. # # If you need to use this macro for an older Python version, please # contact the authors. We're always open for feedback. # # LAST MODIFICATION # # 2006-10-22 # # COPYLEFT # # Copyright (c) 2006 Sebastian Huber <seb...@we...> # Copyright (c) 2006 Alan W. Irwin <ir...@be...> # Copyright (c) 2006 Rafael Laboissiere <ra...@la...> # Copyright (c) 2006 Andrew Collier <col...@uk...> # Copyright (c) 2006 Matteo Settenvini <ma...@me...> # Copyright (c) 2006 Horst Knorr <hk_...@kn...> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([AC_PYTHON_DEVEL],[ # # Allow the use of a (user set) custom python version # AC_ARG_VAR([PYTHON_VERSION],[The installed Python version to use, for example '2.3'. This string will be appended to the Python interpreter canonical name.]) AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]]) if test -z "$PYTHON"; then AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path]) PYTHON_VERSION="" fi # # Check for a version of Python >= 2.1.0 # AC_MSG_CHECKING([for a version of Python >= '2.1.0']) ac_supports_python_ver=`$PYTHON -c "import sys, string; \ ver = string.split(sys.version)[[0]]; \ print ver >= '2.1.0'"` if test "$ac_supports_python_ver" != "True"; then if test -z "$PYTHON_NOVERSIONCHECK"; then AC_MSG_RESULT([no]) AC_MSG_FAILURE([ This version of the AC@&t@_PYTHON_DEVEL macro doesn't work properly with versions of Python before 2.1.0. You may need to re-run configure, setting the variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. Moreover, to disable this check, set PYTHON_NOVERSIONCHECK to something else than an empty string. ]) else AC_MSG_RESULT([skip at user request]) fi else AC_MSG_RESULT([yes]) fi # # if the macro parameter ``version'' is set, honour it # if test -n "$1"; then AC_MSG_CHECKING([for a version of Python $1]) ac_supports_python_ver=`$PYTHON -c "import sys, string; \ ver = string.split(sys.version)[[0]]; \ print ver $1"` if test "$ac_supports_python_ver" = "True"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) AC_MSG_ERROR([this package requires Python $1. If you have it installed, but it isn't the default Python interpreter in your system path, please pass the PYTHON_VERSION variable to configure. See ``configure --help'' for reference. ]) PYTHON_VERSION="" fi fi # # Check if you have distutils, else fail # AC_MSG_CHECKING([for the distutils Python package]) ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` if test -z "$ac_distutils_result"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) AC_MSG_ERROR([cannot import Python module "distutils". Please check your Python installation. The error was: $ac_distutils_result]) PYTHON_VERSION="" fi # # Check for Python include path # AC_MSG_CHECKING([for Python include path]) if test -z "$PYTHON_CPPFLAGS"; then python_path=`$PYTHON -c "import distutils.sysconfig; \ print distutils.sysconfig.get_python_inc();"` if test -n "${python_path}"; then python_path="-I$python_path" fi PYTHON_CPPFLAGS=$python_path fi AC_MSG_RESULT([$PYTHON_CPPFLAGS]) AC_SUBST([PYTHON_CPPFLAGS]) # # Check for Python library path # AC_MSG_CHECKING([for Python library path]) if test -z "$PYTHON_LDFLAGS"; then # (makes two attempts to ensure we've got a version number # from the interpreter) py_version=`$PYTHON -c "from distutils.sysconfig import *; \ from string import join; \ print join(get_config_vars('VERSION'))"` if test "$py_version" == "[None]"; then if test -n "$PYTHON_VERSION"; then py_version=$PYTHON_VERSION else py_version=`$PYTHON -c "import sys; \ print sys.version[[:3]]"` fi fi PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ from string import join; \ print '-L' + get_python_lib(0,1), \ '-lpython';"`$py_version fi AC_MSG_RESULT([$PYTHON_LDFLAGS]) AC_SUBST([PYTHON_LDFLAGS]) # # Check for site packages # AC_MSG_CHECKING([for Python site-packages path]) if test -z "$PYTHON_SITE_PKG"; then PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ print distutils.sysconfig.get_python_lib(0,0);"` fi AC_MSG_RESULT([$PYTHON_SITE_PKG]) AC_SUBST([PYTHON_SITE_PKG]) # # libraries which must be linked in when embedding # AC_MSG_CHECKING(python extra libraries) if test -z "$PYTHON_EXTRA_LIBS"; then PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ print conf('LOCALMODLIBS'), conf('LIBS')"` fi AC_MSG_RESULT([$PYTHON_EXTRA_LIBS]) AC_SUBST(PYTHON_EXTRA_LIBS) # # linking flags needed when embedding # AC_MSG_CHECKING(python extra linking flags) if test -z "$PYTHON_EXTRA_LDFLAGS"; then PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ print conf('LINKFORSHARED')"` fi AC_MSG_RESULT([$PYTHON_EXTRA_LDFLAGS]) AC_SUBST(PYTHON_EXTRA_LDFLAGS) # # final check to see if everything compiles alright # AC_MSG_CHECKING([consistency of all components of python development environment]) AC_LANG_PUSH([C]) # save current global flags LIBS="$ac_save_LIBS $PYTHON_LDFLAGS" CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" AC_TRY_LINK([ #include <Python.h> ],[ Py_Initialize(); ],[pythonexists=yes],[pythonexists=no]) AC_MSG_RESULT([$pythonexists]) if test ! "$pythonexists" = "yes"; then AC_MSG_ERROR([ Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================ ]) PYTHON_VERSION="" fi AC_LANG_POP # turn back to default flags CPPFLAGS="$ac_save_CPPFLAGS" LIBS="$ac_save_LIBS" # # all done! # ]) |
From: Frederic T. <xf...@us...> - 2007-08-22 17:57:52
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15275 Modified Files: Makefile.am Log Message: Added m4/ include. Index: Makefile.am =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/Makefile.am,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Makefile.am 28 May 2007 17:50:23 -0000 1.22 --- Makefile.am 22 Aug 2007 17:57:48 -0000 1.23 *************** *** 20,23 **** --- 20,25 ---- EXTRA_DIST = Doxyfile + ACLOCAL_AMFLAGS = -I m4 + test: @CBM_PROG_MAKE@ -C CBM-PI test \ No newline at end of file |
From: Frederic T. <xf...@us...> - 2007-08-22 17:23:12
|
Update of /cvsroot/compbench/CompBenchmarks++/m4 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv32432 Added Files: libxml2.m4 Log Message: First import. --- NEW FILE: libxml2.m4 --- # Configure paths for LIBXML2 # Mike Hommey 2004-06-19 # use CPPFLAGS instead of CFLAGS # Toshio Kuratomi 2001-04-21 # Adapted from: # Configure paths for GLIB # Owen Taylor 97-11-3 dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS dnl AC_DEFUN([AM_PATH_XML2],[ AC_ARG_WITH(xml-prefix, [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)], xml_config_prefix="$withval", xml_config_prefix="") AC_ARG_WITH(xml-exec-prefix, [ --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)], xml_config_exec_prefix="$withval", xml_config_exec_prefix="") AC_ARG_ENABLE(xmltest, [ --disable-xmltest Do not try to compile and run a test LIBXML program],, enable_xmltest=yes) if test x$xml_config_exec_prefix != x ; then xml_config_args="$xml_config_args" if test x${XML2_CONFIG+set} != xset ; then XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config fi fi if test x$xml_config_prefix != x ; then xml_config_args="$xml_config_args --prefix=$xml_config_prefix" if test x${XML2_CONFIG+set} != xset ; then XML2_CONFIG=$xml_config_prefix/bin/xml2-config fi fi AC_PATH_PROG(XML2_CONFIG, xml2-config, no) min_xml_version=ifelse([$1], ,2.0.0,[$1]) AC_MSG_CHECKING(for libxml - version >= $min_xml_version) no_xml="" if test "$XML2_CONFIG" = "no" ; then no_xml=yes else XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags` XML_LIBS=`$XML2_CONFIG $xml_config_args --libs` xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_xmltest" = "xyes" ; then ac_save_CPPFLAGS="$CPPFLAGS" ac_save_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" LIBS="$XML_LIBS $LIBS" dnl dnl Now check if the installed libxml is sufficiently new. dnl (Also sanity checks the results of xml2-config to some extent) dnl rm -f conf.xmltest AC_TRY_RUN([ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <libxml/xmlversion.h> int main() { int xml_major_version, xml_minor_version, xml_micro_version; int major, minor, micro; char *tmp_version; system("touch conf.xmltest"); /* Capture xml2-config output via autoconf/configure variables */ /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = (char *)strdup("$min_xml_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string from xml2-config\n", "$min_xml_version"); exit(1); } free(tmp_version); /* Capture the version information from the header files */ tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION); if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) { printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION"); exit(1); } free(tmp_version); /* Compare xml2-config output to the libxml headers */ if ((xml_major_version != $xml_config_major_version) || (xml_minor_version != $xml_config_minor_version) || (xml_micro_version != $xml_config_micro_version)) { printf("*** libxml header files (version %d.%d.%d) do not match\n", xml_major_version, xml_minor_version, xml_micro_version); printf("*** xml2-config (version %d.%d.%d)\n", $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version); return 1; } /* Compare the headers to the library to make sure we match */ /* Less than ideal -- doesn't provide us with return value feedback, * only exits if there's a serious mismatch between header and library. */ LIBXML_TEST_VERSION; /* Test that the library is greater than our minimum version */ if ((xml_major_version > major) || ((xml_major_version == major) && (xml_minor_version > minor)) || ((xml_major_version == major) && (xml_minor_version == minor) && (xml_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of libxml (%d.%d.%d) was found.\n", xml_major_version, xml_minor_version, xml_micro_version); printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the xml2-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n"); printf("*** correct copy of xml2-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } return 1; } ],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CPPFLAGS="$ac_save_CPPFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_xml" = x ; then AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$XML2_CONFIG" = "no" ; then echo "*** The xml2-config script installed by LIBXML could not be found" echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the XML2_CONFIG environment variable to the" echo "*** full path to xml2-config." else if test -f conf.xmltest ; then : else echo "*** Could not run libxml test program, checking why..." CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" LIBS="$LIBS $XML_LIBS" AC_TRY_LINK([ #include <libxml/xmlversion.h> #include <stdio.h> ], [ LIBXML_TEST_VERSION; return 0;], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding LIBXML or finding the wrong" echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means LIBXML was incorrectly installed" echo "*** or that you have moved LIBXML since it was installed. In the latter case, you" echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ]) CPPFLAGS="$ac_save_CPPFLAGS" LIBS="$ac_save_LIBS" fi fi XML_CPPFLAGS="" XML_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(XML_CPPFLAGS) AC_SUBST(XML_LIBS) rm -f conf.xmltest ]) |
From: Frederic T. <xf...@us...> - 2007-08-22 17:20:18
|
Update of /cvsroot/compbench/CompBenchmarks++/m4 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv31085 Added Files: ac_pkg_swig.m4 swig_enable_cxx.m4 swig_multi_module_support.m4 swig_python.m4 Log Message: First import (removes dependencies upon autoconf macro archive package) --- NEW FILE: swig_python.m4 --- ##### http://autoconf-archive.cryp.to/swig_python.html # # SYNOPSIS # # SWIG_PYTHON([use-shadow-classes = {no, yes}]) # # DESCRIPTION # # Checks for Python and provides the $(SWIG_PYTHON_CPPFLAGS), and # $(SWIG_PYTHON_OPT) output variables. # # $(SWIG_PYTHON_OPT) contains all necessary SWIG options to generate # code for Python. Shadow classes are enabled unless the value of the # optional first argument is exactly 'no'. If you need multi module # support (provided by the SWIG_MULTI_MODULE_SUPPORT macro) use # $(SWIG_PYTHON_LIBS) to link against the appropriate library. It # contains the SWIG Python runtime library that is needed by the type # check system for example. # # LAST MODIFICATION # # 2006-10-22 # # COPYLEFT # # Copyright (c) 2006 Sebastian Huber <seb...@we...> # Copyright (c) 2006 Alan W. Irwin <ir...@be...> # Copyright (c) 2006 Rafael Laboissiere <ra...@la...> # Copyright (c) 2006 Andrew Collier <col...@uk...> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([SWIG_PYTHON],[ AC_REQUIRE([AC_PROG_SWIG]) AC_REQUIRE([AC_PYTHON_DEVEL]) test "x$1" != "xno" || swig_shadow=" -noproxy" AC_SUBST([SWIG_PYTHON_OPT],[-python$swig_shadow]) AC_SUBST([SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS]) ]) --- NEW FILE: swig_multi_module_support.m4 --- ##### http://autoconf-archive.cryp.to/swig_multi_module_support.html # # SYNOPSIS # # SWIG_MULTI_MODULE_SUPPORT # # DESCRIPTION # # Enable support for multiple modules. This effects all invocations # of $(SWIG). You have to link all generated modules against the # appropriate SWIG runtime library. If you want to build Python # modules for example, use the SWIG_PYTHON macro and link the modules # against $(SWIG_PYTHON_LIBS). # # LAST MODIFICATION # # 2006-10-22 # # COPYLEFT # # Copyright (c) 2006 Sebastian Huber <seb...@we...> # Copyright (c) 2006 Alan W. Irwin <ir...@be...> # Copyright (c) 2006 Rafael Laboissiere <ra...@la...> # Copyright (c) 2006 Andrew Collier <col...@uk...> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([SWIG_MULTI_MODULE_SUPPORT],[ AC_REQUIRE([AC_PROG_SWIG]) SWIG="$SWIG -noruntime" ]) --- NEW FILE: swig_enable_cxx.m4 --- ##### http://autoconf-archive.cryp.to/swig_enable_cxx.html # # SYNOPSIS # # SWIG_ENABLE_CXX # # DESCRIPTION # # Enable SWIG C++ support. This affects all invocations of $(SWIG). # # LAST MODIFICATION # # 2006-10-22 # # COPYLEFT # # Copyright (c) 2006 Sebastian Huber <seb...@we...> # Copyright (c) 2006 Alan W. Irwin <ir...@be...> # Copyright (c) 2006 Rafael Laboissiere <ra...@la...> # Copyright (c) 2006 Andrew Collier <col...@uk...> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([SWIG_ENABLE_CXX],[ AC_REQUIRE([AC_PROG_SWIG]) AC_REQUIRE([AC_PROG_CXX]) SWIG="$SWIG -c++" ]) --- NEW FILE: ac_pkg_swig.m4 --- ##### http://autoconf-archive.cryp.to/ac_pkg_swig.html # # SYNOPSIS # # AC_PROG_SWIG([major.minor.micro]) # # DESCRIPTION # # This macro searches for a SWIG installation on your system. If # found you should call SWIG via $(SWIG). You can use the optional # first argument to check if the version of the available SWIG is # greater than or equal to the value of the argument. It should have # the format: N[.N[.N]] (N is a number between 0 and 999. Only the # first N is mandatory.) # # If the version argument is given (e.g. 1.3.17), AC_PROG_SWIG checks # that the swig package is this version number or higher. # # In configure.in, use as: # # AC_PROG_SWIG(1.3.17) # SWIG_ENABLE_CXX # SWIG_MULTI_MODULE_SUPPORT # SWIG_PYTHON # # LAST MODIFICATION # # 2006-10-22 # # COPYLEFT # # Copyright (c) 2006 Sebastian Huber <seb...@we...> # Copyright (c) 2006 Alan W. Irwin <ir...@be...> # Copyright (c) 2006 Rafael Laboissiere <ra...@la...> # Copyright (c) 2006 Andrew Collier <col...@uk...> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([AC_PROG_SWIG],[ AC_PATH_PROG([SWIG],[swig]) if test -z "$SWIG" ; then AC_MSG_WARN([cannot find 'swig' program. You should look at http://www.swig.org]) SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' elif test -n "$1" ; then AC_MSG_CHECKING([for SWIG version]) [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`] AC_MSG_RESULT([$swig_version]) if test -n "$swig_version" ; then # Calculate the required version number components [required=$1] [required_major=`echo $required | sed 's/[^0-9].*//'`] if test -z "$required_major" ; then [required_major=0] fi [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] [required_minor=`echo $required | sed 's/[^0-9].*//'`] if test -z "$required_minor" ; then [required_minor=0] fi [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] [required_patch=`echo $required | sed 's/[^0-9].*//'`] if test -z "$required_patch" ; then [required_patch=0] fi # Calculate the available version number components [available=$swig_version] [available_major=`echo $available | sed 's/[^0-9].*//'`] if test -z "$available_major" ; then [available_major=0] fi [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] [available_minor=`echo $available | sed 's/[^0-9].*//'`] if test -z "$available_minor" ; then [available_minor=0] fi [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] [available_patch=`echo $available | sed 's/[^0-9].*//'`] if test -z "$available_patch" ; then [available_patch=0] fi if test $available_major -ne $required_major \ -o $available_minor -ne $required_minor \ -o $available_patch -lt $required_patch ; then AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version. You should look at http://www.swig.org]) SWIG='echo "Error: SWIG version >= $1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' else AC_MSG_NOTICE([SWIG executable is '$SWIG']) SWIG_LIB=`$SWIG -swiglib` AC_MSG_NOTICE([SWIG library directory is '$SWIG_LIB']) fi else AC_MSG_WARN([cannot determine SWIG version]) SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' fi fi AC_SUBST([SWIG_LIB]) ]) |
From: Frederic T. <xf...@us...> - 2007-08-22 17:19:23
|
Update of /cvsroot/compbench/CompBenchmarks++/m4 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30603/m4 Log Message: Directory /cvsroot/compbench/CompBenchmarks++/m4 added to the repository |
From: Frederic T. <xf...@us...> - 2007-08-22 17:04:13
|
Update of /cvsroot/compbench/CompBenchmarks++/compbenchmarks-core In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv23320 Modified Files: cloptions.cpp Log Message: Removed handling of dialog program. Index: cloptions.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/compbenchmarks-core/cloptions.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** cloptions.cpp 13 Jun 2007 18:39:58 -0000 1.6 --- cloptions.cpp 22 Aug 2007 17:04:05 -0000 1.7 *************** *** 584,588 **** << "CUT:" << CBM_PROG_CUT << std::endl << "DD:" << CBM_PROG_DD << std::endl - << "DIALOG:" << CBM_PROG_DIALOG << std::endl << "GREP:" << CBM_PROG_GREP << std::endl << "GZIP:" << CBM_PROG_GZIP << std::endl --- 584,587 ---- |
From: Frederic T. <xf...@us...> - 2007-08-21 21:10:19
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/share/KB/gxx/3.0.x In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30945 Added Files: profile.xml Log Message: First import. --- NEW FILE: profile.xml --- <?xml version="1.0" ?> <!-- $Id: profile.xml,v 1.1 2007/08/21 21:10:16 xfred Exp $ This is free software. For details, see the GNU Public License in the COPYING file, or Look http://www.fsf.org --> <options> <option id="profile-generate"> <value>-fprofile-arcs</value> <compilation type="first-pass"/> <short-description>Instrument arcs during compilation</short-description> <editor-description> Here's GCC 3.1.x help (3.0.x's not given) : Instrument arcs during compilation to generate coverage data or for profile-directed block ordering. During execution the program records how many times each branch is executed and how many times it is taken. When the compiled program exits it saves this data to a file called sourcename.da for each source file. For profile-directed block ordering, compile the program with -fprofile-arcs plus optimization and code generation options, generate the arc profile information by running the program on a selected workload, and then compile the program again with the same optimization and code generation options plus -fbranch-probabilities. The other use of -fprofile-arcs is for use with "gcov", when it is used with the -ftest-coverage option. GCC supports two methods of determining code coverage: the options that support "gcov", and options -a and -ax, which write information to text files. The options that support "gcov" do not need to instrument every arc in the program, so a program compiled with them runs faster than a program compiled with -a, which adds instrumentation code to every basic block in the program. The tradeoff: since "gcov" does not have execution counts for all branches, it must start with the execution counts for the instrumented branches, and then iterate over the program flow graph until the entire graph has been solved. Hence, "gcov" runs a little more slowly than a program which uses information from -a and -ax. With -fprofile-arcs, for each function of your program GCC creates a program flow graph, then finds a spanning tree for the graph. Only arcs that are not on the spanning tree have to be instrumented: the compiler adds code to count the number of times that these arcs are executed. When an arc is the only exit or only entrance to a block, the instrumentation code can be added to the block; otherwise, a new basic block must be created to hold the instrumentation code. This option makes it possible to estimate branch probabilities and to calculate basic block execution counts. In general, basic block execution counts as provided by -a do not give enough information to estimate all branch probabilities. </editor-description> <logic/> </option> <option id="profile-use"> <value>-fbranch-probabilities</value> <compilation type="second-pass" first-pass="profile-generate"/> <short-description>Optimizations based on path guessing</short-description> <editor-description> After running a program compiled with -fprofile-arcs, you can compile it a second time using -fbranch-probabilities, to improve optimizations based on guessing the path a branch might take. </editor-description> <logic/> </option> </options> |
From: Frederic T. <xf...@us...> - 2007-08-21 21:06:36
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/share/perl In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29445 Added Files: Makefile.am Log Message: First import. --- NEW FILE: Makefile.am --- # ----------------------------------------------------------------------------- # $Id: Makefile.am,v 1.1 2007/08/21 21:06:34 xfred Exp $ # $Source: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/share/perl/Makefile.am,v $ # # This is free software. # For details, see the GNU Public License in the COPYING file, or # Look http://www.fsf.org # ----------------------------------------------------------------------------- SUBDIRS = CBM |
From: Frederic T. <xf...@us...> - 2007-08-21 21:02:10
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27803 Modified Files: System.cpp Log Message: Removed handling of dialog program (obsoleted). Index: System.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System/System.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** System.cpp 21 Aug 2007 19:50:34 -0000 1.19 --- System.cpp 21 Aug 2007 21:02:05 -0000 1.20 *************** *** 432,438 **** r=CBM_PROG_DD; } - if (pid == "DIALOG") { - r=CBM_PROG_DIALOG; - } if (pid == "GREP") { --- 432,435 ---- |
From: Frederic T. <xf...@us...> - 2007-08-21 21:01:34
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27571 Modified Files: configure.in Log Message: Removed dependency on dialog program. Added checks for swig. Index: configure.in =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/configure.in,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** configure.in 28 May 2007 17:50:17 -0000 1.34 --- configure.in 21 Aug 2007 21:01:30 -0000 1.35 *************** *** 43,58 **** AC_PROG_CXX AC_PROG_LIBTOOL # AC_DEFINE_DIR([CBM_DATADIR], [$datadir], [Data directory]) # CPPFLAGS=-DDATAROOTDIR='"$(datarootdir)"' $CPPFLAGS - AC_PATH_PROG(CBM_PROG_DIALOG, dialog, [], - [$PATH:/usr/local/bin]) - if test "$CBM_PROG_DIALOG"x = "x"; then - echo "'dialog' is needed." >&2 - exit 1; - fi - AC_DEFINE_UNQUOTED(CBM_PROG_DIALOG, "$CBM_PROG_DIALOG", [dialog]) - AC_PATH_PROG(CBM_PROG_BZIP2, bzip2, [], [$PATH:/usr/local/bin]) --- 43,55 ---- AC_PROG_CXX AC_PROG_LIBTOOL + AM_PATH_PYTHON(2.4.4) + AC_PROG_SWIG(1.3.31) + SWIG_ENABLE_CXX + SWIG_PYTHON + # AC_DEFINE_DIR([CBM_DATADIR], [$datadir], [Data directory]) # CPPFLAGS=-DDATAROOTDIR='"$(datarootdir)"' $CPPFLAGS AC_PATH_PROG(CBM_PROG_BZIP2, bzip2, [], [$PATH:/usr/local/bin]) |
From: Frederic T. <xf...@us...> - 2007-08-21 19:54:42
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv2504 Modified Files: UI-Console.cpp Log Message: Minor cosmetic changes in shown informations. Index: UI-Console.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Console.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** UI-Console.cpp 1 Aug 2007 19:48:38 -0000 1.6 --- UI-Console.cpp 21 Aug 2007 19:54:39 -0000 1.7 *************** *** 163,167 **** break; case UIMsg::BenchmarkBench: ! curmsg+="Benchmarking "; break; case UIMsg::PackageUninstall: --- 163,167 ---- break; case UIMsg::BenchmarkBench: ! curmsg+="Benchmarking result(s)"; break; case UIMsg::PackageUninstall: *************** *** 280,284 **** case UIMsg::PlanRun: curmsg+="Running benchmark plan "; ! curmsg+=objectField(_msg, "name"); break; --- 280,284 ---- case UIMsg::PlanRun: curmsg+="Running benchmark plan "; ! // curmsg+=objectField(_msg, "name"); break; *************** *** 376,380 **** break; case UIMsg::KO: ! std::cout << "Failed."; lastisLF=0; p_sp=0; --- 376,384 ---- break; case UIMsg::KO: ! std::cout << "Failed"; ! if (N->Value()!="") ! std::cout << " : " << N->Value(); ! ! std::cout << "."; lastisLF=0; p_sp=0; |
From: Frederic T. <xf...@us...> - 2007-08-21 19:53:51
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv2118 Modified Files: UI.cpp UI.h Log Message: Handles CBM::Result posts. Index: UI.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** UI.h 1 Aug 2007 19:48:38 -0000 1.11 --- UI.h 21 Aug 2007 19:53:48 -0000 1.12 *************** *** 12,15 **** --- 12,16 ---- #include <UI/UI-Msg.h> #include <Base/Thread.h> + #include <Base/Result.h> namespace CBM { *************** *** 74,77 **** --- 75,80 ---- virtual UIMsg *outputInfo(std::string _text); + virtual UIMsg *outputInfo(CBM::Result *_r); + virtual UIMsg *Progress(float _pc); *************** *** 80,84 **** virtual UIMsg *outputKO(std::string _test = ""); - virtual void Display(UIMsg *_msg) = 0; virtual void DisplayProgressUpdate(UIMsg *_msg) = 0; --- 83,86 ---- Index: UI.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** UI.cpp 1 Aug 2007 19:48:38 -0000 1.12 --- UI.cpp 21 Aug 2007 19:53:48 -0000 1.13 *************** *** 330,335 **** } - - UIMsg *UI::outputInfo(std::string _test) { --- 330,333 ---- *************** *** 341,344 **** --- 339,371 ---- } + UIMsg *UI::outputInfo(CBM::Result *_r) + { + std::string tmp; + UIMsg *msg = currentMsg(); + + tmp="Value="; + tmp+=_r->Value(); + outputInfo(tmp); + + tmp="buildTime="; + tmp+=_r->compilationTime(); + outputInfo(tmp); + + tmp="execTime="; + tmp+=_r->executionTime(); + outputInfo(tmp); + + tmp="Testsuite="; + tmp+=_r->tested(); + outputInfo(tmp); + + + tmp="Tested="; + tmp+=_r->testOk(); + outputInfo(tmp); + + return(msg); + } + UIMsg *UI::Progress(float _pc) { |
From: Frederic T. <xf...@us...> - 2007-08-21 19:53:17
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv2097 Modified Files: UI-Msg.cpp Log Message: Useless spaces removed. Index: UI-Msg.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI-Msg.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** UI-Msg.cpp 1 Aug 2007 19:48:38 -0000 1.6 --- UI-Msg.cpp 21 Aug 2007 19:53:14 -0000 1.7 *************** *** 489,496 **** } - - - - UIMsgGroup::UIMsgGroup(std::string _name) : UIMsg() --- 489,492 ---- |