comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Finding out minimal allocation unit
Date: Tue, 03 Apr 2007 09:48:54 -0400
Date: 2007-04-03T09:48:54-04:00	[thread overview]
Message-ID: <wccd52l4lh5.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 20070403144350.6c95e085@cube.tz.axivion.com

Stefan Bellon <sbellon@sbellon.de> writes:

> Is there a reliable way of finding out the smallest allocation unit?

You could print out the addresses of allocated objects,
and guess what's going on.  If you have access to the source,
you could read it.

If the underlying allocator is malloc(), there will typically be a
couple of words or so of extra space wasted per object, primarily due
to design flaws in the C language.  If you don't like that, then you can
write your own allocator -- look up "storage pools".

- Bob



  parent reply	other threads:[~2007-04-03 13:48 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
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 [this message]
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