Simulation device for obtaining applied programe code execution-ratio and method therefor

A technology of program code and coverage rate, applied in the field of simulation system, can solve the problems of resource consumption, inconvenient use, error of statistical results, etc., and achieve the effect of accurate statistical results

Inactive Publication Date: 2009-01-28
凌阳成芯科技(成都)有限公司
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 2. Since the code or special instructions are inserted into the file, the execution of the program is affected to a certain extent. At the same time, the execution of the special code itself requires execution time and consumes a certain amount of resources, so there is a difference between the program after piling and the final target program , there are certain errors in the statistical results, and even the results of the execution process will produce errors
[0008] 3. There is a problem of piling density, that is, where and how many pilings to drive. If there are too few pilings, it will not be able to count effectively, and if there are too many pilings, it will seriously affect the execution efficiency and the error of statistical results.
[0009] 4. Code written in assembly language may not be handled well
Although this technology does not need piling to insert code when performing code analysis, and will not affect the speed of program execution, but because it requires the support of certain hardware resources, and can only perform performance analysis on part of the code at a time, therefore, use Inconvenient and requires additional circuit cost

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Simulation device for obtaining applied programe code execution-ratio and method therefor
  • Simulation device for obtaining applied programe code execution-ratio and method therefor
  • Simulation device for obtaining applied programe code execution-ratio and method therefor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] A simulator is a functional simulator that uses computer resources to simulate any computer device controlled by an MPU / MCU (main processing unit). It is usually provided to MPU / MCU users as a development tool for electronic products controlled by MPU / MCU.

[0064] Such as figure 1 As shown, it is a simulation device 1 for obtaining application code coverage, function execution coverage, code execution efficiency, and function execution efficiency according to an embodiment of the present invention, including a system simulation module 11, a peripheral function simulation module 12, a debugging An information acquisition module 13, and a code statistics module 14.

[0065] Wherein, the system simulation module 11 realizes the simulation of the CPU and other functional modules in the MPU;

[0066] The peripheral function simulation module 12 realizes the simulation of some peripheral functions controlled by the MPU;

[0067] Debugging (Debug) information obtaining mod...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a simulating device and method for obtaining executing ratio of application program codes, comprising: system simulation module to simulate CPU and various functional modules, and provide parameter information of executing code instructions according to the running condition of the application program codes; peripheral functional simulation module connected with the system simulation module to simulate functions of the peripheral controlled by the system simulation module; debugging information obtaining module to obtain debugging information generated by compiler after compiling operation and provide corresponding relation between each row of codes of the application program and program pointer; code counting module to calculate the executing ratio of the application program codes according to the above parameter information and the above corresponding relation.

Description

technical field [0001] The present invention relates to a simulation (Simulation) system and method, in particular to a simulation device and method for obtaining application code coverage, function execution coverage, code execution efficiency and function execution efficiency. Background technique [0002] Code coverage (Code Coverage) is an important index used to measure the execution efficiency of application program code, therefore, the measurement and calculation of code coverage is also an important software technology. [0003] At present, the more popular calculation technology of code coverage is to insert special codes or instructions in the application program when the user program is compiled, called stubs, and build a database according to the inserted position and other information. When the program runs to the stub At the point, special instructions are executed to generate specific actions, such as entering an exception (exception) handler, or writing speci...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455G06F9/45
Inventor 刘凯杨有成
Owner 凌阳成芯科技(成都)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products