Wrapping legacy C_Codes for Matlab applications
J Chen · Jisuanji gongcheng yu sheji · 2007
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.