[Bug 139] GDC writes all-zero initialisers in the rodata section

via D.gnu d.gnu at puremagic.com
Sat Aug 16 00:52:38 PDT 2014


http://bugzilla.gdcproject.org/show_bug.cgi?id=139

Johannes Pfau <johannespfau at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
                 CC|                            |johannespfau at gmail.com
         Resolution|FIXED                       |---

--- Comment #4 from Johannes Pfau <johannespfau at gmail.com> ---
Timo Sintonen noted that this is actually contra-productive at least on
embedded systems. .bss is read-write storage whereas .rodata can be in readonly
storage.
http://forum.dlang.org/post/nadodelkzuwtrnquoove@forum.dlang.org

I wonder whether the reason you don't see a difference in phobos is a string
pooling optimization: I'd expect a clever linker to combine all .zero blocks in
.rodata into one block with the size of the largest single block, then use
'slices' to that block.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20140816/782d9640/attachment.html>


More information about the D.gnu mailing list