1. A method of detecting runtime errors relating to a stack of a computer program, said method comprising: during compilation of the computer program, inserting dummy variables between declarations in the stack; and during execution of the computer program, if at least one of the dummy variables is accessed, determining that a runtime memory access error has occurred.