Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Compilation...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 16 Topic 9546 of 9831
Post > Topic >>

Re: Compilation speedup trick: any side-effects?

by Peter Holtwick <borphi@[EMAIL PROTECTED] > Apr 29, 2008 at 10:43 AM

On 29 Apr., 00:03, Francis Glassborow
<francis.glassbo...@[EMAIL PROTECTED]
> wrote:
> With respect, that is not something I would ever choose to 'safely
> assume'. Many programmers spend time wanting to save time :) Complete
> rebuilds for large projects are things to leave for natural breaks (over
> lunch, over-night and, I suppose in extreme cases, over a weekend though
> I have never come across a project where that was necessary)

I agree that some programmers lost more time in finding an optimal
solution than worth it:-)
But fact is, that it is really annoying if compilation takes too long
time. You cannot always have a lunch break just at the moment you want
to sync your workspace and compile:)

> Note that IBM had a C++ compiler that effectively did something like the
> OP's proposal but that was a decade ago. The problem with it was that it
> was inherently non-standard and no way to fix it to make it standard
> conforming.

Sure, this 'trick' is nothing I would do as a standard tool or even
for us but regarding the whole project. But as the components remain
separate and the component owners are responsible about their
functions and namespaces, they can check compilation (and
functionality) of their module.

> When I write code in a .cpp file using an unnamed namespace I
> am assuming that the names I use there are not going to leak out (though
> I think there are now some implications if I have a compiler that uses
> ex****t). The unnamed namespace of a .cpp file being written by me is
> mine and I should not have to spend time worrying about possible naem
> conflicts with code in other files (other than those I explicitly
include)

Yes, this _may_ result in an advice to not use unnamed namespaces or
being sensible using them across cpps in _your_ module/component
(which is the same as the CU in this case).

Of course, minimizing your include statements is the goal, but hard to
maintain with a lot of files and developers. I.e. we want to get rid
of fat headers (like windows.h or the ones mentioned by Andre) in
typical project include headers.

Peter Holtwick

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 16 Posts in Topic:
Compilation speedup trick: any side-effects?
borphi@[EMAIL PROTECTED]   2008-04-25 11:13:19 
Re: Compilation speedup trick: any side-effects?
rado <rgetov@[EMAIL PR  2008-04-25 15:49:57 
Re: Compilation speedup trick: any side-effects?
Francis Glassborow <fr  2008-04-25 16:13:19 
Re: Compilation speedup trick: any side-effects?
Davis King <davis685@[  2008-04-25 16:17:05 
Re: Compilation speedup trick: any side-effects?
Brendan <catphive@[EMA  2008-04-25 16:13:20 
Re: Compilation speedup trick: any side-effects?
Maciej Sobczak <see.my  2008-04-25 17:13:19 
Re: Compilation speedup trick: any side-effects?
Mathias Gaunard <loufo  2008-04-26 03:33:38 
Re: Compilation speedup trick: any side-effects?
Carl Barron <cbarron41  2008-04-26 03:34:04 
Re: Compilation speedup trick: any side-effects?
"borphi@[EMAIL PROTE  2008-04-26 09:43:22 
Re: Compilation speedup trick: any side-effects?
Francis Glassborow <fr  2008-04-26 16:28:03 
Re: Compilation speedup trick: any side-effects?
Francis Glassborow <fr  2008-04-26 16:27:40 
Re: Compilation speedup trick: any side-effects?
mlag.ng@[EMAIL PROTECTED]  2008-04-27 07:12:05 
Re: Compilation speedup trick: any side-effects?
Mathias Gaunard <loufo  2008-04-27 07:29:16 
Re: Compilation speedup trick: any side-effects?
Andre Poenitz <poenitz  2008-04-27 15:45:41 
Re: Compilation speedup trick: any side-effects?
Francis Glassborow <fr  2008-04-28 16:03:16 
Re: Compilation speedup trick: any side-effects?
Peter Holtwick <borphi  2008-04-29 10:43:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:01:50 CDT 2008.