Syntax
-Rz, name
Description
The -Rz command line option sets the name of the default zeroed data section that the assembler uses for the .BSS directive. If no other options are given, the default name for the section is UDATA0. Uninitialised data in UDATA0 is set to zero on program startup.
You can control the name of the zeroed data section used by the assembler within a source file using the RSEG and .SECTION directives or by using CrossStudio to set the Zeroed Section Name property of the file or project.
Setting this in CrossStudio
To set the default zeroed section name for a project:
- Select the project in the Project Explorer.
- In the Section Options group edit the Zeroed 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 Zeroed Section Name property.
Example
The following command line option instructs the assembler to use the name ZDATA as the default zeroed data section name selected by the .BSS directive.
-Rz,ZDATA