Welcome to the Drive World with ESC 2019 Presentation Store. Here you can view and download conference presentations before, during, and after the event. If you’re looking for a presentation from a specific session that you’re unable to find here, note that it’s likely because the presenter has not provided permission for external use or has not yet shared their presentation with us. Please check back after the event for a more complete catalogue of available presentations.
A lesson in C++ Part 1: Customizing Dynamic Memory Management
Ben Saks (Chief Engineer, Saks & Associates)
Location: Room 201
Date: Wednesday, August 28
Time: 8:00 am - 8:55 am
Track: ESC - Embedded Software Design & Verification
Format: Technical Session
Vault Recording: TBD
Using dynamically allocated memory can often save significant space over using statically allocated memory. However, many embedded programmers avoid using dynamically allocated memory in C++ because the built-in implementation of "new" doesn't meet their needs - it's often slow and non-deterministic, and runs the risk of fragmenting memory.
This session will teach you how to write your own versions of "new" and "delete" with characteristics suitable for use in embedded systems. It presents multiple forms of "new" and "delete" with detailed examples of how to replace them.