1. A method for the compression of the code of a program in intermediate object code, this method being usable for the compacting of programs in executable intermediate object code in an embedded system with scarce hardware resources, said method consisting of identifying the accesses to objects handled by the program, by semantic analysis of the object code of the program, and of using this information to replace, in the program code, the instruction groups accessing these objects by specialised instructions allowing direct access to the object concerned, and of reducing the size of the said code by using, for this replacement, specialised instructions of a smaller size than that of the said instruction groups and/or by eliminating from the said code instructions which have become useless as a result of introducing the said specialised instructions.