IBM Support

IV72769: DWARF DEBUG INFO INFLATING OBJECT FILE SIZE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When generating object files with debug information in the DWARF
    format, the files generated are much larger than files using the
    stabstring debug format.
    
    In general, DWARF debug information is typically larger than
    stabstring debug information.  However in this case, object
    files with DWARF debug info are sometimes 10 times or more the
    size of stabstring object files.
    
    
    
        === TEST CASE ===
    
    int main()
    {
            return 5;
    }
    
    
    > xlc -c -g test.c -qdbgfmt=dwarf      -o test.dwarf.o
    > xlc -c -g test.c -qdbgfmt=stabstring -o test.stabstring.o
    > ls -l
    -rw-r-----    1      26  test.c
    -rw-r-----    1   22963  test.dwarf.o
    -rw-r-----    1    1275  test.stabstring.o
    >
    

Local fix

  • NA
    

Problem summary

  • USERS AFFECTED:
    DWARF usersPROBLEM DESCRIPTION:
    Compiling files with '-g -qdbgfmt=dwarf' will result in DWARF
    debug info that massively inflates object file size.
    
    USERS AFFECTED:
    DWARF users
    

Problem conclusion

  • When the compiler internally generates the object file layout,
    the size footprint occupies more space than needed, which makes
    the resulting object file much larger when generating DWARF
    debug information.  The issue has been corrected, and smaller
    object files will be seen.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV72769

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-04-27

  • Closed date

    2015-04-27

  • Last modified date

    2015-04-27

  • APAR is sysrouted FROM one or more of the following:

    IV67196

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RD10 PSY

       

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1"}]

Document Information

Modified date:
01 October 2021