The invention relates to an extension method based on the existing standard C language so that the existing C language specification can be applied to the program design of a polycaryon processor. In addition, the invention describes a method for correspondingly improving the existing C language compilation system, so that the existing C language compilation system can support the improved method and can also complete the compilation work of the polycaryon program. Source program is marked according to different processor nuclei and public storage regions through adding keywords of MCU and PUB, in addition, the source program is processed into source program files realizing the correspondence according to different processor nuclei and public storage regions under the processing of C language prepositive compilation program related by the invention, then, a traditional C language compilation system is invoked for compilation, finally, one or a plurality of binary program files are obtained, and system operation is carried out. The invention adopts a keyword adding method for extending the C language program on the basis of the existing C language system, realizes the compatibility of all C language functional definition modules in the extension C language, has simple application, and can be easily accepted. The compilation according to the traditional C language can be ensured, and the binary program files used for the polycaryon processor can be compiled. Under the condition that the prepositive compilation program of the invention is added, the compilation can be carried out on the polycaryon processor, executable files are generated, and the extension of the existing compilation software is convenient, and the invention can realize the compilation aiming at the polycaryon.