Article View: gnu.gcc.bug
Article #62gcc 2.3.1 bug w/ large initializers
From: Jurgen Botz
Date: Tue, 03 Nov 1992 17:37
Date: Tue, 03 Nov 1992 17:37
25 lines
1778 bytes
1778 bytes
A couple of weeks ago I reported that gcc-2.2.2 uses unreasonably large amounts of memory when compiling large array initializers. After building gcc-2.3.1 I found that this behavior still exists. I have been able to verify the existence of this problem on a DECstation under Ultrix 4.2 (blech) and SPARC under SunOS 4.2. I originally found the problem when trying to compile the xclient "xphoon" which includes a 757x757 bitmap of the moon as an array initializer, but have verified that it occurs in general. In the case of xphoon the initializer consists of ~70,000 8bit values but the compiler runs out of virtual memory (despite a 70MB swap partition) even on less than half that. The DEC MIPS compiler does not use any unusual amount of memory to compile this declaration (i.e. less than a couple of MB). Since it is fairly common practice to compile bitmaps into programs as array initializers, and the ANSI standard does not have any restrictions on initializer usage, this would seem to be a fairly serious bug. -- Jurgen Botz | Internet: JBotz@mtholyoke.edu Academic Systems Consultant | Bitnet: JBotz@mhc.bitnet Mount Holyoke College | Voice: (US) 413-538-2375 (daytime) South Hadley, MA, USA | Snail Mail: J. Botz, 01075-0629
Technical Details
Message-ID:
<Bx5IAu.1t8@mtholyoke.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!emory!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mtholyoke.EDU!jbotzShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!emory!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mtholyoke.EDU!jbotz From: jbotz@mtholyoke.EDU (Jurgen Botz) Newsgroups: gnu.gcc.bug Subject: gcc 2.3.1 bug w/ large initializers Message-ID: <Bx5IAu.1t8@mtholyoke.edu> Date: 3 Nov 92 17:37:41 GMT Article-I.D.: mtholyok.Bx5IAu.1t8 Sender: gnulists@ai.mit.edu Distribution: gnu Organization: Mount Holyoke College Lines: 25 Approved: bug-gcc@prep.ai.mit.edu