Allocation method and device of static storage
A technology of static storage and allocation method, applied in the direction of memory address/allocation/relocation, program control design, instrument, etc., can solve the problem of inability to deal with function global variables and so on
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0081] In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.
[0082] The invention is an optimization method and device suitable for static storage allocation, especially suitable for static storage allocation in the field of embedded processors with limited storage resources. Through a series of data dependencies between functions, starting from the overall situation, optimize the static allocation of static variables, global variables, etc., so as to reuse storage space as much as possible and reduce the demand for storage space.
[0083] For example, in the following example, v1 is only used by functions f1 and f2, v2 is only used by functions f3 and f4, and the four functions are called in sequence. At this time, v1 and v2 can also reuse the same storage space.
[0084] char v1[100];
[0085...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com