News for hackers. Stuff that matters.
Re:C performance mystery: delete unused string constant by kijiki on Wednesday June 24, 2020 @05:52PM (#23634289)
> ...a global constant would go in the TEXT section of the binary...

Wouldn't it go into the .rodata section, not .text?

Re:C performance mystery: delete unused string constant by codezero on Wednesday June 24, 2020 @05:55PM (#23634307)
I'm not sure, I am parroting what I thought I read on SO - so you are much more likely to be right, sorry about that!
Re:C performance mystery: delete unused string constant by vivekseth on Wednesday June 24, 2020 @06:25PM (#23634576)
clang seems to work this way, and macOS aliases gcc -> clang by default. Wrote more about this here: https://news.ycombinator.com/item?id=23634495
Re:C performance mystery: delete unused string constant by codezero on Wednesday June 24, 2020 @08:53PM (#23635631)
Thanks! Glad there's an explanation for my confusion :)