[
https://issues.apache.org/jira/browse/PROTON-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003798#comment-14003798
]
ASF subversion and git services commented on PROTON-583:
--------------------------------------------------------
Commit 1596358 from [~astitcher] in branch 'proton/trunk'
[ https://svn.apache.org/r1596358 ]
PROTON-583: Move a bunch of constant data structures to read only section
- Everywhere a pn_class_t is defined it is a constant structure that
can be read only.
- There is a table in the SSL implementation that also is constant
and can be moved to the read only section.
> Can move a bunch of things from .data to .rodata by adding const
> ----------------------------------------------------------------
>
> Key: PROTON-583
> URL: https://issues.apache.org/jira/browse/PROTON-583
> Project: Qpid Proton
> Issue Type: Improvement
> Components: proton-c
> Affects Versions: 0.6, 0.7
> Reporter: Andrew Stitcher
> Assignee: Andrew Stitcher
>
> There are a lot of {code} static pn_class_t {code} structs that could be
> {code} static const pn_class_t {code} 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 {code} dh2048_p {code} which
> can be const.
> After adding these consts my build has nothing left in the .data section due
> to the proton library.
--
This message was sent by Atlassian JIRA
(v6.2#6252)