Re: C++
"Jonathan S. Shapiro" <[email protected]> Mon, 9 Nov 2009 09:19:47 -0800
| Newsgroups | gmane.os.hurd.l4 |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 9, 2009 at 8:32 AM, Sam Mason <[email protected]> wrote: > Fun! Link times would be even more of a problem then, Google's linker > "gold" was about helping with this a bit (five times?) but if you move > optimization into the linker this is going to get much slower again. Not really. Optimization takes what it takes. The question is whether you do it badly, one file at a time, or globally, one binary at a time. What gets longer if certain optimizations are turned on is the compile/edit/debug cycle. But what's interesting is that there is a middle position where most of the heavy lifting is done by the front end, and the optimizations performed in the linker are (from a time perspective) relatively modest. So from a developer perspective this may be more of a "tuning knob" problem than anything else. shap