Syntax

-Rd,name

Description

The -Rd command line option sets the name of the default data section that the compiler emits initialized data into. If no other options are given, the default name for the section is IDATA0.

You can control the name of the data section used by the compiler within a source file using the dataseg pragma or by using CrossStudio to set the Data Section Name property of the file or project.

Setting this in CrossStudio

To set the default data section name for a project:

To set the default code section name for a particular file:

Example

The following command line option instructs the compiler to use the name NVDATA as the default initialised section name and to initially generate all initialised data into that section.

-Rd,NVDATA