4.

HP Link Editor/XL

 

 

 

 

 

Common Uses of HP Link Editor/XL . . . . . . . . . . . . . . . . . .

4-3

 

Linking a Relocatable Object File . . . . . . . . . . . . . . . . . . . .

4-3

 

Comparison of HP Link Editor/XL and MPE V/E Segmen ter . . . . . . .

4-4

 

How HP Link Editor/XL Works . . . . . . . . . . . . . . . . . . . .

4-4

 

Files Used by HP Link Editor/XL . . . . . . . . . . . . . . . . . . . .

4-4

 

HP Link Editor/XL Commands . . . . . . . . . . . . . . . . . . . . .

4-6

 

Case Sensitivit y . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-7

 

Keyword and Positional Parameters . . . . . . . . . . . . . . . . . .

4-7

 

Using an Indirect File . . . . . . . . . . . . . . . . . . . . . . . . .

4-7

 

Starting and Ending HP Link Editor/XL

. . . . . . . . . . . . . . . .

4-8

 

Creating an Executable Program File . . . . . . . . . . . . . . . . . .

4-9

 

Comparison of Executable and Relocatable Libraries

. . . . . . . . . . .

4-11

 

Using a Relocatable Library . . . . . . . . . . . . . . . . . . . . . .

4-12

 

Using an Executable Library . . . . . . . . . . . . . . . . . . . . . .

4-13

5.

Optimizing a Program

 

 

 

 

 

Optimizer Levels . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-2

 

Use of MPE/iX Optimizer with Languages . . . . . . . . . . . . . . . .

5-3

 

Optimizer Assumptions . . . . . . . . . . . . . . . . . . . . . . . .

5-3

 

Coding for Performance and Optimization . . . . . . . . . . . . . . . .

5-4

 

Reduce Aliasing . . . . . . . . . . . . . . . . . . . . . . . . . .

5-4

 

Use Optimal Data T ypes . . . . . . . . . . . . . . . . . . . . . . .

5-4

 

Eliminate Common Subexpressions . . . . . . . . . . . . . . . . . .

5-5

 

Instructions Required for Operations on Simple Data T ypes . . . . . . .

5-6

 

Optimize Arrays . . . . . . . . . . . . . . . . . . . . . . . . . .

5-6

 

Reduce Procedure Calls . . . . . . . . . . . . . . . . . . . . . . .

5-7

 

Expand Small Procedures In-line . . . . . . . . . . . . . . . . . . .

5-7

 

Extract Procedure Calls from Loops . . . . . . . . . . . . . . . . . .

5-8

 

Avoid Non-native Alignment . . . . . . . . . . . . . . . . . . . . .

5-8

 

Optimize HP COBOL II/XL Data T ypes . . . . . . . . . . . . . . .

5-9

 

Optimize HP COBOL II/XL Data T ypes . . . . . . . . . . . . . . .

5-9

6.

File System

 

 

 

 

 

Records and Files in the File System

. . . . . . . . . . . . . . . . . .

6-2

 

Device Files . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-2

 

Disc Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-3

 

Disc File Storage . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-4

 

File Directory Structure . . . . . . . . . . . . . . . . . . . . . . . .

6-5

 

Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-5

 

NEW Files . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-7

 

TEMP Files . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-7

 

PERMANENT Files . . . . . . . . . . . . . . . . . . . . . . .

6-7

 

E￿ect of File Domain on Operations . . . . . . . . . . . . . . . . .

6-7

 

Changing Domains . . . . . . . . . . . . . . . . . . . . . . . .

6-8

 

File Speci￿cations . . . . . . . . . . . . . . . . . . . . . . . . . .

6-8

 

File Designators . . . . . . . . . . . . . . . . . . . . . . . . . .

6-9

 

Backreferencing a File . . . . . . . . . . . . . . . . . . . . . . .

6-10

 

File Classes . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-11

 

User-de￿ned Files . . . . . . . . . . . . . . . . . . . . . . . . . .

6-11

 

System Files . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-12

Contents-4