News for hackers. Stuff that matters.
Re:Zig self hosted compiler is now capable of building itself by _3u10 on Saturday April 16, 2022 @09:53PM (#31057745)
Stacks are a fixed size. Unless you are running out of stack space there is no point in “freeing” memory from the stack. Where in the stack the stack pointer points has no bearing on stack size for any OS I’m aware of.

I’m assuming by string you mean a stack allocated array of char and not a std::string.

Re:Zig self hosted compiler is now capable of building itself by varajelle on Saturday April 16, 2022 @10:26PM (#31057919)
I meant a std::string on the stack, which is just a handle for more memory on the heap