Embedded cover image

391: The Lesser of Two Weevils

Embedded

00:00

The Heap Continues to Go Down, and the Stack Continues to Go Up

You set a maximum stack size, and then the the run time tells you no more when you go over. If you don't there's nothing checking, you're going beyond the heap,. Nothing checking you're going Beyond the Stack. A hell hewis the real problem. And this is one of the reasons we don't always use heaps in embedded systems. Use static memory, and then everything after the prealicated variables is stack space to work with.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app