AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Brief overview of memory management - stack and heap
Programmers need to put their data in memory somewhere, and make sure that there aren't two things in the same place at the same time. The simplest way of doing that is you just write a big map of where everything goes. So i suppose, from ha full scale pogami languages. You can just reserve a large piece of memory, use it as a stack. Whenever you new bit of memory, you put it on the end. Whenever you're done with it, you pop it off. It works particularly well for local variables of a function. Of course, not all memoy that a bogam uses is going to work in such a straightforward way. Sometimes exactly how long