A method of assembling a source code module to form an object code module, said
source code module including one or more assembler directives, wherein the assembler
directives are used to generate relocation instructions in the object code module,
the method comprising: reading a plurality of compound relocation sequence definitions
stored in a memory, each compound relocation definition sequence comprising a compound
relocation indicator and a first sequence of relocation instructions; reading assembler
source code from said source code module, said source code generating an associated
sequence of relocation instructions for executing the directive; determining if
said associated sequence of relocations matches one of said stored sequence of
relocation instructions; and if a match of relocation sequences is determined,
inserting into said object code module a compound relocation including the compound
relocation indicator of said matched compound relocation sequence definition instruction
and said matched sequence.