Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Are Memory Pools allowed by MISRA-C?
#4
As a holding answer...

The problems with dynamic memory allocation are numerous, particularly with regards fragmentation and error checking.

It also depends on what you mean by "memory pool" - for example, a fixed-sized array of objects, but where the number of used elements depends on the particular build configuration, would probably be OK.

Of course, any REQUIRED Rule may be deviated if necessary - but the onus is then on the user to justify the deviation and have appropriate sign off.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread
Are Memory Pools allowed by MISRA-C? - by jpature - 14-03-2023, 02:23 PM
RE: Memory pool usage - by Francois - 16-03-2023, 07:06 AM
RE: Memory pool usage - by jpature - 24-03-2023, 09:22 AM
RE: Are Memory Pools allowed by MISRA-C? - by misra-c - 04-04-2023, 11:08 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)