This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ slow/swappy problem solved


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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]