摘要 |
<p>An executable program is prepared from a plurality of object code modules, at least one of the object code modules including section data specifying a plurality of code sequences each associated with relocation instructions identifying condition parameters. The executable program is prepared by reading the relocation instructions and determining for each condition parameter whether or not the condition specified for that parameter is satisfied and on the basis of that determination, selecting only one of the code sequences for inclusion in the executable program. A linker for preparing the executable program includes a stack, a relocation module for reading the relocations and carrying out the relocation operations, the relocation module being responsive to a value recalled from the stack to select one of the code sequences in dependence on the value, a section data module for holding section data which is subject to the relocation operations and a program forming a module for preparing executable programs. The linker may be controlled by a computer program in the form of one of the object code modules. Also disclosed is a method of assembling an object code module such that the assembled object code module includes the conditional code sequences. <IMAGE></p> |