Home | Login | Register Now   [Jul 30,2010]
Global Sources
Embedded Design India
ESL Design Embedded Design India Home / ESL Design

Solving deterministic dynamic memory allocation issues

Bookmark and Share Subscribe Add to Favorites Print Version

Keywords: memory allocation  dynamic memory  memory allocation issues 

In C and C++, it can be very convenient to allocate and de-allocate blocks of memory as and when needed. This is certainly standard practice in both languages and almost unavoidable in C++.

However, the handling of such dynamic memory can be problematic and inefficient. For desktop applications, where memory is freely available, these difficulties can be ignored. For embedded—generally real-time—applications, ignoring the issue is not an option.

Dynamic memory allocation tends to be non-deterministic. The time taken to allocate memory may not be predictable, and the memory pool may become fragmented, resulting in unexpected allocation failures. This article details the problems and an approach to deterministic dynamic memory allocation.

View the PDF document for more information.



votes:
Comment on "Solving deterministic dynamic memory allocation issues"
Comments:  

Design 101

Configuring digital, analogue components into the PSoC 3 device
Configuring digital, analogue components into the PSoC 3 device
Embedded designs should be more than a collection of microcontrollers and discrete components, pulled together by board design tools and software development environments. 


Last week's most read articles
 •  Digicams get Wi-Fi-connected with SD card (06/10/09)
 •  Building a line-powered transceiver with basic parts (27/08/09)
 •  White LED driver circuits for offline applications using standard PWM controllers (22/09/09)
 •  Improve DSP performance with on-chip FFT (12/10/09)
 •  Overcome design complexities in multi-core networking (Part 2) (01/10/09)
 •  How to rapidly debug serial buses in FPGAs (15/07/09)
 •  Address the complex task of testing automotive ECUs (08/10/09)
 •  A beginner's guide to configuring counter/timer (31/08/09)
 •  Overcome design complexities in multi-core networking (Part 1) (30/09/09)
 •  Employing fastboot for ultra small Atom processor designs (15/10/09)
 
Go to top