04-04-2023, 11:08 AM
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.
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