1. A method for controlling the execution of at least one program in an electronic circuit, wherein: at least one area of volatile memory of the circuit is, prior to the execution of the program to be controlled, filled with first instructions resulting in an exception processing; the program contains instructions for replacing all or part of the first instructions with second valid instructions; and said area is called for execution of all or part of the instructions that it contains at the end of the execution of the instruction program.