tasklwIP - 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
Assigned to:  None Percent Complete:  0%
Open/Closed:  Open Planned Release:  None
Effort:  0.00

Mon 02 Jul 2018 11:05:59 AM UTC, original submission:  

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.

Simon Goldschmidt <goldsimon>
Group administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by goldsimon (Submitted the item)

    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 Summaryimrpove code size with unused socket options improve code size with unused socket options

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code