explicit_zero_data

Controls the section where zero-initialized global variables are emitted.

Syntax
  #pragma explicit_zero_data on | off | reset  
Remarks

If you enable this pragma, zero-initialized global variables are emitted to the .data section (which is normally stored in ROM) instead of the .BSS section. This results in a larger ROM image. This pragma should be enabled if customized startup code is used and it does not initialize the .BSS section. The .BSS section is initialized to zero by the default CodeWarrior startup code.

This pragma does not correspond to any setting in the Language panel. To check this setting, use __option(explicit_zero_data), described in Checking Pragma Settings. By default, this pragma is disabled.

Note: The pragmas explicit_zero_data and initializedzerodata are the same, however, the preferred syntax is explicit_zero_data.