[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#361637: gcc-3.3: takes too much RAM when compiling const arrays



Package: gcc-3.3
Version: 1:3.3.5-13
Severity: minor

I tried to compile flite (Festival Lite, the speech
synthesizer) using gcc. One of the source files is a
7.5-megabyte C file with no includes and the only thing it
contains is a single array of the form

const char array[]={142,152,276,371,
... and so on for 7.5 megabytes (automatically generated)

Why does gcc need well over 250 megabytes of RAM to compile
this?  My 128M system was not up to the task.  I was later
able to compile it without problems on a system with 1G of RAM.

Automatically-generated arrays like this are reasonably
common enough to warrant an effort to compile them more
efficiently, especially for the benefit of people who don't
have the latest hardware to compile on.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.23
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)

Versions of packages gcc-3.3 depends on:
ii  binutils                    2.15-6       The GNU assembler, linker and bina
ii  cpp-3.3                     1:3.3.5-13   The GNU C preprocessor
ii  gcc-3.3-base                1:3.3.5-13   The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4.3-13   GCC support library

-- no debconf information



Reply to: