lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Initialization of global Vars


From: address@hidden
Subject: Re: [lwip-users] Initialization of global Vars
Date: Mon, 22 Feb 2010 17:41:13 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Christian Steffen wrote:
Is there any reason, why the global variables not initialized?
Yes: the C standard specifies them to be initialized to zero/NULL and so it saves space not to do so explicitly.

You have to zero the section of global, uninitialized data in your startup code to be standard-compliant.

Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]