What is the difference between MATLAB code files, pCode and MEX files?
이전 댓글 표시
I hear about all of these, but do not know how they differ.
채택된 답변
추가 답변 (2개)
Alexei
2011년 2월 12일
0 개 추천
I actually want to add a question ))
I know you can turn .m code to C files using the MCC and then turn that to a MEX dll
Question is, can you turn .p code to C using MCC and then turn to a MEX dll?
댓글 수: 1
Walter Roberson
2011년 2월 12일
mcc cannot turn .m files to C using any version for a number of years now. mcc produces data files that contain threaded interpreted code, not C code. mcc has no problem including .p files in producing the final result.
Rui
2012년 4월 27일
0 개 추천
is there any difference in performance on using the MCC to build a standalone application or matlab compiled dll to be called within a C/C++ application?
댓글 수: 1
Walter Roberson
2012년 4월 27일
No, other than perhaps differences in the start-up time (and those differences could depend upon whether a graphics window was being created.)
However, in the other question you were asking about this, you were talking about converting code to C or C++. Converting code to C or C++ is handled by MATLAB Coder, not MATLAB Compiler, and the result would run at the speed of C (or C++), not at the speed of MATLAB. The trade offs is that MATLAB Coder is expensive and there are quite a number of things that cannot be compiled with it.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!