Motorola HC12 User Manual
Page 107

MCUez HC12 Assembler
User’s Manual
MOTOROLA
Sections
107
User’s Manual — MCUez HC12 Assembler
Section 6. Sections
6.1 Contents
Section Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Code Sections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Constant Data Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Data Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Absolute Sections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Relocatable Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Relocatable versus Absolute Section . . . . . . . . . . . . . . . . . . . . . . 114
Modularity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Multiple Developers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Early Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Enhanced Portability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Tracking Overlaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Reusability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
6.2 Introduction
Sections are portions of code or data that cannot be split into smaller elements.
Each section has a name, type, and attributes. Each assembly source file
contains at least one section.
The number of sections in an assembly source file is limited only by the amount
of system memory available during assembly. If several sections with the same
name are detected inside a single source file, the code is concatenated into one
large section.
Sections with the same name, but from different modules, are combined into a
single section when linked.