Download Assemblers and Loaders
Transcript
vi Contents 1.7 Absolute and Relocatable Address Expressions 1.7.1 Summary 36 1.8 Local Labels 36 1.8.1 The LC as a local symbol 38 1.9 Multiple Location Counters 39 1.9.1 The USE directive 39 1.9.2 COMMON blocks 41 1.10 Literals 43 1.10.1 The literal table 43 1.10.2 Examples 44 1.11 Attributes of Symbols 45 1.12 Assembly-Time Errors 46 1.13 Review Questions and Projects 49 1.13.1 Project 1–1 50 1.13.2 Project 1–2 52 1.13.3 Project 1–3 53 1.13.4 Project 1–4 54 2 The Symbol Table A Linear Array 60 A Sorted Array 60 Buckets with Linked Lists 61 A Binary Search Tree 62 A Hash Table 63 2.5.1 Closed hashing 63 2.5.2 Open hashing 65 2.6 Review Questions and Projects 2.6.1 Project 2–1 66 2.6.2 Project 2–2 66 2.6.3 Project 2–3 67 35 59 2.1 2.2 2.3 2.4 2.5 66 3 Directives 3.1 Introduction 69 3.2 Program Identification Directives 73 3.3 Source Program Control Directives 74 3.4 Machine Identification Directives 76 3.5 Loader Control Directives 77 3.6 Mode Control Directives 77 3.7 Block Control & LC Directives 79 3.8 Segment Control Directives 85 3.9 Symbol Definition Directives 86 3.10 Base Register Definition Directives 89 69