The invention relates to an end-to-end cross-CPU (
central processing unit) architecture application program
adaptation method. The method comprises the following steps: acquiring data; carrying out loading and
feature extraction on the data; meanwhile, feature embedding is carried out according to the extracted features, and a BinCode-Transform model is constructed and trained; carrying out the semantic reduction of the embedded vector through a trained BinCode-
Transformer model, and carrying out the semantic reduction of the embedded vector through the trained BinCode-
Transformer model; and generating a file according to an embedded vector semantic reduction result. Due to the fact that semantic expression space of structures such as ELF or PE of binary files is small, the basic forms are operation codes, operands and keywords of file structures, the model trained through the method is small (the space is much smaller than that of
natural language complexity), the model can run on a CPU, and cost is saved. Meanwhile, binary files for different CPUs are directly converted through
artificial intelligence, operation is easy, the cost and threshold of a bottom layer
library and application multi-CPU
adaptation are reduced, the efficiency of localization
adaptation of different applications is greatly improved, and ecological chain development of localization credential products is promoted.