필터 지우기
필터 지우기

Does an executable version of mfile use same memory as mfile?

조회 수: 1 (최근 30일)
KAE
KAE 2017년 7월 10일
댓글: KAE 2017년 7월 10일
If I have an mfile and an executable version of the same mfile that I build with Matlab compiler and Matlab compiler SDK, would they use the same amount of memory to run? I am asking because I have to spec out a laptop that can run the executable, but I have not yet purchased Matlab compiler so I can't test it out. If they would not necessarily use the same amount of memory, would the mfile always require more memory than the executable to run?

채택된 답변

Walter Roberson
Walter Roberson 2017년 7월 10일
If you are referring to something built with MATLAB Compiler, then the execution engine is exactly the same as for interactive MATLAB, so the same memory would be used at run time.
MATLAB Compiler executables do not have the desktop / command window to deal with, so that can reduce the amount of memory used.
There is some cost to the de-archive that is done.
The memory use should be much the same as if you had started MATLAB with the -nodesktop option.
  댓글 수: 1
KAE
KAE 2017년 7월 10일
Yes, built with Matlab compiler and Matlab compiler SDK. I have updated my question. Thanks, this is very helpful.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by