Matlab Runtime Compiler creates the .m files in the mcrCache

조회 수: 22 (최근 30일)
Sébastien MAILFERT
Sébastien MAILFERT 2022년 7월 25일
댓글: Sébastien MAILFERT 2022년 7월 26일
Dear community,
I created .exe files to deploy my .m files and share them to users outside my lab.
I used previously the 9.2 version but now I'm using the recent one (9.12).
In the cache folder ("C:\Users\useranme\AppData\Local\Temp\useranme\mcrCache9.12\), there are a lot of /m files created now for each executable launch.
I'm wondering if these files can be automatically deleted after the call?
I'm also want to be sure that these files do not share the code because it is confidential.
Best regards,
Sébastien
  댓글 수: 8
Bruno Luong
Bruno Luong 2022년 7월 25일
I don't know, I use mcc commmand to build by app, and adding -s option is just straight forward.
Sébastien MAILFERT
Sébastien MAILFERT 2022년 7월 26일
편집: Sébastien MAILFERT 2022년 7월 26일
The Mathworks support just replied me:
Thank you for getting back to us about this issue. In R2021b and R2022a Application Compiler Settings shows "Unknown flag(s) specified: -s", I verified it on my end too. This is a bug and our developers are working on fixing this for a future release. I am sorry I did not spot this bug in the first place.
I'm waiting for the next release...

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

답변 (1개)

Walter Roberson
Walter Roberson 2022년 7월 25일
Starting in R2021b, you can obscure the names of files and the directory structure, and also encrypt other file types (such as MAT, FIG, MEX, and so on) using the -s option for mcc (MATLAB Compiler). At run time, the encrypted files remain encrypted on the disk but are decrypted in memory to what they originally were before compiling.
  댓글 수: 2
Sébastien MAILFERT
Sébastien MAILFERT 2022년 7월 25일
Thanks, this should be the solution.
I see this option but I don't how to use it on the Compiler toolbox (there is an error)
Sébastien MAILFERT
Sébastien MAILFERT 2022년 7월 26일
The Mathworks support just replied me:
Thank you for getting back to us about this issue. In R2021b and R2022a Application Compiler Settings shows "Unknown flag(s) specified: -s", I verified it on my end too. This is a bug and our developers are working on fixing this for a future release. I am sorry I did not spot this bug in the first place.
I'm waiting for the next release...

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

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by