The invention concerns a method of partitioning a computer program situated on a first processing site, the program containing subprograms able to transfer information, characterised in that it includes a step of automatic determination, for at least one of said subprograms, of data representing the transfer of at least part of the information processed by said subprogram, and a step of allocating said subprogram to a second processing site according to said data.