[Issue 9655] New: Two functions with identical implementations are allowed to have the same address
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 5 21:54:35 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9655
Summary: Two functions with identical implementations are
allowed to have the same address
Product: D
Version: D2
Platform: All
URL: http://www.informit.com/guides/content.aspx?g=cplusplu
s&seqNum=561
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: websites
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at digitalmars.com
--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-03-05 21:54:35 PST ---
In regards to:
http://d.puremagic.com/issues/show_bug.cgi?id=9623
Related C++ article "Can Two Functions Have the Same Address?"
http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=561
This quote pretty much sells me:
--
Additionally, Google's compiler team have experimented with Identical Code
Folding (ICF) and reported that "[d]etailed experiments on the x86 platform
show that ICF can reduce the text size [the program section in which functions'
code is stored, DK] of some Google binaries, whose average text size is 50 MB,
by up to 7%."
--
We should settle the issue by updating the D spec to explicitly allow functions
to have the same address.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list