logoalt Hacker News

dmitrygrtoday at 5:41 AM1 replyview on HN

that is why it was not "static const char buf[]" ;) it was not an accident

executable stacks are still common (incl on windows with some settings), and sometimes they are required (eg for gcc nested functions)


Replies

diamondlovesyoutoday at 5:54 AM

That won't be located on the stack either. The underlying buffer will be a TU local - ie static and not rx

show 1 reply