This invention belongs to the field of
software porting technology, and specifically relates to a
software intelligent
porting assistance method and
system based on the SW processor. It includes: constructing a SW processor-specific feature
knowledge base; performing
static analysis on the code of the
software to be ported and storing it in a vector
database to construct a
knowledge base vector index, thereby comparing code differences; performing code preprocessing based on the analysis and vector index results, as well as the SW architecture rules and x86 to SW architecture conversion rules in the specific feature
knowledge base; identifying the
software language and
system environment of the software to be ported and compiling it, generating
compilation error logs if compilation errors occur; retrieving errors from the compilation logs, and using the SW
large model to identify and call repair tools for code modification via function call functionality; this invention solves the problems of poor compatibility, low efficiency, and poor stability of existing tools adapted to this processor.