arXiv:2511.15257cs.SEcs.CL2025-11

M语言与工具链支持复杂系统多目标编译,提升建模效率与一致性。

M, Toolchain and Language for Reusable Model Compilation

  • 基于演员模型和离散事件调度,设计可多目标编译的文本化建模语言
  • 从单一模型自动生成仿真、部署、验证等异构目标,保持语义一致
  • 可作为中间语言,让其他建模语言共享其编译框架

复杂软件驱动系统常需处理分布式、并发计算与环境物理交互。为更高效安全地开发此类系统,可采用可执行的软件化模型。工程师常需从高层系统模型生成多个专用模型,用于仿真、部署与形式化验证,但这些目标模型通常依赖不同形式化体系、语言与执行平台。传统编译器处理编程语言生成可执行代码,而模型编译器则需将建模语言源模型转换为多种异构目标。然而多数现有建模语言聚焦单一用途(如仅仿真或实现),若早期未考虑多目标编译,后期实现难度极大。本文提出M语言及配套工具链,专为复杂、并发、时序敏感系统建模与多目标编译而设计。M是基于演员模型、语法驱动的文本语言,扩展了离散事件调度语义,提供系统实体、消息交互、时间/状态触发反应等建模构造。该语言支持从同一模型系统性生成多种目标产物,确保语义一致性。此外,M可作为中间语言,使其他建模语言通过锚定其上,受益于统一的编译框架。

原文摘要 · Abstract (English)

Complex software-driven systems often interleave distributed, concurrent computation processes with physical interactions with the environment. Developing these systems more efficiently and safely can be achieved by employing actionable, software-based models. From a high-level system model, engineers often need to derive multiple specialized models for different purposes, including simulation, deployment, and formal verification. Each of these target models usually rely on its own formalism, specification language, and execution platform. Traditionally, a compiler analyzes a program written in a programming language and generates executable code. In contrast, a model compiler processes a source model written in a modeling language and should ideally support the generation of multiple heterogeneous targets. However, most existing modeling languages are designed with a narrow focus, typically targeting only simulation or implementation. Multi-target compilation, when not considered during the language's early design, becomes significantly harder to achieve. In this paper, we introduce our initiative: a toolchain and modeling language called M, designed to support system modeling and multi-target compilation for model-driven engineering of complex, concurrent, and time-aware systems. M is a textual, grammar-driven language based on the actor model and extended with discrete-event scheduling semantics. It provides constructs for modeling system entities, message-based interactions, and time- or state-triggered reactions. From such models, M enables the systematic generation of diverse target artifacts while preserving semantic conformance to the original model. Moreover, M can serve as a middle language to which other modeling languages may anchor, thereby allowing them to benefit from its compilation framework.

建模语言多目标编译系统工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。