Home > C/C++, Dynamic memory allocation, Projects > Dynamic Memory Software Updated

Dynamic Memory Software Updated

Wednesday, February 29, 2012 Leave a comment Go to comments

After a bit of a lull, I have resumed work in earnest on what will become, I hope, a useful and fairly comprehensive C++ software library for embedded and real-time developers. To begin with, I am updating the Dynamic Memory Classes which I first published on this blog about two years ago. The first instalment – the “Pooled” class and its ancillaries – is now available for subscribers to download. Just go to the Subscribers page and follow the guidance there in order to get hold of the software.

I publicised the software yesterday on LinkedIn and it is apparent that some of you have downloaded it already. Please check that you really do have the latest version (28 February 2012). Having successfully downloaded it myself yesterday evening, I was dismayed to find that I got an older version when I tried again this morning! I don’t what caused that, but I’ve fixed it now and the old versions have been completely removed from this site.

Some time ago, I blogged about a problem I had with these classes in statically allocating the pools. I temporarily fixed this with a one-off dynamic allocation for each pool when it was first used. I was never happy with that and I’m pleased to say that I have solved the problem properly now. Consequently, the pools are now statically allocated, as was always the intention, and the “Pooled” facility (one pool per class) operates completely independently of “MemSpace”, which is another part of the class library to be incorporated in the next update, quite soon.

Those of you who are mystified by all of this, please browse the “Dynamic Memory” section of this blog. Better still, subscribe to the blog and download the software. This version is comprehensively documented and it comes with its own Demo program, which you can run natively on the desktop or cross-compile and run on an embedded target using a suitable IDE, such as IAR’s.


  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: