C++ compile time (again)

Wolfgang Bangerth bangerth@ices.utexas.edu
Fri Jun 13 17:01:00 GMT 2003


> >   mainline:  89 min
> >   tree-ssa: 118 min
>
> (note: in whole email I will talk about compiler performance with using
> -O0 only)

We build every file twice, once without and once with optimizations. So the 
numbers above are a mix.


> Maybe C++ is just not so popular between free software develpers...

I bet it is, take a look at KDE for example :-)  It may not be popular with 
gcc/binutils/kernel people, though.


> 4) write time result into some table
>
> Does anybody here have anything like that? (just to not reinvent a wheel)

I do something very simplistic: date '+%s' writes out the second since 
1-1-1970, so if you write this number before and after into a file into 
consecutive columns, you can just plot the difference, which is then the 
build time in seconds. A chart is appended.

Below is the whole script I use, build-gandalf-gcc-cvs-head is the script that 
build deal.II (and reports back to our homepage and lots of other stuff).

W.

----------------------------------------------------------------------
rm -rf gcc-install

cd gcc
  cvs -d :pserver:anoncvs@subversions.gnu.org:/cvsroot/gcc co gcc

  mkdir bin
  cd bin
    echo -n "`date '+%Y-%m-%d'` " >> ../../build-gcc-times
    echo -n "`date '+%s'` " >> ../../build-gcc-times

    ((../gcc/configure --enable-languages=c,c++ \
                       --prefix=/ticam/bangerth/tmp/build-gcc/gcc-install \
                       --disable-checking \
      && \
      make bootstrap \
      && \
      make install ) 2>&1 ) > ../../gcc-build_log

    echo "`date '+%s'` " >> ../../build-gcc-times
  cd ..
  rm -rf gcc bin
cd ..


if test ! -f gcc-install/bin/gcc ; then
  echo "Boostrapping gcc failed"
  exit 1
fi


bash build-gandalf-gcc-cvs-head
----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x.gif
Type: image/gif
Size: 36965 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030613/5f8f863e/attachment.gif>


More information about the Gcc mailing list