Re:C performance mystery: delete unused string constant
by staycoolboy on Wednesday June 24, 2020 @08:33PM
(#23635485)
That was my first thought. Not sure what compiler OP is using but I would put "#pragma align" all over the place and see if the absence still makes a difference.
[ Parent
| on HN ]
Re:C performance mystery: delete unused string constant
by guerrilla on Thursday June 25, 2020 @04:07AM
(#23638072)
That wouldn't help if they're generating ELF files as .rodata is a string table, meaning it's tightly packed and as far as I know neither clang nor gcc pads it.
Re:C performance mystery: delete unused string constant
by staycoolboy on Thursday July 02, 2020 @10:24PM
(#23720480)
Ah, I didn't think of that.