Section 3: Assembler
171
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.bsection — Begin / Resume a BSS-type Section
Syntax
.bsection
name [, address]
Description
name
Specifies the section. It is a symbol whose name can be up to
eight characters in length. The first character of the name can be
a period ( . ).
address
Specifies the base or continuation address of the section. It is an
absolute expression that cannot contain any forward, external, or
undefined references.
The .bsection directive begins a BSS-type section with name
name. If address is
specified, the section is absolute and begins at that address; otherwise, the
section is relocatable.
If the specified section already exists, it is resumed either at its current location
(i.e., the value of its location counter) or at the specified address
address. An
absolute section can be restarted at any address beyond its current location.
Relocatable sections cannot be resumed with an address specification.
No object code can be generated in BSS-type sections; they contain only
uninitialized read/write data.
Examples
.bsection zero
; relocatable
.bsection stats, 0x4000
; absolute
.bss — Begin / Resume the BSS-type Section .bss
Syntax
.bss
Description
The .bss directive begins or resumes the BSS-type section .bss. It is functionally
equivalent to .bsection .bss.
The section .bss contains only uninitialized data; therefore, no object code can
be generated in this section. The section .bss is present in all object files,
regardless of whether it is specified. For more information, see section
3.3.4.1 Section Types.