Data sections

A section containing only variables (variables defined using the DS directive) is considered to be a data section. Data sections are always allocated in the target processor's RAM area.

Note: A section containing variables (DS) and constants (DC) or code is not a data section. The default for such a section with mixed DC and code content is to put that content into ROM.

We strongly recommend that you use separate sections for the definition of variables and constant variables. This will prevent problems in the initialization of constant variables.