Motorola HC12 User Manual

Page 107

Advertising
background image

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Sections

107

User’s Manual — MCUez HC12 Assembler

Section 6. Sections

6.1 Contents

6.2

Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

6.3

Section Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

6.3.1

Code Sections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

6.3.2

Constant Data Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

6.3.3

Data Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

6.4

Section Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

6.4.1

Absolute Sections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

6.4.2

Relocatable Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

6.4.3

Relocatable versus Absolute Section . . . . . . . . . . . . . . . . . . . . . . 114

6.4.3.1

Modularity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

6.4.3.2

Multiple Developers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

6.4.3.3

Early Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

6.4.3.4

Enhanced Portability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

6.4.3.5

Tracking Overlaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

6.4.3.6

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.

Advertising