Subject: CGAL users discussion list
List archive
- From: Philipp Möller <>
- To:
- Subject: Re: [cgal-discuss] Smart makefile for C++ at function level
- Date: Wed, 12 Oct 2011 00:06:02 +0200
Hi Zohar,
compilation times with template code are a serious problem and the usual argument goes like this: Get a new computer or dedicated build-infrastructure.
Your idea looks cool but comes with some serious problems.
- C++ build systems are already overly complex, hiding a (notoriously complex) C++ parser isn't a good idea (although Boost.Wave comes to mind). You also need to scan for much more than just functions (static, unnamed namespace).
- parsing and building your intermediate files looks error prone and time consuming
- you put a lot of strain on the linker, dunno if this is actually better than putting it on the compiler
Generally this is something more suited for comp.lang.c++.moderated and not for SO or this mailing list. But I'm afraid people there are just going to tell you that you should help pushing the "modules" proposal for C++1x (No, other people aren't that optimistic regarding the time frame ;) ).
Meanwhile there is `extern template` in C++11 to prevent instantiation of templates if you are sure that it will be instantiated in another TU. This could help you already.
Cheers,
Philipp
On 11 October 2011 22:27, Zohar <> wrote:
Hi Guys,
Slow build times especially in .cpp using CGAL inspired my following idea:
http://forums.cgsociety.org/showthread.php?f=89&t=1010489
http://forums.cgsociety.org/showthread.php?f=89&t=1010489
First I would appreciate your opinion on my idea.
Second I started a discussion with Robert regarding templates, I would
appreciate your comments, since you chose it as your main architecture
design.
You can answer here, and I'll try to relate the stuff to cgtalk.
Zohar
--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/Smart-makefile-for-C-at-function-level-tp3895883p3895883.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] Smart makefile for C++ at function level, Zohar, 10/11/2011
- Re: [cgal-discuss] Smart makefile for C++ at function level, Philipp Möller, 10/12/2011
- [cgal-discuss] Re: Smart makefile for C++ at function level, Zohar, 10/14/2011
- Re: [cgal-discuss] Smart makefile for C++ at function level, Philipp Möller, 10/12/2011
Archive powered by MHonArc 2.6.16.