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

Stack overflow protection method in operation for embedded system

An embedded system, stack overflow technology, applied in the direction of memory system, program control design, instrument, etc., can solve the problems of poor effectiveness of time application, multiple data compression time and data decompression time, etc.

Inactive Publication Date: 2006-10-25
ZHEJIANG UNIV
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The purpose of memory compression is to store more information in a limited space, but this method takes too much data compression time and data decompression time, so the practical effect is very poor in time application

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
  • Stack overflow protection method in operation for embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The content of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0025] When implementing the stack overflow protection method when the embedded system is running, the specific method is as follows:

[0026] In the first step, the compiler analyzes and scans the original program to generate a program function call table:

[0027] The core of this method is to insert runtime detection code and program stack processing code into the application program code. But different insertion methods are required for different functions. If it is an ordinary single function call, normal insertion is fine. But for nested functions, the situation is different, which is much more complicated than simple function calls. The code below shows two different situations:

[0028] void fun() void fun1()

[0029] {{

[0030] / / There is no internal function call fun2(); / / Call functio...

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

Said method includes 1, compiler analysing scanning original program, generating program function call list for optimizing unreel function; 2, compiler detecting code and stack use state in function inserting operation, and feeding back information for processing code in inserting operation; 3, compiler processing code in functional inserting stack operation; 4, adopting functional unreel technology optimizing inserted code in function. The present invention does not insert code in nested function, greatly reduces code quantity, capable of dynamically detecting warehouse space in application program operation and doing relevant processing, excluding overflow possibility to ensure system safe operation.

Description

technical field [0001] The invention relates to the technical field of embedded system program compilation, in particular to a stack overflow protection method during runtime of an embedded system. Background technique [0002] In the last 20 to 30 years, the embedded field has made great progress, and the development of many industries has been inseparable from the participation of the embedded field, such as: automobiles, aviation, heavy industry, robots, smart housekeepers, etc. The needs of these industrial embedded fields have promoted the development of embedded systems, and at the same time put forward higher and higher requirements. [0003] The current embedded systems are mainly divided into two categories: high-end embedded systems and low-end embedded systems. The so-called high-end embedded systems refer to those systems with high processing speed and multiple applications, and these systems have advanced hardware equipment. The low-end refers to the average sy...

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 Applications(China)
IPC IPC(8): G06F9/45
Inventor 陈天洲沙峰谢斌赵懿
Owner ZHEJIANG UNIV
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