The invention provides a
software transplantation method based on a processor. The
software transplantation method comprises the following steps: firstly, carrying out hardware
type selection and
instruction set compatibility analysis, analyzing a
software binary code by utilizing a specific
algorithm, counting and comparing instructions, and comprehensively evaluating hardware performance to determine
adaptive hardware. Then, software transportability is evaluated, and a software
dependency graph and a
transplantation feasibility prediction model are constructed; then, an
operating system is adapted, the loading sequence and parameters of a kernel module are dynamically adjusted, and setting of a basic input and output
system is optimized; in a software transplantation implementation stage, source codes are analyzed and converted based on an
abstract syntax tree,
open source software adopts incremental compiling cache, binary software analyzes and processes compatibility problems, and meanwhile, a one-key installation program is optimized. And finally, performing
server monomer testing and platform testing, monitoring performance, checking functions, analyzing faults and optimizing until the
system meets requirements. According to the method, many key problems in the process of
transplanting the software to the processor are effectively solved, and the success rate of
transplanting and the stability of the
system are improved.