Re: [Fresco-devel] Suggested addition to Coding Style-guide

Gabriel Dos Reis <[email protected]> 13 Apr 2003 02:08:32 +0200
Newsgroups gmane.comp.video.fresco.devel
Organization Integrable Solutions
Message-ID <[email protected]>
Stefanus Du Toit <[email protected]> writes:

| On Sun, Apr 13, 2003 at 01:14:53AM +0200, Gabriel Dos Reis wrote:
| > When build times is really an issue, I believe using that using
| > things like precompiled headers helps much more than declaring by
| > hand which entity one uses.  At least, that is my exprience with
| > large projects.
| 
| Using a compiler cache should also all but completely eliminate this
| particular issue.
| 
| I didn't realise that "regular" gcc supports precompiled headers these
| days. Since when is that the case?

In the C++ large project I was tlaking about, we used KCC on GNU/Linux
(and now como).  GCC-3.4 (CVS sources) has precompiled header support.

| > A frightening downside of forward declaring "by hand" is the same as
| > why you don't want code-duplication: Every minor change needs to be
| > done at zillions of places, whereas including a forward declaration
| > header keeps the changes in one place.
| 
| I think this is a reasonable point. A decent place to draw the line
| for Fresco may be one file per directory, since for the most part
| things are fairly well compartmentalized.

Understood.

-- Gaby