##### Syntax

-Rk, name

##### Description

The -Rk command line option sets the name of the default data section that the compiler emits read-only data into. If no other options are given, the default name for the section is CONST.

You can control the name of the read-only data section used by the compiler within a source file using the constseg pragma or by using CrossStudio to set the Constant Section Name property of the file or project.

##### To set this option in the CrossStudio development environment

To set the default constant section name for a project:

- Select the project in the Project Explorer.
- In the Section Options group edit the Constant Section Name property.

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

- Select the file in the Project Explorer.
- In the Section Options group edit the Constant Section Name property.

##### Example

The following command line option instructs the compiler to use the name ROMDATA as the default read-only data section name and to initially generate all read-only data into that section.

    -Rk,ROMDATA