lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 08-Feb-23 11:57, Rob Kendrick wrote:
On Wed, Feb 08, 2023 at 11:40:07AM +0100, bil til wrote:
In Stackoverflow forum, you find a hint that MISRA will NOT object, if
you write your own malloc+free function. Just you must NOT invoke the
predefined malloc / free of your compiler.

Tricky, MISRA is a paid-for standard (although it's not expensive): my
reading of it has always forbidden any kind of dynamic memory
allocation, and this includes recursion.

I never worked in MISRA-regulated fields, but I always wondered about the above.

--
  Enrico