《matlab编译》由会员分享,可在线阅读,更多相关《matlab编译(9页珍藏版)》请在金锄头文库上搜索。
1、MATLAB编译编译类型Stand-alone applications C and C+ shared libraries (dynamically ) Excel add-ins; COM objects; Wrapper FilesPerforms wrapper-specific initialization and termination. Defines data arrays containing path information, encryption keys, and other information needed by the MATLAB Component Runt
2、ime (MCR). Provides the necessary code to forward calls from the interface functions to the MATLAB functions in the MCR. 编译器Lcc C version 2.4 (included with MATLAB). This is a C only compiler; it does not work with C+. Borland C+ versions 5.3, 5.4, 5.5, 5.6, and free 5.5. (You may see references to
3、these compilers as Borland C+Builder versions 3.0, 4.0, 5.0, and 6.0.) Microsoft Visual C/C+ (MSVC) versions 6.0, 7.0, and 7.1Supported ANSI C and C+ LinuxThe MATLAB Compiler supports The GNU C compiler, gcc The systems native ANSI C compiler The GNU C+ compiler, g+编译限制The Lcc C compiler does not su
4、pport C+. The only compilers that support the building of COM objects are Borland C+Builder (versions 3.0, 4.0, 5.0, and 6.0) and Microsoft Visual C/C+ (versions 6.0, 7.0, and 7.1). 编译命令mbuild setup例子function r = mrank(n) r = zeros(n,1); for k = 1:n r(k) = rank(magic(k); end function main r = mrank(5) mcc -m main mrankmcc -W lib:libMultpkg -T link:exe multarg printmatrix multargp.c