Dynamic Memory Allocation & Fragmentation in C & C++
1 min read
Embedded web seminar from Mentor graphics taking place on Wednesday July 8 at 15:00 GMT.
In C and C++, it can be 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 issues 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. In this session the problems will be outlined in detail and an approach to deterministic dynamic memory allocation detailed.
This web seminar will explain why dynamic memory is a problem to embedded software and how a deterministic memory allocator may be designed.
To register, click here.