Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Symbol locating method of embedded system

A technology of symbols and symbol tables, applied in the field of symbol positioning of embedded systems, to achieve the effect of a wide range of applications

Active Publication Date: 2009-07-08
SHANGHAI MUNICIPAL ELECTRIC POWER CO
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This type of method does provide a more effective means for fault location of embedded software without debugging information, but fault location often needs to obtain information such as classes, structures, function call stacks, and function local variables in order to be more accurate. To locate the fault, the above method is powerless to obtain this information

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
  • Symbol locating method of embedded system
  • Symbol locating method of embedded system
  • Symbol locating method of embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Embodiment 1, implement under pSOS embedded real-time operating system environment, at first write test example code, as figure 2 As shown, design a simple test class MyTestClass, which has a private integer variable i, a constructor and a destructor, and a public member function SetI used to set the variable i; define a global object instance g_mytest, Call the test function test in the main function, and the value of the private variable i is set to 0xfeedfeed; then use the fault diagnosis tool developed based on the technical solution of the present invention to check the data of g_mytest, check the correctness of the global object g_mytest data, and can check The function stack of the root task checks the correctness of functions, local variables, and task call stacks. The specific implementation steps are as follows, see figure 1 :

[0028] 101: In the pSOS integrated development environment, use the diab compiler to compile the debug version and the release vers...

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

A symbol location method for an embedded system, comprising: (1) generating a debug version of a symbol table information file and a symbol type information file, and a release version of a symbol table information file (2) generating a debug version and a symbol type information file with a symbol name as a keyword The symbol type information database of the released version; (3) Query the symbol type information database according to the symbol name, decompose the type structure, and obtain the physical position of the symbol in the target machine. The invention is suitable for realizing symbol positioning on the target machine side for various embedded software versions, and provides flexible selection space for the release of embedded application systems. The invention can not only query and modify global variables, but also can query and modify information such as structures, classes, functions, local variables, etc., thereby providing abundant fault location auxiliary methods for embedded application systems. The present invention is not limited by any compiler, debugger, or operating system.

Description

technical field [0001] The invention relates to an embedded system, in particular to symbol positioning of the embedded system. Background technique [0002] The embedded system is application-centric, based on computer technology, and the software and hardware can be tailored. It is suitable for special-purpose computer systems that have strict requirements on function, reliability, cost, volume, and power consumption. It is generally composed of four major parts: embedded microprocessor, peripheral hardware devices, embedded operating system and embedded application program, and is used to realize functions such as control, monitoring or management of other devices. [0003] Embedded system development is different from general-purpose desktop-based program development. Since desktop computers have abundant computing, storage and peripheral resources, program development, debugging, and testing are all performed on the same computer; but for embedded systems, since the co...

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): G06F11/36
Inventor 李巍黄海伦李小伟
Owner SHANGHAI MUNICIPAL ELECTRIC POWER CO
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products