Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] reducing compile time

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] reducing compile time


Chronological Thread 
  • From: Mahmood NT <>
  • To:
  • Subject: Re: [cgal-discuss] reducing compile time
  • Date: Tue, 27 Nov 2007 02:21:51 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=Z6EaQb5xQ5hl6GYZ96UuaqYE9VjkgEQ/Sbx49IYCSgi4/FUnwEMcrWgwm9HDPBN+6u7pxK8Dhyugmigdfunfy1vc08jwM7EXYjuqnPEARemB+b0UVe05Z3azcYQyE1P4gM+9hSXleFEtRIKHdpS13kysWMpWZh0q7/rlPBGe/2s=;

>What about google g++ precompiled header
I found some tools: "distcc" and "ccache". But I have to work with them. No comment....
 

 
Mahmood NT


----- Original Message ----
From: Andreas Fabri <>
To:
Sent: Tuesday, November 27, 2007 1:34:49 PM
Subject: Re: [cgal-discuss] reducing compile time

Mahmood NT wrote:
>  >It depends on the compiler, but for example with g++ you can use
>  >precompiled headers.  In such a header, you can put as much stuff
>  >as you wish, especially template instantiations as Fernando mentioned,
>  >but already including many files can help.  Then you precompile it,
>  >and the compiler loads the precompiled versions automatically
>  >if you specify something like "-include my_pch.h" on the command line.
>  >It has the benefit that you do not need to re-organize your source
>  >files (like concatenating all your *.cpp files before compiling them
>  >in one go instead of doing several compilations for each of them).
> I have the same problem with compilation time with gcc.
> Can you explain more about how to create and use precompiled header. any
> link, webpage,...
> what should I do with makefile?

What about google g++ precompiled header
>


>
>
> ----- Original Message ----
> From: Sylvain Pion <>
> To:
> Sent: Thursday, November 22, 2007 10:23:32 PM
> Subject: Re: [cgal-discuss] reducing compile time
>
> Gabriel Cirio a écrit :
>  > Hello,
>  >
>  > is there any tip or trick to reduce the compile time of a CGAL
>  > application? I am using an enriched polyhedron template with a bunch of
>  > templated (since they use the enriched polyhedron) functionalities, and
>  > it often takes several minutes to compile since every single
>  > header/template is recompiled each time. Is there a technique to
>  > minimize template recompilation?
>
> It depends on the compiler, but for example with g++ you can use
> precompiled headers.  In such a header, you can put as much stuff
> as you wish, especially template instantiations as Fernando mentioned,
> but already including many files can help.  Then you precompile it,
> and the compiler loads the precompiled versions automatically
> if you specify something like "-include my_pch.h" on the command line.
> It has the benefit that you do not need to re-organize your source
> files (like concatenating all your *.cpp files before compiling them
> in one go instead of doing several compilations for each of them).
>
> --
> Sylvain Pion
> INRIA Sophia-Antipolis
> Geometrica Project-Team
> CGAL, http://cgal.org/
>
>
>
> ------------------------------------------------------------------------
> Get easy, one-click access to your favorites. Make Yahoo! your homepage.
> <http://us.rd.yahoo.com/evt=51443/*http://www.yahoo.com/r/hs>
--
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 homepage.


Archive powered by MHonArc 2.6.16.

Top of Page