Texas Instruments TMS320C54x User Manual page 168

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

mem
is an optional label for a member of the structure. This label is
n
absolute and equates to the present offset from the beginning of
the structure. A label for a structure member cannot be declared
global.
element
is one of the following descriptors: .byte, .char, .double, field,
.float, .half, .int, .long, .short, .string, .ubyte, .uchar, .uhalt, .uint,
.ulong, .ushort, .uword, and .word. An element can also be a com-
plete declaration of a nested structure or union, or a structure or
union declared by its tag. Following a .struct directive, these
directives describe the element's size. They do not allocate
memory.
expr
is an optional expression for the number of elements described.
n
This value defaults to 1. A .string element is considered to be one
word in size, and a .field element is one bit.
size
is an optional label for the total size of the structure.
Note: Directives That Can Appear in a .struct /.endstruct Sequence
The only directives that can appear in a .struct/.endstruct sequence are ele-
ment descriptors, structure and union tags, conditional assembly directives,
and the .align directive, which aligns the member offsets on word bound-
aries. Empty structures are illegal.
These examples show various uses of the .struct, .tag, and .endstruct
directives.
Declare Structure Type
Assembler Directives
.struct/.endstruct/.tag
4-85

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Table of Contents