This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ slow/swappy problem solved
- From: Tony Bryant <brd at paradise dot net dot nz>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 14 Oct 2002 14:54:35 +1300
- Subject: C++ slow/swappy problem solved
- Organization: Bryant Research & Development
I've reduced the 160Mb compile down to
this fragment:
-------------------------------------
class x
{
public:
unsigned long mem[1024*1024*10];
x();
};
class y : public x
{
public:
y();
};
----------------------------------------
Some digging show that "record_subobject_offset" in class.c is being
called for EVERY item in x::mem
I now have enough info for a workaround, and I've put an entry in gnatsweb -
Do with it what you will....
BTW- the allocated offset information isn't showing up in -fmem-report....