www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2222] New: spec does not specify when md5 symbol compression is used

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2222

           Summary: spec does not specify when md5 symbol compression is
                    used
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: tomas famolsen.dk


would be nice if the spec could state the maximum length of a symbol name
before md5 compression is put to use.


-- 
Jul 12 2008
next sibling parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
<d-bugmail puremagic.com> wrote in message 
news:bug-2222-3 http.d.puremagic.com/issues/...
 http://d.puremagic.com/issues/show_bug.cgi?id=2222

           Summary: spec does not specify when md5 symbol compression is
                    used
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: tomas famolsen.dk


 would be nice if the spec could state the maximum length of a symbol name
 before md5 compression is put to use.


 -- 

This is not part of the D spec, but rather a hack in the Windows implementation of DMD to get around the shortcomings of the OMF format that it uses. No other D compiler uses it. If anywhere, it should be documented on the DMD page.
Jul 12 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2222


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #1 from bugzilla digitalmars.com  2008-08-07 18:20 -------
There isn't really a fixed length, as the compiler first tries to compress the
identifier. If that fails to get it small enough, then it does the md5 hash.
But it shouldn't be part of the spec, as it's an implementation issue.


-- 
Aug 07 2008