www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22493] New: DWARF: Use flag DW_FORM for flag attributes to

https://issues.dlang.org/show_bug.cgi?id=22493

          Issue ID: 22493
           Summary: DWARF: Use flag DW_FORM for flag attributes to reduce
                    binary size
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: contact lsferreira.net

DW_FORM_data1 is being used on every debug info entry, which adds 1 byte, even
if the entry doesn't have that flag.

With DWARF5, flags can be enabled on the abbreviation code, reducing the debug
info entry size and therefore the overall size significantly.

--
Nov 08 2021