This article presents the design and development of a dataflow programming language called DFC2 (dataflow C, version 2) based on the dataflowprogramming model. The DFC2 compiler is responsible for converting the DFC2...
详细信息
ISBN:
(纸本)9798400708428
This article presents the design and development of a dataflow programming language called DFC2 (dataflow C, version 2) based on the dataflowprogramming model. The DFC2 compiler is responsible for converting the DFC2 language into C++ language, which is then compiled into an executable file by the C++ compiler. DFC2 is designed to be user-friendly and easy to use by adhering to the traditional imperative programminglanguage model. It also allows for the reuse of existing C language code to reduce development costs. DFC2 distinguishes between graph functions, which are automatically parallelized, and func functions, which are not, giving users greater control over the level of parallelism. Users can describe dataflow graphs at both the inter-function and intra-function levels. This article also implements an optimization framework for the DFC2 compiler and analyzes the optimization results. It demonstrates that with the introduction of conditional constant propagation and dead code elimination, it is possible to reduce execution time by up to 30% in the best-case scenario and an average of approximately 6%.
暂无评论