Keil C51-based software source code and target code coverage rate analysis method and system
An analysis method and object code technology, applied in the field of KeilC51-based software source code and object code coverage analysis, can solve problems such as hidden dangers and difficulties, and achieve the effect of avoiding hidden dangers
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] refer to Figure 1-2 As shown, the present embodiment provides a kind of Keil C51-based software source code and object code coverage analysis method, it is characterized in that, method comprises:
[0033] Step S1: Build a software executable environment based on the Keil platform, and load information files including software source code, object code and M51 files.
[0034] In this embodiment, based on the Keil platform, further, the Keil platform is a microcontroller software development platform developed by Keil, a well-known software company, and is usually used for ARM core single-chip microcomputer development tools. The Keil platform provides a complete development solution including C compiler, macro assembly, linker, library management and a powerful emulation debugger, and these functions are combined through an integrated development environment (uVision). Therefore, building a software executable environment based on the Keil platform can be understood as...
Embodiment 2
[0053] refer to image 3 As shown, this embodiment provides a Keil C51-based software source code and object code coverage analysis system, using the analysis method of Embodiment 1. The system in this embodiment includes:
[0054] The loading unit 10 is used to build a software executable environment based on the Keil platform, and load information files including software source code, object code and M51 files.
[0055] The parsing unit 20 is used for parsing the loaded information files including software source code, object code and M51 file, and generating a correspondence relation file between software source code and object code PC addresses.
[0056] Execute use case unit 30, be used to utilize the software executable environment of Keil platform to carry out test case, and generate the object code execution result file of current use case by Keil order; And when executing a plurality of test cases, generate a plurality of object code execution result files .
[005...
Embodiment 3
[0060] This embodiment provides a computer device, including a memory and a processor, where computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor is made to perform the following steps. Step S1: Build a software executable environment based on the Keil platform, and load information files including software source code, object code and M51 files. Step S2: Analyzing the loaded information files including the software source code, object code and M51 file, and generating a correspondence relationship file relating the PC addresses of the software source code and the object code. Step S3: Execute the test case using the software executable environment of the Keil platform, and generate the object code execution result file of the current use case through the Keil command; and generate multiple object code execution result files when executing multiple test cases. Step S4: Merge and summar...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


