The invention discloses a method for accelerating program cross-instruction-set architecture
simulation execution, which comprises the following steps of: S1, generating an independent host side
intermediate code file in a compiling stage; meanwhile, generating a stub function which is the same as the function signature in an original translation unit; s2, in a linking stage, according to a linking process of an original program and based on the host side target file, generating host code modules in one-to-one correspondence with original linking result files, and generating module-
level data for each host
code module; s3, summarizing all the host code modules to form a unified host program
library; s4, based on the host program
library, generating stub modules which are in one-to-one correspondence with the object link results and work on the object side; and S5, forwarding the object side function call to the host side
equivalent function for execution, and returning to the object side for continuous execution after the execution is finished. According to the method, low-efficiency instruction-level
binary translation is bypassed, and the execution performance of cross-instruction-set architecture
simulation is fundamentally improved.