基于代码生成技术的COSINE软件开发

COSINE Software Development Based on Code Generation Technology

  • 摘要: 采用代码生成技术可大幅提高软件开发的质量和生产率,降低软件开发风险。目前已有代码生成器多是基于UML模型驱动技术,不能很好适应核电数值计算软件的开发需求。本文针对科学计算类程序的设计特点,开发了基于C#的代码生成器FCG。FCG可根据输入元数据自动生成Module变量定义Fortran代码,并根据元数据自动生成动态变量的内存分配接口和数据访问接口,方便程序直接调用。目前,FCG已应用于堆芯设计和系统分析一体化平台(COSINE)软件的开发过程,实践证明,FCG可极大提高核电软件的开发效率,同时降低软件开发的缺陷率。

     

    Abstract: The code generation technology can significantly improve the quality and productivity of software development and reduce software development risk. At present, the code generator is usually based on UML model-driven technology, which can not satisfy the development demand of nuclear power calculation software. The feature of scientific computing program was analyzed and the FORTRAN code generator (FCG) based on C# was developed in this paper. FCG can generate module variable definition FORTRAN code automatically according to input metadata. FCG also can generate memory allocation interface for dynamic variables as well as data access interface. FCG was applied to the core and system integrated engine for design and analysis (COSINE) software development. The result shows that FCG can greatly improve the development efficiency of nuclear power calculation software, and reduce the defect rate of software development.

     

/

返回文章
返回