News

Dynamic memory allocation tends to be nondeterministic; the time taken to allocate memory may not be predictable and the memory pool may become fragmented, resulting in unexpected allocation failures.
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 ...
I recently presented arguments for and against using dynamic memory allocation in C and C++ programs. 1 I do agree that truly safety-critical systems should avoid using dynamic allocation because the ...