Minimum stack size should be 2048 bytes, minimum heap size should be at least 2048 bytes.
All other memories (buffers, etc.) are user-defined and application specific and may be allocated statically or dynamically.
The net.lib library uses two special code sections:
Performance critical functions are located in .nettextfast and should be mapped to fastest memory in the linker command file. .nettextslow can be linked to slower memory without noticeable performance penalties.
Example linker command file:
Refer to Example Linker Command File
Required Code and Data size depends on used protocols and sockets:
CCS3.3, CGTools 4.3.8, netlib 2.60
Code Size:
Adapter + MAC + PHY 9973 bytes
ARP 2199 bytes
Sockets 7034 bytes
IP 929 bytes
ICMP 835 bytes
UDP 1459 bytes
TCP 9573 bytes
DNS 1041 bytes
DHCP 2609 bytes
Stack Size: 2048 bytes
Heap Size:
Adapter/PHY 228 bytes
per UDP/ICMP Socket 504 bytes
per TCP Socket 640 bytes
Static RAM:
ARP Cache 2704 bytes
TCP sequence number cache 5170 bytes