&gt;&gt;  if you are using a heap on really small embedded device you&#x27;re gonna have a bad time any way.<p>Yep. malloc() is generally discouraged on those things and should be seen as a big red flag in any code review.