Method for avoiding a return oriented programming attempt on a computer, the method comprising: - Initial processing of a set of instructions, wherein the set of instructions comprises machine code, and wherein the set of instructions comprises a first kind of instructions comprising program instructions and a second kind of instructions comprising a return address of the respective first kind of instructions, and wherein the initial processing of the set of instructions comprises: - Storing at least a part of each first kind of instruction within the set of instructions into a first computer memory, - Storing at least a part of each second kind of instruction within the set of instructions into a second computer memory, the second computer memory beeing a dedicated memory, for only storing return addresses, - Storing a storing reference into the first computer memory, for each stored second kind of instruction within the second computer memory, wherein each respective storing reference indicates a storing-address of each respective stored second kind of instruction within the second computer memory, and - Locking the second computer memory, for disallowing a write-access to the second computer memory, after a termination of the initial processing of the set of instructions, wherein the locking of the second computer memory can only be lifted by interrupting an electrical power-supply to the second computer memory for a certain period of time, wherein after this certain period of time without electrical power-supply, the at least part of each second kind of instruction stored within the second computer memory is erased. - Initial processing of a set of instructions, wherein the set of instructions comprises machine code, and wherein the set of instructions comprises a first kind of instructions comprising program instructions and a second kind of instructions comprising a return address of the respective first kind of instructions, and wherein the initial processing of the set of instructions comprises: - Storing at least a part of each first kind of instruction within the set of instructions into a first computer memory, - Storing at least a part of each second kind of instruction within the set of instructions into a second computer memory, the second computer memory beeing a dedicated memory, for only storing return addresses, - Storing a storing reference into the first computer memory, for each stored second kind of instruction within the second computer memory, wherein each respective storing reference indicates a storing-address of each respective stored second kind of instruction within the second computer memory, and - Locking the second computer memory, for disallowing a write-access to the second computer memory, after a termination of the initial processing of the set of instructions, wherein the locking of the second computer memory can only be lifted by interrupting an electrical power-supply to the second computer memory for a certain period of time, wherein after this certain period of time without electrical power-supply, the at least part of each second kind of instruction stored within the second computer memory is erased. - Storing at least a part of each first kind of instruction within the set of instructions into a first computer memory, - Storing at least a part of each second kind of instruction within the set of instructions into a second computer memory, the second computer memory beeing a dedicated memory, for only storing return addresses, - Storing a storing reference into the first computer memory, for each stored second kind of instruction within the second computer memory, wherein each respective storing reference indicates a storing-address of each respective stored second kind of instruction within the second computer memory, and - Locking the second computer memory, for disallowing a write-access to the second computer memory, after a termination of the initial processing of the set of instructions, wherein the locking of the second computer memory can only be lifted by interrupting an electrical power-supply to the second computer memory for a certain period of time, wherein after this certain period of time without electrical power-supply, the at least part of each second kind of instruction stored within the second computer memory is erased.