Skip to contentSkip to conversation

List of all-zero .data variables in linux-2.4.3 available

DISCUSSION Adam J. Richter 1 participant 1 message Apr 12, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines
Quoted 4 lines

I am aware of a couple of cases where code relied on static
variables being allocated contiguously, but, in both cases, those variables were either all zeros or all non-zeros, so my proposed change would not break such code.

Continuous placement is not the only property defined by initialization. There are many more. You cannot change this since it will quite a few programs and libraries and subtle and hard to impossible to identify ways. Simply educate programmers to not initialize.

If it is so simple to "educate" programmers on this,
could you provide and example or some specifics, especially on why this should not even be a compiler option? Surely that will save you some iterations in this discussion.

Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America

fax +1 408 261-6631 "Free Software For The Rest Of Us."