Directives Reference

7.3.9DCFS and DCFSU

The DCFS directive allocates memory for word-aligned single-precision floating-point numbers, and defines the initial runtime contents of the memory. Single-precision numbers occupy one word and must be word aligned to be used in arithmetic operations.

DCDSU is the same, except that the memory alignment is arbitrary.

Syntax

{label} DCFS{U} fpliteral{,fpliteral}...

where:

fpliteral is a single-precision floating-point literal (see Floating-point literals on page 3-22).

Usage

DCFS inserts up to three bytes of padding before the first defined number, if necessary to achieve 4-byte alignment.

Use DCFSU if you do not require alignment.

The range for single-precision values is:

maximum 3.40282347e+38

minimum 1.17549435e–38.

See also DCFD and DCFDU on page 7-21.

Example

DCFS 1E3,-4E-9

DCFSU 1.0,-.1,3.1E6

7-22

Copyright © 2000, 2001 ARM Limited. All rights reserved.

ARM DUI 0068B

Page 304
Image 304
ARM VERSION 1.2 manual Dcfs and Dcfsu