Method for generating compiler optimized code based on instruction cost
A compiler optimization and code generation technology, applied in the direction of instruments, memory systems, program control design, etc., can solve problems such as unsatisfactory results and no longer applicable code generation methods, and achieve low power consumption, improved quality, and time complexity low effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0036] In conjunction with the accompanying drawings, the present invention will be specifically described below.
[0037] A method for generating codes optimized by a compiler based on instruction cost in this specific embodiment includes the following steps:
[0038] (1) The intermediate language representation is formed through lexical analysis, grammar analysis and semantic analysis, and the intermediate language representation is based on the tree structure representation, that is, the intermediate representation tree;
[0039] (2) Generate the mapping relationship between all intermediate representation trees and the target representation, that is, rules, and configure the weight of the instruction cost; the instruction cost includes at least one of power consumption cost, time cost or space cost; the rule is Dynamic programming algorithm; the configuration of the weight of the instruction cost, first obtain the cost of the subtree, and then obtain the cost of the non-te...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
