About Rule 18-4-1 "Dynamic heap memory allocation shall not be used."

Moderators: david ward, misra cpp

Sebastien.Ashby@nxp
Posts: 2
Joined: Thu Nov 02, 2017 5:49 pm
Company: NXP Semiconductors

About Rule 18-4-1 "Dynamic heap memory allocation shall not be used."

Postby Sebastien.Ashby@nxp » Mon Mar 25, 2019 6:38 pm


misra cpp
Posts: 145
Joined: Mon Jun 02, 2008 1:55 pm
Company: MISRA

Re: About Rule 18-4-1 "Dynamic heap memory allocation shall not be used."

Postby misra cpp » Wed Apr 10, 2019 2:57 pm

We would agree that creating large amounts of data on the stack has many of the same problems as creating it on the heap.

The rules were written when most target applications had well defined and static memory requirements, making dynamic allocation unnecessary.

However, this approach is being re-examined
Posted by and on behalf of
the MISRA C++ Working Group


Return to “6.18 Language support library (C++)”

Who is online

Users browsing this forum: No registered users and 1 guest