Object Module Section Use - Intel i960 User Manual

Processor compiler
Hide thumbs Also See for i960:
Table of Contents

Advertisement

Language Implementation

Object Module Section Use

The compiler generates assembly language that uses the following object
file format sections to allocate storage for code and data:
.text
.data
.bss
The compiler places all assembly language
instructions and constant data in the
section. Constant data includes initialized
variables with the
const
as string and floating-point literals.
The compiler places any initialized data in the
section. Initialized data includes any
.data
statically allocated variables that you declare
with an initialization list.
The compiler locates uninitialized data in the
section as follows:
.bss
Uninitialized static variables go directly into
.
.bss
Uninitialized external variables are defined with
the
directive. If the command line
.comm
specifies the relaxed ref-def linkage (gcc960's
mno-strict-ref-def
option), the linker places these variables in
if an initializing definition exists in
.data
another module. Otherwise, the linker places
these variables in
.bss
specifies strict ref-def linkage (gcc960's
option or ic960's
mstrict-ref-def
option), all uninitialized static variables are
placed directly in the
.bss
.text
type qualifier, as well
option or ic960's
Gdc
. If the command line
Gds
section.
7
7-19

Advertisement

Table of Contents
loading

Table of Contents