* James Turner -- Tuesday 18 April 2006 00:07:
> On 17 Apr 2006, at 21:31, Melchior FRANZ wrote:
> > The really bad news:
> >   Some of the necessary changes would have to be done in an
> >   associated project, [...]
> 
> What kind of changes?

Not that many. It's JSBSim and it is a bit too generous with including
headers. Took me a while to remove a few and replace others with
forward declarations. The problem is maintenance. If the developers
aren't interested, then it only takes a few weeks until someone adds
stuff that breaks compilation again, without noticing. That's not
maintainable that way.



> The biggest win for FG would probably come from pre-compiling the
> headers for PLIB and parts of SimGear, I guess.

I didn't observe a big drop in compile time. Maybe (or hopefully) it's
faster than without, but it was definitely slower than with ccache, so it
doesn't justify the hassle. (Maybe it's because ccache doesn't understand
*.hxx.gch files?)


 
> I'm surprised the code changes are so dramatic than you can't check  
> them in and let people experiment

They aren't dramatic. Some of them are recommendable in any case. It's
just the resistance from the audience, the fear that fgfs might compile
a few seconds longer if the dirty micro-optimization compile-time hacks
are removed. It's hardly more than that. ccache *easily* compensates
for the few extra seconds. By the way: several subdirs could be compiled
without a single change: UIUC, YASim, LaRCSim, Scripting, Sounds, and
a few others. Even Instrumentation could be compiled right away, with
the only exception of wxradar.hxx!



> - MSVC has good pre-compiled header support,

That's another thing why we aren't ready for precompiled headers: our
autotools setup doesn't support it yet (although this would probably be
easy to add). I'm using scons for SimGear and FlightGear, and here it
was only one added 'tool' to get gch support.

m.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to