Article View: gnu.gcc.bug
Article #6082Bug using large arrays ??
From: Hepworth & Hatcher
Date: Wed, 18 Dec 1996 00:00
Date: Wed, 18 Dec 1996 00:00
43 lines
1650 bytes
1650 bytes
We have a problem using gcc to compile C++ programs. We are using
gcc as a cross compiler on a Windows95 machine. The target is
an MVME1302 processor board (PPC603 PowerPC) running Tornado 1.0. The
compiler version is 2.7.2.
The problem we seem to have is that our program crashes after
an access to a large array. We have tried to debug the program
but have not been able to pinpoint the problem exactly
or derive a small test program which highlights the problem.
The basic structure of the program is shown below.
class CObj
{
...
virtual int f1();
virtual int f2();
...
};
class CDerived1:public CObj
{
...
int f1();
int f2();
...
short large_array[4][4096];
};
What we find is that in the class CDerived1 after we access the
array large_array calls to the virtual functions f1 and f2
crash the program.
If we do not access the array then the program works fine.
Has anyone else had this problem or similar nad how did you solve
it?
Thanks,
P.Hatcher
Technical Details
Message-ID:
<32B7D582.3310@dial.pipex.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,1aab7583bce0af72,start X-Google-Attributes: gid113d02,public From: ny15@dial.pipex.com (Hepworth & Hatcher) Subject: Bug using large arrays ?? Date: 1996/12/18 Message-ID: <32B7D582.3310@dial.pipex.com> X-Deja-AN: 204735008 sender: bug-gcc-request@prep.ai.mit.edu content-type: text/plain; charset=us-ascii organization: UUNet PIPEX server (post doesn't reflect views of UUNet PIPEX) x-gateway: relay3.UU.NET from bug-gcc to gnu.gcc.bug; Wed, 18 Dec 1996 09:29:06 EST mime-version: 1.0 newsgroups: gnu.gcc.bug x-mailer: Mozilla 2.01Gold (Win95; I)