1. A method for securing a computer device against malicious code, comprising: executing a computer program on the computer device, the computer device having a central processing unit, which carries out instructions of the computer program, and wherein at least a portion of the computer program is executed by one or more tasks, each of the one or more tasks having task stacks associated therewith; configuring a Memory Management Unit (MMU) associated with the central processing unit with addresses, which are not executable for each of the task stacks associated with the one or more tasks; receiving an executed portion of the computer program from a task stack associated with one of the one or more tasks; calculating a next instruction address for the received executed portion of the computer program; comparing the next instruction address to the addresses, which are not executable for each of the task stacks associated with the one or more tasks; and if the next instruction address is an address, which is not executable, preventing the execution of machine code at the next instruction address of the computer program.