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

A heterogeneous multi-platform code generation method based on IMCL model

A code generation, heterogeneous technology, applied in the direction of program code adaptation, creation/generation of source code, software maintenance/management, etc., can solve time-consuming problems

Active Publication Date: 2018-12-11
上海丰蕾信息科技有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

No matter which model conversion method is adopted, it is unavoidable to avoid the problems brought about in the process of model conversion, including how to realize the conversion between different expression models, how to ensure the consistency of the two models, etc.
In addition, in the later stage of model-driven development, in order to ensure that the implementation meets the requirements, the programmer needs to combine the model and specific deployment to code the physical equipment separately. After many simulations and tests, the code is repeatedly adjusted. This process consumes a lot of time.

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 heterogeneous multi-platform code generation method based on IMCL model
  • A heterogeneous multi-platform code generation method based on IMCL model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0026] Such as figure 2 Shown is a work flow chart of an optional embodiment of the present invention. A functional model of a collaborative heterogeneous program is decomposed into platform model A, platform model B, and platform model C through model decomposition. Wherein the system corresponding to the cooperative heterogeneous program is the target system, and the platforms in the target system include FPGA platform (programmable control logic gate), ARM platform, PC platform (PPC-460) and PLC platform (STM32-429) . In order to ensure the communication between the platform models, the present invention also abstracts the UART universal asynchronous transceiver transmitter, the Ethernet Ethernet communication protocol and the SPI serial peripheral interface, etc., and is used as a cooperative communication link between different platforms.

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 relates to a heterogeneous multi-platform code generation method based on IMCL model. The method comprises the following steps: adopting IMCL language to characterize the function of a target system and obtaining the function model of the target system; adopting a formal method to decompose the functional model to obtain one or more platform models corresponding to one or more platforms in the target system; mapping the one or more platform models to corresponding platforms, thereby supplementing the platform models in detail; based on the abstract syntax tree, according to the characteristics of the one or more platforms, designing corresponding transformation rules, so as to transform the one or more platform models into corresponding platform codes. The invention solves the problem of the prior art that it is difficult to generate multi-platform codes at the same time, the function model is decomposed to be used for automatic generation of the target platform codes, and the invariance of the constraint relationship between the function and the function is ensured through the program slicing method and the decomposition method based on the formal system dependency diagram.

Description

technical field [0001] The invention relates to the field of automatic generation of computer codes, and particularly relates to a heterogeneous multi-platform code generation method based on the IMCL model, which is used to realize the automatic generation of codes. Background technique [0002] Model-driven architecture was proposed in 2001. It is an approach to software design that uses a platform-independent model to define system functionality through an appropriate domain-specific language (DSL). The advantage is that by abstracting the DSL model, the system architecture can be expressed with less DSL code than other programming languages ​​(Java, C++, C#). In addition, programs written in a domain-specific language are easier to understand, and even the DSL code can be expressed in a graphical language, and the difference between business logic and technical implementation can be eliminated. Since model-driven architecture is platform-independent, many interpreters ...

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): G06F8/30G06F8/76
CPCG06F8/30G06F8/76
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