A c/c++ and costream mixed programming method and visual compiling system

A hybrid programming and compiler technology, applied in the field of computer compilation, can solve the problems of insufficient popularization and popularization, and achieve the effect of simplicity and perfect simple program design and analysis functions

Active Publication Date: 2019-12-13
HUAZHONG UNIV OF SCI & TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The current main stream programming languages ​​are StreamIt, CUDA, COStream, StreamC / KernelC and Flextream, etc., but their promotion and popularity are not as good as the traditional C / C++ programming language

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
  • A c/c++ and costream mixed programming method and visual compiling system
  • A c/c++ and costream mixed programming method and visual compiling system
  • A c/c++ and costream mixed programming method and visual compiling system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0035] Such as figure 1 As shown, the mixed programming method of C / C++ and COStream mainly includes:

[0036] For mode selection, a mode selection switch is added at the front end. By adding the mode selection variable CallModelEmbed at the front end to control the generation of the back-end code. By default, the value of this variable is FALSE, which means single-mode programming, and the bac...

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 C / C ++ and COStream mixed programming method and a visual compiling system, belonging to the field of computer compiling technology. The technical scheme of the invention comprises the following steps: selecting a mixed compiling front-end mode; designing a communication interactive interface of mixed compiling back-end C / C ++ programs and COStream programs; designing a mixed compiling back-end multi-thread processing interface; and generating a mixed compiling back-end target code. The invention also achieves the visual compiling system. The technical scheme disclosed by the invention combines C / C ++ with COStream programming, the advantages of a dataflow programming language COStream in a multi-core parallel architecture can be fully played, the high parallelism of multi-core processors can be fully played, and the problem of high complexity in the process of writing multi-thread programs by C / C ++ can be remedied.

Description

technical field [0001] The invention belongs to the technical field of computer compilation, and more specifically relates to a C / C++ and COStream mixed programming method and a visual compilation system. Background technique [0002] Compared with single-core CPU, multi-core CPU has stronger parallelism, higher computing density, lower clock frequency and power consumption. Although multi-core processors are used more and more widely, they still have deficiencies in many aspects, mainly in the following two aspects. First, although the multi-core processor improves the computing power of the program through its multi-core parallel processing, the underlying multi-core resources have not been fully utilized, and there is still room for improvement in its parallel processing capability. Moreover, traditional programming languages ​​such as C and Fortran cannot be applied to general-purpose multi-core platforms. Second, although programming languages ​​such as C++ and Java c...

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 Patents(China)
IPC IPC(8): G06F8/20G06F8/41
CPCG06F8/22G06F8/41
Inventor 于俊清董慧何云峰唐九飞
Owner HUAZHONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products