Instruction processing method, compiler and instruction processor
A technology of instruction processing and compiler, which is applied in the field of information processing, can solve the problems of reduced processing efficiency, low processing efficiency, and inability to execute instructions in parallel.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0100] This embodiment provides a method for processing instructions, see figure 1 , the method provided in this embodiment includes:
[0101] 101: Obtain an instruction template group, where the instruction template group includes an instruction template for each instruction;
[0102] 102: Obtain each instruction template in the instruction template group. The instruction template is used to describe the command word, source data interface and target data interface of the instruction. The source data interface is the interface for inputting instruction processing data, and the target data interface is for outputting instruction processing results. interface;
[0103] 103: Determine the command word, source data interface, and target data interface of each instruction according to the instruction template of each instruction;
[0104]Optionally, determine the command word, source data interface, and target data interface of each instruction according to the instruction templ...
Embodiment 2
[0138] The embodiment of the present invention provides a method for generating an instruction template group. Combining the content of the first embodiment above, for the convenience of description, in this embodiment, the instruction 1 is MOV r4, r5, and the instruction 2 is MOVC r6, r7, r8, 1 , instruction 3 is ADD r1, r2, r3 as an example, and the instruction processing method provided by this embodiment will be described. see image 3 , the method flow provided by this embodiment includes:
[0139] 301: Obtain the command word, source data interface and target data interface of each instruction;
[0140] Wherein, the source data interface is an interface for inputting instruction processing data, and the target data interface is an interface for outputting instruction processing results. Since the device for storing instruction processing data can be a register, memory, or other storage device, the interface connected to the source data can be a register, memory, or oth...
Embodiment 3
[0188] The embodiment of the present invention provides a method for command processing. Combining the contents of the above-mentioned first embodiment and second embodiment, for the convenience of description, in this embodiment, the instruction 1 is MOV r4, r5, and the instruction 2 is MOVC r6, r7, r8. , 1, instruction 3 is ADD r1, r2, r3 as an example, and the instruction processing method provided by this embodiment will be described. see Figure 5 , the method flow provided by this embodiment includes:
[0189] 501: Obtain an instruction template group, and obtain each instruction template in the instruction template group, and determine the command word, source data interface, and target data interface of each instruction according to the instruction template of each instruction;
[0190] Wherein, the acquired instruction template group is an instruction template group generated by the method for generating an instruction template group provided in the second embodiment...
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