5.8.22. DCDU directive

The DCDU directive allocates one or more words of memory, not necessarily aligned, and defines the initial runtime contents of the memory.

Syntax

The syntax of DCDU is:

{label} DCDU expression{,expression}...

where:

expression

is either:

Usage

Use DCDU to define data words with arbitrary alignment.

You must use the DATA directive if you use DCDU to define labeled data within Thumb code. Refer to DATA directive for more information.

If DCDU is followed by code, use an ALIGN directive to ensure that the instructions are word aligned. Refer to ALIGN directive for more information.

DCDU does not insert padding when preceding code is unaligned. Use DCD if you require alignment.

See also:

Example

		AREA 		MyData, DATA, READWRITE
		DCB		255			; Now misaligned ...
data1		DCDU		1,5,20			; Defines 3 words containing
							; 1, 5 and 20, 	not word aligned
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential