Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About Rule 18-4-1 "Dynamic heap memory allocation shall not be used."
#2
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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)