This is the mail archive of the gcc-patches@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]

Re: Trivial patch to change some memory statistic slots to longs from ints


>> If you have 10G of bitmaps on 64-bit machines, you might have 7 or 8 on
>> a 32-bit one, but definitely more than 4.
> 
> That doesn't compute for me ;)

Read as: there is some overhead for pointers, but the bits are going to
occupy the same space on 32- or 64-bit machine.

> But I think using size_t makes most
> sense, or at least unsigned long (and yeah - win64 is weird enough
> that you can ignore it for this purpose).

This is the total memory used, not the peak.  This:

  for (;;)
    free (malloc (100000));

will sooner or later allocate >4G :-)

Paolo


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