This part of the chapter explains how to subdivide a large program into smaller parts that are easier to understand and maintain. It also explains how to divide these smaller parts such as one section or element to contain executable instructions, and another to contain data constants and work areas.
You should consider two different subdivisions when writing an assembler language program:
You can divide a program into two or more source modules. Each source module is assembled into a separate object module. The object modules can then be combined to form an executable program.
You can also divide a source module into two or more sections, or (in the program object model) into sections containing multiple classes. Each section is assembled as part of the same object module. By writing the correct linker control statements, you can select a complete object module or any individual section of the object module to be linked and later loaded as an executable program.
To communicate between two or more source modules, you must link them together with applicable symbolic references.
To communicate between two or more sections or elements within a source module, you must correctly establish the addressability of each to the others.
[ Top of Page | Previous Page | Next Page | Contents | Index ]