Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Coloring language machine code generation method and device of abstract target code architecture

An abstract target and target machine technology, which is applied to instruments, 3D image processing, computing, etc., can solve the problems of difficult back-end development and maintenance of coloring language compilers, large and complex code generation modules, etc., and improve the level of modularization , the effect of reducing difficulty

Active Publication Date: 2020-05-01
武汉凌久微电子有限公司
View PDF20 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention proposes a coloring language machine code generation method and device based on an abstract object code architecture. By introducing an abstract object code architecture, the problems of difficult back-end development and maintenance of a coloring language compiler, large and complex code generation modules, etc. are solved.

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
  • Coloring language machine code generation method and device of abstract target code architecture
  • Coloring language machine code generation method and device of abstract target code architecture
  • Coloring language machine code generation method and device of abstract target code architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention defines an abstract object code aimed at the characteristics of the OpenGL shading language, generates an abstract object code from the intermediate representation code of the shading language program, and then converts it into The target machine code that the final GPU can execute.

[0032] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0033] see image 3...

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 invention discloses a coloring language machine code generation method and device of an abstract target code architecture. The method comprises the steps of defining a set of universal shader abstract target instruction according to a specific type of a GPU shader; converting the intermediate representation code of the coloring language program into an abstract target instruction; designing aninstruction mapping table according to a mapping relationship between the abstract target instruction and an actual GPU target machine instruction; and performing mode matching on the abstract targetinstruction and the instruction mapping table, and converting the abstract target instruction into a target machine instruction executable by a GPU shader. The abstract target code introduced by themethod can decouple the generation part of the compiler rear-end target code from the specific GPU shader machine code, the modularization level of a coloring language compiler rear-end program can begreatly improved, and the difficulty of compiler rear-end development is reduced.

Description

technical field [0001] The invention belongs to the technical field of coloring language compilers, and in particular relates to a method for generating machine codes of an abstract object code framework at the back end of the coloring language compiler. Background technique [0002] A shading language compiler usually consists of three parts: compiler front-end, machine-independent code optimizer, and compiler backend. The general shading language compiler process is as follows: figure 1 shown. The backend part of the compiler mainly includes functions such as generation of target machine code, allocation and management of shader hardware resources, and optimization of machine-related code. Among them, target machine code generation is a key technology in the back-end design of the shader language compiler, and it is also a difficult point in the back-end design of the compiler. The process of this function is complicated and the amount of code is large. [0003] The back...

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 Applications(China)
IPC IPC(8): G06T15/50
CPCG06T15/50Y02D10/00
Inventor 胡艳明黄亮张雁熊庭刚
Owner 武汉凌久微电子有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products