The invention belongs to the technical field of
software engineering, and particularly relates to a code digital twinning construction method based on a
large model. According to the method, domain
concept extraction,
software functional characteristic
knowledge extraction, high-
level design decision analysis, code units and structural relations thereof are comprehensively utilized to construct a code digital twinborn model which is co-constructed, shared and synchronously evolved with codes and is used for conceptualized representation of
software domain knowledge; the method comprises the following specific steps: knowledge representation design: designing different representation
modes for various knowledge; product-oriented skeleton knowledge is extracted; explanatory
knowledge extraction with the design principle as the center; product-knowledge mapping construction is carried out; and joint evolution and incremental updating are carried out, a construction process and software product evolution are in
butt joint, and synchronous evolution of the
knowledge base and the software product is ensured. According to the method, developers can be helped to understand field background knowledge, functional characteristics and
design knowledge contained in complex software codes, so that
software development and maintenance tasks are better completed, and intelligent development and maintenance support is provided.