[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #14979] imrpove code size with unused socket options
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #14979] imrpove code size with unused socket options |
Date: |
Mon, 2 Jul 2018 07:06:01 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0 |
URL:
<http://savannah.nongnu.org/task/?14979>
Summary: imrpove code size with unused socket options
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: 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
Discussion Lock: Any
Planned Release: None
Effort: 0.00
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?14979>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
- [lwip-devel] [task #14979] imrpove code size with unused socket options,
Simon Goldschmidt <=