Jonathan Jones

Compiler won't create .bss section

Discussion created by Jonathan Jones on Jun 2, 2006
Latest reply on Jun 12, 2006 by CrasyCat
Hello,
 
I'm Using CodeWarrior for StarCore v2.7.2.
 
I can't get the compiler to create a .bss section.  When I declare an uninitialized variable, say
 
   unsigned int blah[50];
 
it gets placed in the .data section, initialized to zero.  I don't like this, because it increases the size of my .eld file needlessly.
 
I have tried using an Icode options file containing the following:
 
   Uninit_And_Zeroed_Globals_In_Bss=TRUE
   Uninit_Globals_In_Bss=TRUE
 
This seems to have no effect.  Could this be being overridden somewhere?  Any other ideas?
 
Thanks,
Jonathan Jones

Outcomes