Call for Papers

Dynamic Memory Allocation & Fragmentation in C & C++ ( Vortrag )

Problems and Some Solutions

Referent: Colin Walls, Mentor Graphics
Vortragsreihe: Implementierung
Zeit: 29.11.16 17:35-18:15

Zielgruppe

Entwicklung

Themenbereiche

Implementierung, Software Engineering Management, Sichere Software, Echtzeit/RTOS

Schwerpunkt

Methode

Voraussetzungen

Grundlagenwissen

Kurzfassung

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.

Gliederung

- Introduction to memory usage
- Dynamic memory in C
- Dynamic memory in C++
- Issues and problems
- Memory with an RTOS
- Real time memory solutions
- Conclusions

Nutzen und Besonderheiten

An attendee to this session will gain an understanding of the challenges associated with the use of dynamic memory allocation and how to address them.

Über den Referenten

Colin Walls has over thirty years experience in the electronics industry, largely dedicated to embedded software. A frequent presenter at conferences and seminars and author of numerous technical articles and two books on embedded software, Colin is an embedded software technologist with Mentor Embedded [the Mentor Graphics Embedded Software Division], and is based in the UK. His regular blog is located at: http://blogs.mentor.com/colinwalls