首页 | 本学科首页   官方微博 | 高级检索  
     

C遗留代码到Matlab的封装
引用本文:陈金辉,董飚,陈钟荣. C遗留代码到Matlab的封装[J]. 计算机工程与设计, 2007, 28(15): 3767-3769
作者姓名:陈金辉  董飚  陈钟荣
作者单位:南京信息工程大学信息与控制学院 江苏南京210044(陈金辉,陈钟荣),南京工业职业技术学院信息工程系 江苏南京210016(董飚)
基金项目:江苏省教育厅资助项目 , 南京信息工程大学校科研和教改项目
摘    要:C2M是一个把C语言遗留代码转换为Matlab中使用的mex封装文件的半自动化系统.该系统主要由C2Mmap和C2Mrule这两个彼此独立但又相关的工具构成.C2Mmap是一个半自动化转换工具,帮助用户在Matlab与C语言之间建立映像;C2Mrule为C函数自动生成相关的封装文件.描述了C2Mmap和C2Mrule,用例说明了封装代码的实际过程.

关 键 词:代码封装  源程序变换  接口文件  规则  遗留代码  mex文件  代码转换  Matlab  封装  applications  过程  描述  自动化系统  函数  映像  用户  转换工具  构成  相关  文件  使用  语言
文章编号:1000-7024(2007)15-3767-03
修稿时间:2006-09-05

Wrapping legacy C_Codes for Matlab applications
CHEN JIN-hui,DONG Biao,CHEN Zhong-rong. Wrapping legacy C_Codes for Matlab applications[J]. Computer Engineering and Design, 2007, 28(15): 3767-3769
Authors:CHEN JIN-hui  DONG Biao  CHEN Zhong-rong
Affiliation:1. College of Information and Control, Nanjing University of Information Science and Technology, Nanjing 210044, China; 2. Department of Information Engineering, Nanjing Institute of Industry Technology, Nanjing 210016, China
Abstract:A system called C2M is presented for the semi-automatic conversion of legacy codes written in the C language into mex wrapper files that can be used within Matlab.C2M involves two separate but related tools,C2MRule and C2Mmap.The C2Mmap is a semi-automatic transformation tool that can be used to assist the user in describing the mapping between the Matlab and C.C2MRule is a wrapper tool that can automatically generate the related wrapper files for C functions.Both C2MRule and C2Mmap are described,and demonstrates how they are used in practice to convert legacy code into wrapper files.
Keywords:code wrap  source transformation  interface file  rule  legacy code  mex file
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号