lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] Clarification needed for variable initialization


From: Robert Ammerman
Subject: [lwip-devel] Clarification needed for variable initialization
Date: Wed, 4 Jul 2007 10:25:56 -0400

It is indeed part of the C standard that global variables without explicit initializers are set to zero.

However, talk about BSS or INITDATA is referring to some, but not all compilers. The way the compiler manages the initialization is not defined. For example, it would be perfectly valid for the compiler/linker to generate a bunch of assignment and "memset" type statements that are executed before main().






reply via email to

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