This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re[2]: Extremely long compile times
- From: Charles <qe at dabney dot com>
- To: John Carter <john dot carter at tait dot co dot nz>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 21 Oct 2002 15:39:49 -0500 (CDT)
- Subject: Re[2]: Extremely long compile times
- Organization: QualiTech Engineering
- References: <Pine.LNX.4.44.0210210907590.21282-100000@parore>
Thanks, much, John.
Moving the variables outside of "main" fixed the problem.
Thanks again.
Charles
On Mon, 21 Oct 2002 09:13:01 +1300 (NZDT) John Carter <john.carter@tait.co.nz> wrote:
> On Fri, 18 Oct 2002, Charles wrote:
>
> > I've tried this with both gcc 3.1.1 and gcc 3.2. This particular
> program
> > takes over 2 hours to compile.
>
...
> It could be that gcc is doing a linear search somewhere under the
> expectation that there aren't a huge number of local variables. Can you
> try break it up into smaller compilation units?