From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Finding out minimal allocation unit
Date: Wed, 04 Apr 2007 13:16:08 -0400
Date: 2007-04-04T13:16:08-04:00 [thread overview]
Message-ID: <wccejn03vs7.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: eiircd32t9.fsf@hod.lan.m-e-leypold.de
Markus E Leypold
<development-2006-8ecbb5cc8aREMOVETHIS@ANDTHATm-e-leypold.de> writes:
> Stefan Bellon <sbellon@sbellon.de> writes:
>
>> Martin Krischik wrote:
>>
>>> So I believe the OP wanted to know how to find out how much memory
>>> for "new"ed object is allocated in total in order to know if extra
>>> optimisation is needed.
>>
>> Exactly. :-)
>
>
> I'm only guessing, but here is my approach for GNAT: GNAT is AFAIK
> linked against libc (at least on Unix). On linux that is glibc, which
> provides methods to catch/trace malloc() requests. My suggestion is
> that you do that and look which sizes are actually requested from
> malloc().
That won't quite give the right answer, because malloc() adds a couple
of words or so to what was requested.
- Bob
next prev parent reply other threads:[~2007-04-04 17:16 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-03 12:43 Finding out minimal allocation unit Stefan Bellon
2007-04-03 13:22 ` Georg Bauhaus
2007-04-03 13:28 ` Stefan Bellon
2007-04-03 13:34 ` Martin Krischik
2007-04-03 13:37 ` Stefan Bellon
2007-04-03 15:17 ` Markus E Leypold
2007-04-04 17:16 ` Robert A Duff [this message]
2007-04-05 8:55 ` Markus E Leypold
2007-04-05 17:55 ` Stefan Bellon
2007-04-06 1:40 ` Randy Brukardt
2007-04-06 8:06 ` Stefan Bellon
2007-04-06 11:06 ` Markus E Leypold
2007-04-03 23:53 ` Randy Brukardt
2007-04-05 6:12 ` Stefan Bellon
2007-04-05 7:35 ` Martin Krischik
2007-04-05 17:58 ` Stefan Bellon
2007-04-07 9:27 ` Martin Krischik
2007-04-10 21:42 ` Robert A Duff
2007-04-05 13:07 ` Robert A Duff
2007-04-05 18:02 ` Stefan Bellon
2007-04-06 1:31 ` Randy Brukardt
2007-04-06 8:10 ` Stefan Bellon
2007-04-06 17:17 ` Simon Wright
2007-04-06 12:38 ` Stephen Leake
2007-04-03 14:12 ` Larry Kilgallen
2007-04-03 13:48 ` Robert A Duff
2007-04-03 16:45 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox