CN112947994A - Credit adaptive code migration workload evaluation system and method - Google Patents
Credit adaptive code migration workload evaluation system and method Download PDFInfo
- Publication number
- CN112947994A CN112947994A CN202110255062.7A CN202110255062A CN112947994A CN 112947994 A CN112947994 A CN 112947994A CN 202110255062 A CN202110255062 A CN 202110255062A CN 112947994 A CN112947994 A CN 112947994A
- Authority
- CN
- China
- Prior art keywords
- workload
- code
- migration
- file
- library
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/37—Compiler construction; Parser generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a system and a method for evaluating credit-creation adaptive code migration workload, and relates to the technical field of information. The system comprises a compiler checking unit, a source code scanning unit, a dependency library checking unit, a software package scanning unit and a workload evaluation unit; by calculating the number of lines of the dependent library file, the source file and the code to be migrated and analyzing the grade of workload, the migration workload evaluation is formed, the workload analysis is provided for code migration under the trust creation adaptive heterogeneous base, and the migration cost is determined; the migration of assembly codes, source codes, dependency libraries and the like is realized, the differentiation recognition is realized, the required workload is calculated according to the recognized result, and the standardization of the migration workload is realized.
Description
Technical Field
The invention relates to the technical field of information, in particular to a system and a method for evaluating credit-creation adaptive code migration workload.
Background
And (3) information creation: for years, domestic IT bottom level standards, architectures, ecology and the like are mostly established by foreign IT headquarters, and events threatening domestic information security from the world continuously occur. China urgently needs to establish an IT (information technology) underlying architecture and standard based on China to form an own open ecology, which is the core of the information technology application and innovation industry. Therefore, the China IT industry is expected to meet the national replacement tide from basic hardware-basic software-industry application software.
X86 architecture: the X86 architecture (The X86 architecture) is a set of computer language instructions executed by a microprocessor, referred to as a standard number abbreviation for a general computer column, which also identifies a general set of computer instructions.
An ARM framework: the ARM architecture, formerly known as the Advanced reduced instruction set Machine (Advanced RISC Machine), was earlier known as the Acorn RISC Machine, is a 32-bit Reduced Instruction Set (RISC) processor architecture.
At present, the CPU market in China mainly takes an X86 architecture as a main factor, two companies, namely Inter and AMD, basically monopolize the X86 market share in China, and the two companies are American enterprises and have potential safety hazards. And the domestic CPU mainly based on Feiteng and spread-over uses an ARM architecture instruction set self-research chip to realize autonomous control. The ARM architecture adopts a reduced instruction set, and is not directly compatible with a system under the original X86 architecture, so that the system migration work is generated. Along with the construction of the 'two planes' of the national letter creation, the number of computing platforms based on the ARM base is increased, the work of system migration is increased rapidly, and a letter creation adaptive code migration workload evaluation method needs to be designed, so that the method is suitable for research and development personnel to quickly identify the workload required by system migration, and is convenient for personnel allocation and project quotation.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a system and a method for evaluating the workload of credit-creation adaptive code migration, the workload related to the migration can be accurately analyzed by evaluating the workload by the method, and the technical scheme adopted by the invention is as follows:
a credit creation adapting code migration workload evaluation system comprises a compiler checking unit, a source code scanning unit, a dependency library checking unit, a software package scanning unit and a workload evaluation unit;
the compiler checking unit retrieves the type and version of the compiler, determines the difference between the X86 platform and the ARM platform, wherein the difference comprises the difference between a compiler macro, a compiler option, a function list and an instruction set, and transmits the difference of the compiler to the source code scanning unit to carry out source code scanning.
The source code scanning unit determines source codes and source files needing to be transplanted, wherein the source files comprise software construction configuration files and X86 assembly codes;
the dependency library checking unit checks an SO file name list in a software construction project file, compares an SO dependency library white list to obtain detailed information of an SO dependency library to be transplanted, and specifically comprises a jar package, an SO library and an executable program of X86;
the software package scanning unit checks SO library files in a software package provided by a user;
the workload evaluation unit obtains the number of lines of the dependent library file, the source file and the code to be migrated according to the scanning result of each unit module, and analyzes the workload grade; the workload grades comprise a first grade to a third grade, and a first grade migrator is used as assembly code modification; modifying the secondary migration work as a source code; the third-level migration work is dependent on library file replacement, different workload accounting standards are set according to different workload grades, and finally migration workload evaluation is formed through calculation;
on the other hand, the method for evaluating the credit creation adaption code migration workload is realized based on the credit creation adaption code migration workload evaluation system, and specifically comprises the following steps:
step 1: checking the compiler to identify its type and version;
step 2: code scanning is carried out, and a source code and a source file which need to be transplanted are determined;
and step 3: checking an SO file name list, and comparing a white list of the SO dependent library to obtain detailed information of the SO dependent library to be transplanted;
and 4, step 4: checking an SO library file in a software package provided by a user;
and 5: and obtaining the number of the lines of the dependent library file, the source file and the code to be migrated according to the steps, and analyzing the grade of the workload to form the assessment of the migration workload.
Adopt the produced beneficial effect of above-mentioned technical scheme to lie in:
the invention provides a system and a method for evaluating the workload of credit-creation adaptive code migration, which are used for providing workload analysis for code migration under a credit-creation adaptive heterogeneous base and determining migration cost; the differential recognition of the migration of assembly codes, source codes, dependency libraries and the like is realized, the required workload is calculated according to the recognized result, and the standardization of the migration workload is realized.
Drawings
Fig. 1 is a diagram of a workload estimation system according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
A credit creation adapting code migration workload evaluation system is shown in FIG. 1 and comprises a compiler checking unit, a source code scanning unit, a dependency library checking unit, a software package scanning unit and a workload evaluation unit;
the compiler checking unit retrieves the type and version of the compiler, determines the difference between the X86 platform and the ARM platform, wherein the difference comprises the difference between a compiler macro, a compiler option, a function list and an instruction set, and transmits the difference of the compiler to the source code scanning unit to carry out source code scanning.
The source code scanning unit determines source codes and source files needing to be transplanted, wherein the source files comprise software construction configuration files and X86 assembly codes;
the dependency library checking unit checks an SO file name list in a software construction project file, compares an SO dependency library white list to obtain detailed information of an SO dependency library to be transplanted, and specifically comprises a jar package, an SO library and an executable program of X86;
the software package scanning unit checks SO library files in a software package provided by a user;
the workload evaluation unit obtains the number of lines of the dependent library file, the source file and the code to be migrated according to the scanning result of each unit module, and analyzes the workload grade; the workload grades comprise a first grade to a third grade, and a first grade migrator is used as assembly code modification; modifying the secondary migration work as a source code; the third-level migration work is dependent on library file replacement, different workload accounting standards are set according to different workload grades, and finally migration workload evaluation is formed through calculation;
on the other hand, the method for evaluating the credit creation adaption code migration workload is realized based on the credit creation adaption code migration workload evaluation system, and specifically comprises the following steps:
step 1: checking the compiler to identify its type and version;
step 2: code scanning is carried out, and a source code and a source file which need to be transplanted are determined;
and step 3: checking an SO file name list, and comparing a white list of the SO dependent library to obtain detailed information of the SO dependent library to be transplanted;
and 4, step 4: checking an SO library file in a software package provided by a user;
and 5: and obtaining the number of the lines of the dependent library file, the source file and the code to be migrated according to the steps, and analyzing the grade of the workload to form the assessment of the migration workload.
In this embodiment, migration workload is obtained according to the work content at different levels as follows:
rank of | Work content | Formula for checking workload |
First stage | Assembly code modification | 300 lines of assembly code ≈ 1 month |
Second stage | C/C + +/JAVA/Python and other source code modifications | 600 source codes are approximately equal to 1 month |
Three-stage | Dependent library file replacement, etc | 1 dependent library file is approximately equal to 0.1 month |
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also covers other embodiments formed by any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.
Claims (3)
1. A credit creation adapting code migration workload evaluation system is characterized by comprising a compiler check unit, a source code scanning unit, a dependency library check unit, a software package scanning unit and a workload evaluation unit;
the compiler checking unit retrieves the type and version of the compiler, determines the difference between an X86 platform and an ARM platform, wherein the difference comprises the difference between a compiler macro, a compiler option, a function list and an instruction set, and transmits the difference of the compiler to a source code scanning unit to carry out source code scanning;
the source code scanning unit determines a source code and a source file which need to be transplanted; the source file comprises a software build configuration file, X86 assembly code;
the dependency library checking unit checks an SO file name list in a software construction project file, compares an SO dependency library white list to obtain detailed information of an SO dependency library to be transplanted, and specifically comprises a jar package, an SO library and an executable program of X86;
the software package scanning unit checks SO library files in a software package provided by a user;
the workload evaluation unit obtains the number of lines of the dependent library file, the source file and the code to be migrated according to the scanning result of each unit module, and analyzes the workload grade; and setting different workload accounting standards according to different workload grades, and finally forming migration workload assessment through calculation.
2. The trust creation adapted code migration workload evaluation system of claim 1, wherein the workload level comprises one level to three levels, the one level migrator being modified as assembly code; modifying the secondary migration work as a source code; the three-level migration work is dependent library file replacement.
3. A trust adaptive code migration workload assessment method is realized based on the trust adaptive code migration workload assessment system of claim 1, and specifically comprises the following steps:
step 1: checking the compiler to identify its type and version;
step 2: code scanning is carried out, and a source code and a source file which need to be transplanted are determined;
and step 3: checking an SO file name list, and comparing a white list of the SO dependent library to obtain detailed information of the SO dependent library to be transplanted;
and 4, step 4: checking an SO library file in a software package provided by a user;
and 5: and obtaining the number of the lines of the dependent library file, the source file and the code to be migrated according to the steps, and analyzing the grade of the workload to form the assessment of the migration workload.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110255062.7A CN112947994A (en) | 2021-03-09 | 2021-03-09 | Credit adaptive code migration workload evaluation system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110255062.7A CN112947994A (en) | 2021-03-09 | 2021-03-09 | Credit adaptive code migration workload evaluation system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112947994A true CN112947994A (en) | 2021-06-11 |
Family
ID=76229009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110255062.7A Pending CN112947994A (en) | 2021-03-09 | 2021-03-09 | Credit adaptive code migration workload evaluation system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112947994A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102364442A (en) * | 2011-06-24 | 2012-02-29 | 浙大网新科技股份有限公司 | Method for transplanting Wine from x86 to advanced risc machine (ARM) platform |
CN112269774A (en) * | 2020-10-16 | 2021-01-26 | 苏州浪潮智能科技有限公司 | Heterogeneous database application code adaptation evaluation device and method and storage medium |
-
2021
- 2021-03-09 CN CN202110255062.7A patent/CN112947994A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102364442A (en) * | 2011-06-24 | 2012-02-29 | 浙大网新科技股份有限公司 | Method for transplanting Wine from x86 to advanced risc machine (ARM) platform |
CN112269774A (en) * | 2020-10-16 | 2021-01-26 | 苏州浪潮智能科技有限公司 | Heterogeneous database application code adaptation evaluation device and method and storage medium |
Non-Patent Citations (4)
Title |
---|
华为技术有限公司: "华为鲲鹏代码迁移工具用户指南", 《HTTPS://PORTAL-WWW-SOFTWARE.OBS.CN-NORTH-1.MYHUAWEICLOUD.COM/工具链/TAISHAN%20SOLUTION%202.1.T3%2020191231/华为鲲鹏代码迁移工具%20用户指南%2003.PDF》 * |
华为技术有限公司: "华为鲲鹏分析扫描工具用户指南", 《HTTPS://PORTAL-WWW-SOFTWARE.OBS.CN-NORTH-1.MYHUAWEICLOUD.COM/工具链/TAISHAN%20SOLUTION%202.1.T3%2020191231/华为鲲鹏分析扫描工具%20用户指南%2003.PDF》 * |
孙微微等: "基于ARM架构鲲鹏系统的操作系统实验教学设计", 《现代计算机》 * |
王业流等: "嵌入式软件可移植性设计技术", 《机车电传动》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Wang et al. | Mapping parallelism to multi-cores: a machine learning based approach | |
Cole | Emerging trends in building environmental assessment methods | |
Kataoka et al. | A quantitative evaluation of maintainability enhancement by refactoring | |
US9122540B2 (en) | Transformation of computer programs and eliminating errors | |
CN111104335B (en) | C language defect detection method and device based on multi-level analysis | |
US11816017B2 (en) | Systems and methods for evaluating code contributions by software developers | |
An et al. | An empirical study of crash-inducing commits in mozilla firefox | |
CN110569197A (en) | Credible evidence analysis and measurement method for software credibility evaluation | |
US20080028383A1 (en) | Architecture Cloning For Power PC Processors | |
Wang et al. | Defecthunter: A novel llm-driven boosted-conformer-based code vulnerability detection mechanism | |
CN112947994A (en) | Credit adaptive code migration workload evaluation system and method | |
CN102681932A (en) | Method for detecting processing correctness of software on abnormal input | |
CN112948828A (en) | Binary program malicious code detection method, terminal device and storage medium | |
Tao et al. | Vulnerability detection through cross-modal feature enhancement and fusion | |
Jain et al. | Sklee: A dynamic symbolic analysis tool for ethereum smart contracts (tool paper) | |
US20230025441A1 (en) | Ranking tests based on code change and coverage | |
Plöger et al. | A Usability Evaluation of AFL and libFuzzer with CS Students | |
Healy et al. | A general approach for tight timing predictions of non-rectangular loops | |
CN102279793A (en) | Method for measuring dependability of component based on entropy | |
Harrison et al. | The role of programming language in estimating software development costs | |
Yao et al. | An empirical study to evaluate structural similarity for source code translation | |
CN116431474B (en) | Security configuration item constraint extraction method of program source code based on static analysis | |
Kirner et al. | Optimizing compilation with preservation of structural code coverage metrics to support software testing | |
CN109815131A (en) | The static check system and method for rail transportation vehicle-mounted half formalization demand of software | |
Dehmer et al. | On efficient network similarity measures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210611 |
|
WD01 | Invention patent application deemed withdrawn after publication |