lwIP - A Lightweight TCP/IP stack - Tasks: task #14979, improve code size with unused...
You are not allowed to post comments on this tracker with your current authentication level.
task #14979: improve code size with unused socket options
Submitter: | Simon Goldschmidt <goldsimon> | ||
Submitted: | Mon 02 Jul 2018 11:05:59 AM UTC | ||
Category: | None | Should Start On: | Mon 02 Jul 2018 12:00:00 AM UTC |
Should be Finished on: | Mon 02 Jul 2018 12:00:00 AM UTC | Priority: | 3 - Low |
Status: | None | Privacy: | Public |
Percent Complete: | 0% | Assigned to: | None |
Open/Closed: | Open | Planned Release: | None |
Effort: | 0.00 |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2018-07-02 | goldsimon | Summary | imrpove code size with unused socket options | ![]() |
improve code size with unused socket options |
This is just an idea: setsockopt/getsockopt makes the binary grow quite big because these functions contain all code as switch/case, so the linker can not drop out unused code.
Maybe we can convert setsockopt/getsockopt from a function to a define like this:
#define setsockopt(s,level,optname,optval,optlen) setsockopt_##level##_##optname(s, optval, optlen)
That way, an undefined optval/level combination would generate a linker error and all unused options could be removed by the linker.