logoalt Hacker News

defenlast Friday at 10:16 PM1 replyview on HN

Can this also affect stack usage? Like if `x` gets dropped before `y` is introduced, can `y` reuse `x`'s stack space (let's assume they are same size/alignment). Or does the compiler already do that if it can see that one is not used after the other is introduced?


Replies

loegyesterday at 1:04 AM

Conceivably, yes.