Re: GCC does not cope with my code

Gregory Bond <gnb@itga.com.au>
28 May 2000 21:06:29 -0400

          From comp.compilers

Related articles
GCC does not cope with my code braung@ert.rwth-aachen.de (Gunnar Braun) (2000-05-24)
Re: GCC does not cope with my code mq@maq.org (2000-05-28)
Re: GCC does not cope with my code webid@asi.fr (Armel) (2000-05-28)
Re: GCC does not cope with my code chrisd@reservoir.com (Chris Dodd) (2000-05-28)
Re: GCC does not cope with my code rus@tamu.edu (Silvius Rus) (2000-05-28)
Re: GCC does not cope with my code bonzini@gnu.org (2000-05-28)
Re: GCC does not cope with my code gnb@itga.com.au (Gregory Bond) (2000-05-28)
Re: GCC does not cope with my code J.Scheerder@cwi.nl (2000-05-28)
Re: GCC does not cope with my code Wilco.Dijkstra@arm.com (Wilco Dijkstra) (2000-05-28)
Re: GCC does not cope with my code braung@ert.rwth-aachen.de (Gunnar Braun) (2000-05-31)
Re: GCC does not cope with my code bosch@nile.gnat.com (Geert Bosch) (2000-06-04)
| List of all articles for this month |
From: Gregory Bond <gnb@itga.com.au>
Newsgroups: comp.compilers
Date: 28 May 2000 21:06:29 -0400
Organization: ITG Australia Ltd
References: 00-05-091
Keywords: GCC, practice

Gunnar Braun <braung@ert.rwth-aachen.de> writes:


> No problem up to here. Now I'd like to compile the resulting file with
> g++, but it takes ages until I get the object file. It gets worse, if I
> try to optimize the code generation via -O (of course it gets). The
> problem is that the (source) file (after the macro expansion) isn't
> really large, it's below 700 kB. If the file gets above 700 kB, the
> compiler crashes with the famous signal 11 internal compiler error.


Wow, 700kB of source in one function? No wonder it takes ages! Some
of the internal algorithms are probably O(N^2) (or worse!) in the size
of the function.


The Sig11 is almost certainly due to running out of memory during the
optimization pass as it tries to build enormous flow graphs etc.


Either buy a faster/bigger computer, turn off optimizing, or break it
into many smaller functions.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.