News for hackers. Stuff that matters.
Re:Proposal: expression to create pointer to simple types by coder543 on Monday April 19, 2021 @11:31AM (#26863876)
No, that does not cause a heap allocation on its own. If other lines of code in that function caused a pointer to that value to escape the lifetime of the current function's stack frame, the compiler would determine that it has to be heap allocated instead.

I believe the person you are replying to was making a confusing point about some hand wavy notion of "any kind of allocation", which includes stack allocations... which are determined at compile time, not with "alloca".

Re:Proposal: expression to create pointer to simple types by catlifeonmars on Monday April 19, 2021 @01:23PM (#26865434)
Ah, that makes much more sense!