You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2014/05/20 20:26:38 UTC

[jira] [Assigned] (PROTON-583) Can move a bunch of things from .data to .rodata by adding const

     [ https://issues.apache.org/jira/browse/PROTON-583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher reassigned PROTON-583:
--------------------------------------

    Assignee: Andrew Stitcher

> 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)