1. A method of optimising computer program code, the method comprising: identifying at least one set of candidate instructions within the computer program code, each candidate instruction comprising an instruction for writing a constant value to memory and the at least one set comprising a plurality of candidate instructions; computing an aggregate constant value for the at least one set of candidate instructions; and replacing the at least one set of candidate instructions with at least one instruction for writing the aggregate constant value to memory.