Capacity-limited program stack space depth tracing method
A technology with limited space depth and capacity, applied in the computer field, can solve the problems of insufficient stack space, troublesome, inability to obtain the stack space depth, etc., and achieve good program optimization results.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0016] Embodiment: a method for tracing the depth of program stack space with limited capacity, comprising the following steps:
[0017] S1. The linker obtains all the function symbol information, establishes the corresponding function information data structure, and forms a function call relationship flowchart between each function through a linked list;
[0018] S2. Install the name of the function, the PC value range, and the depth information of its own stack space into the function information structure established in S1, wherein the depth of its own stack space is retrieved according to the PC value range of each function by analyzing the eh_frame segment corresponding to the function. Locate the corresponding FDE record (Frame Description Entry) to obtain the stack space occupied by each function itself;
[0019] S3. Traverse all the relocation information of the program, determine the function call relationship according to the relocation information, update the linked...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

