Subject: CGAL users discussion list
List archive
- From: Mahmood NT <>
- To:
- Subject: Re: [cgal-discuss] reducing compile time
- Date: Sun, 9 Dec 2007 21:50:44 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=XXhsoqonDrkQ8HpxQ2QXZYAOp7JXqAH+51SXgGpIbTtkC7ZcXMzqF5YXsbKiduMoKnU+I0ON5hWP5x1fKh/J7zTF/Ny0i46u9mS2gEvtNfPkNQNScOpvIqkNlSGljLNdrRsY3468LriELl1ntveKUgTbASm3DYDyy5icZL3ToMU=;
Andreas Meyer wrote:
>These are for caching a whole translation unit and wont help for CGAL,
>because here, most programs only have one translation unit (one C file,
>which includes everything else).
I can not understand why ccache does not work for CGAL I tested it with my
project and although the statistics show that somethings are cached, but th
next compilation took nearly thesame time as first time.
This the qouted paragraph from Francois Marier:
"Simply put, when you compile a .c file, it produces a .o file. ccache keeps
track of the checksum on the .c file and then stores the corresponding .o.
The next time you compile that .c file, if it hasn't changed, it will have
the same checksum and ccache will already have the .o file for it so it
won't have to compile it again.
Now, in your case, it sounds like there will be very few .c files that do
not change, so ccache will not be able to speed up the compilation by
using already cached .o files."
In my case, I only change one file. So logically by using ccache, other
header files that have not been changed, should be read from cache (during
compilation).
Does this mean that there is a mechanism in CGAL that clear or change the
timestamp of files every time??
It is strange.
Also, why do not developers embed a caching tool during CGAL installation?
Thanks,
Mahmood NT
----- Original Message ----
From: Andreas Meyer
<>
To:
Sent: Tuesday, November 27, 2007 2:09:06 PM
Subject: Re: [cgal-discuss] reducing compile time
Mahmood NT wrote:
> >What about google g++ precompiled header
> I found some tools: "distcc" and "ccache". But I have to work with them.
> No comment....
>
These are for caching a whole translation unit and wont help for CGAL,
because here, most programs only have one translation unit (one C file,
which includes everything else).
What about this: http://www.google.com/search?q=gcc+precompiled+header
The top-3 seem to cover the topic quite well:
http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html
http://en.wikipedia.org/wiki/Precompiled_header
http://www.gamesfromwithin.com/articles/0504/000086.html
Best,
Andreas
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
- Re: [cgal-discuss] reducing compile time, Mahmood NT, 12/10/2007
- Re: [cgal-discuss] reducing compile time, Joachim Reichel, 12/10/2007
- <Possible follow-up(s)>
- Re: [cgal-discuss] reducing compile time, Mahmood NT, 12/10/2007
- Re: [cgal-discuss] reducing compile time, Joachim Reichel, 12/10/2007
Archive powered by MHonArc 2.6.16.