smarques7 / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 1 forks source link

Ethernet Library Enhancement #1118

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've made some changes to the Ethernet library classes to
substantially reduce code size in cases where neither DNS nor DHCP is
used.  In a sample application using DHCP the code size was 21600
bytes and when not using DHCP it was 15440 bytes.

The code size reduction was realized by deriving each the classes
EthernetClass, EthernetClient, EthernetServer and EthernetUDP from
corresponding new classes that contain all of the elements needed for
basic operation (i.e. without DNS or DHCP) and keeping all of the
remaining elements in the original classes.  This allows existing code
to compile with the same functionality with no changes while allowing
newly written code to use either the "complete" or the "basic" classes
as may best fit the needs of the application.

I'd be happy to provide patches (relative to v1.0.3) if there is
interest in incorporating the changes into the Arduino code base.

Don Kinzer
ZBasic Microcontrollers

Original issue reported on code.google.com by dkin...@gmail.com on 6 Feb 2013 at 9:22

GoogleCodeExporter commented 9 years ago
I'd like to see these patches please. 

Original comment by John.Stowers on 15 Mar 2013 at 8:08

GoogleCodeExporter commented 9 years ago
The attachment is a patch generated for the libraries/Ethernet sub-tree 
relative to Arduino v1.0.3.

Original comment by alice.ki...@gmail.com on 15 Mar 2013 at 3:45

Attachments: