AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Do Programmers Have to Think Explicitly About Stack Frames?
The structure of the data stack falls naturally out of the structure of the function calls. But if you're witing one of these mart constructure things that allocate something for the colar to deelocat, then those require an annotation. You have to say that a given function is going to return something on the parent stack. And then beyond that, you just use the functions in that thing. So you not explicitly in the code manipulating stack frames? Yes, that's correct. We did at one point of a side mabbe we could just infer all of this and just have the compiler decide when things go on the stack - which sounds good in theory, but really isn't