Supercharge Your Innovation With Domain-Expert AI Agents!

Method for creating embedded program operation symbol table

A program running and symbol table technology, applied in the direction of program control devices, etc., can solve the problems of rigid format, discarding, and no running symbol table, etc., and achieve the effects of strong scalability, rich symbol information, and convenient search

Active Publication Date: 2009-01-07
ZTE CORP
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In a word, the prior art has the following disadvantages: the running symbol table information of embedded software is incomplete, the format is rigid, and it is not easy to expand and maintain; is discarded by the loader)

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
  • Method for creating embedded program operation symbol table

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Hereinafter, the method for generating the embedded program running symbol table of the present invention will be described in detail with reference to the accompanying drawings.

[0020] Taking the application of the present invention on the embedded operating system as an example, the present invention comprises the following steps:

[0021] Step 100: compile according to the original compilation rules of the embedded software, and generate the target file;

[0022] For example, after compiling and compressing all source codes of an embedded operating system, three target files are generated: os_head.o, os_kernel.a, and os_other.a.

[0023] Step 200: Construct an empty symbol table source file fake_symbol_table.c, and compile it into an object file fake_symbol_table.o.

[0024] Wherein, in step 200, since the embedded operating system needs to know the segment where the name, address, type, size and symbol of each symbol are located, each symbol item in the symbol ta...

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 provides a method for generating an operation symbol table for an embedded program, including the following steps: a source file of a blank symbol table is created and is compiled into an object file of the blank symbol table; a pre-compiled object file in an embedded operating system and the object file of the blank symbol table are linked for the first time, thus obtaining a first-link object file; the first-link object file is analyzed and symbol information is extracted from the first-link object file, thus generating a source file of the symbol table; the source file of the symbol table is transferred to an object file of the operation symbol table; the pre-compiled object file in the embedded operating system and the object file of the operation symbol table are linked for the second time, thus generating the embedded program which comprises the operation symbol table. The method can generate the operation symbol table dynamically in compiling link flow of embedded software and has the advantages of convenient searching for the symbol table and strong expansibility.

Description

technical field [0001] The invention relates to the field of embedded software, in particular to a method for generating an embedded program running symbol table. Background technique [0002] The program running symbol table is one of the powerful tools during the running of the software program. It records the corresponding relationship between the symbol names and the symbol addresses of various symbols (function names, variable names, module names, etc.) in the software program. , during the running process of the software program, the acquisition of symbol information, the location of symbols, and the corresponding search of symbol names and symbol addresses can be carried out, which is convenient for program debugging, fault location and function expansion. [0003] Existing embedded software, such as embedded operating systems, embedded applications, etc., has simple functions and small scale, and there is no support for program running symbol tables at runtime. Howev...

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
IPC IPC(8): G06F9/44
Inventor 王亮钟卫东张华强蒋鲲鹏
Owner ZTE CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More