Unlock instant, AI-driven research and patent intelligence for your innovation.

A Dynamic Loading Method Based on dsp

A dynamic loading and file technology, applied in the computer field, can solve the problems that the efficiency of the GCC compiler cannot be compared with that of the CCS compiler, cannot take into account the running efficiency of the dynamic loading technology program, and does not support the dynamic loading technology, etc., to optimize the function call jump Transfer process, debugging and maintenance are convenient, and the effect of ensuring operating efficiency

Active Publication Date: 2019-03-22
北京翼辉信息技术有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But for DSP processors, the efficiency of the GCC compiler used by ucLinux cannot be compared with the CCS compiler
[0006] The OSEck operating system uses the CCS compiler, which fits very well with the DSP processor, and the program runs efficiently, but does not support dynamic loading technology; the ucLinux operating system uses the gcc compiler, which separates the application program from the operating system and supports dynamic loading technology , which is good for development and maintenance, but the running efficiency of the program is low
These two systems have their own characteristics, but neither can take into account the dynamic loading technology and the operating efficiency of the program

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
  • A Dynamic Loading Method Based on dsp
  • A Dynamic Loading Method Based on dsp
  • A Dynamic Loading Method Based on dsp

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] The technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0058] DSP C6X series processors use B14 to save the data segment start address of each module, and all access to global data in the program uses "B14+offset" addressing. Each loadable module has its own data, so when the program instruction flow switches between modules (such as: when a function is called across modules), the value of B14 needs to be saved and switched, otherwise it will cause data access errors.

[0059]The CCS compiler generates save and set B14 instructions for most functions (functions not defined using static) that can be called by external modules. In order to improve the efficiency of code execution, CCS compiler will not generate instructions for saving and setting B14 if it finds that the function does not use global variables or call functions other than the original file. The CCS compiler thinks that calling the...

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 DSP-based dynamic loading method. The method comprises ELF file preprocessing, ELF file reading and analysis, symbol exporting, symbol relocating and a running module, wherein the ELF file preprocessing comprises the three processes of performing ELF preprocessing, searching for symbol addresses in an assembling file and calculating out the position of an instruction corresponding to an address in an ELF file. The method for realizing DSP dynamic loading based on a CCS compiler solves the problem of B14 switching, improves the executive efficiency of relocatable codes, and is used for the relocatable codes compiled by the CCS compiler and a GCC compiler.

Description

technical field [0001] The present invention relates to computer technology, in particular to a dynamic loading method based on DSP. Background technique [0002] Dynamic loading (English: Dynamic Loading) is a method to separate the application program from the operating system, which enables the operating system to load the application program or dynamic library (or other binary objects) into memory at runtime, and retrieve the functions in the library. and variable addresses, execute these functions or access these variables, and unload the library from memory. [0003] CCS is an efficient C compiler and integrated development environment provided by TI. For DSP processors, programs compiled by CCS have high execution efficiency. GCC can also support DSP processors, but the execution efficiency of the program is very low. [0004] The OSEck operating system of Enea, Sweden is currently a popular DSP commercial real-time operating system, which provides relatively rich ...

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/445G06F8/41
CPCG06F8/4441G06F9/44521
Inventor 韩辉蒋太金
Owner 北京翼辉信息技术有限公司