4 ms·
Why does it say “constants here” in .data? .data is for initialized variables. Constants go into .rodata
by dmitrygr 2y ago
Why does it say “constants here” in .data? .data is for initialized variables. Constants go into .rodata
- shikaan 2y agoYou are correct. The focus of the series is in on accessibility. Sometimes it comes at the expense of telling the whole story: I was even on the fence on introducing the .bss block, honestly. The article mentions initialized variables, but maybe this warrants a footnote. Thanks for the feedback and for reading through the article. I appreciate a lot :)
- aleph_minus_one 2y ago> The focus of the series is in on accessibility. Teaching wrong things does not make the article better accessible, but more confusing.
- Nab443 2y agoI would add that if you're targeting HL programming language users, this is something they should already have the knowledge of. It does not need a particular effortt to map that to what they alrady know.
- shikaan 2y agoYou got me thinking and I simplified the whole block. Removed the .bss part and just calling what goes in there "data". Thanks once again for the feedback :)