The embedded conference season continues and, next week, I will be in Sindelfingen, near Stuttgart in Germany for the ESE Kongress. This is an annual event that I have attended several times over the last few years. There is a small trade show – where some of my colleagues will be manning a stand throughout the week – and multiple streams of presentations …
I have a single presentation this time, which takes place at 17:35 on Tuesday 29th:
Dynamic Memory Allocation & Fragmentation in C & C++
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 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.
If you are attending ESE, do stop by and say hello. If you would like a copy of my presentation, please email or contact me via social media