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

Stack frame structure and function call method and system

A function call and function technology, applied in the field of memory allocation, can solve the problems of uncertain address space, reducing operating system computing efficiency, confusing stack bottom and stack frame concepts, etc., to achieve efficient operation, improve execution efficiency, and facilitate address calculation. effect of space

Active Publication Date: 2022-06-28
SHANGHAI ANLOGIC INFOTECH CO LTD
View PDF22 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The stack frame structure in the memory of the existing program is running downwards, that is, the bottom of the stack is on the top, and the top of the stack is on the bottom. It is easy to confuse the concept of the bottom of the stack and the stack frame
At the same time, the content stored in the existing stack frame structure is not detailed enough, and the address space allocated for each function is uncertain, which will reduce the computing efficiency of the operating system

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 frame structure and function call method and system
  • Stack frame structure and function call method and system
  • Stack frame structure and function call method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In the following description, numerous technical details are set forth in order to provide the reader with a better understanding of the present application. However, those of ordinary skill in the art can understand that even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized.

[0044] the term:

[0045] Register: A sequential logic circuit with storage function.

[0046] Stack frame: The space in the stack to store maintenance information required for a function call.

[0047] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0048] The first embodiment of the present application relates to a novel stack frame structure, which is used in the program execut...

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 application relates to the technical field of function calling during operating system program operation, and discloses a stack frame structure and a function calling method and system, which can quickly find the called function in the calling function and improve the operating efficiency of the operating system. The method includes: pre-allocating a preset byte address space for each function call to store its stack frame, the stack frame stores the object handle of the called function corresponding to the function call, and the object handle includes Object type, variable type offset value, stack offset value, stack type indicator, and main type indicator; execute the current function call, and the calling function uses the object handle to call the called function; execute the called function in the calling function The called function.

Description

technical field [0001] The present application relates to the technical field of function calls in the operation of operating system programs, and in particular, to the use of registers in the process of function calls and the memory allocation technology in stack frames. Background technique [0002] When a computer program is running, the computer will use the stack for dynamic storage of program data, where the stack frame refers to the space in the stack where function call information (such as function names, local variables, etc.) is stored. In order to quickly find the start and end position of the stack frame corresponding to each function, the address of the stack frame is stored in the register, so the register and the stack frame have become essential structures for program operation. For classic complex instruction set operating systems, the stack always grows downward. The register esp always points to the top of the stack, and the register ebp points to a fixe...

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/30G06F9/448
CPCG06F9/30134G06F9/449
Inventor 陈磊边立剑
Owner SHANGHAI ANLOGIC INFOTECH CO LTD