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

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  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

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>
Project Administrator

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.5