Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-583

Can move a bunch of things from .data to .rodata by adding const

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.6, proton-0.7
    • proton-0.8
    • proton-c
    • None

    Description

      There are a lot of

       static pn_class_t 

      structs that could be

       static const pn_class_t 

      and this would move them into the read only part of the program and hence save RAM in an embedded system.

      There is also a table in the ssl implementation

       dh2048_p 

      which can be const.

      After adding these consts my build has nothing left in the .data section due to the proton library.

      Attachments

        Issue Links

          Activity

            People

              astitcher Andrew Stitcher
              astitcher Andrew Stitcher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: