필터 지우기
필터 지우기

Is it possible to automatically modify the MATLAB coder generated BAT-file so that it generates 32bit lib/exe

조회 수: 2 (최근 30일)
I am using MATLAB R2015b coder. I am developing on 64-bit windows, but would like to generate 32-bit lib/exe.
By default, the generated code is for 64-bit platforms and the BAT-file contains the following line:
call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" AMD64
If I edit this line to
call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" x86
And then manually execute the BAT-file, I can get a compiled code for my 32-bit target. Is there a way to do this automatically during code generation itself, so I don't have to manually edit it later?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 11월 25일
  댓글 수: 1
Neerad Phansalkar
Neerad Phansalkar 2015년 11월 25일
Thanks for the reply Walter. However, this looks like it has more to do with deploytool i.e. MATLAB compiler. I am using the MATLAB coder to generate C code from MATLAB code and then generate a static lib/executable from that.

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

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by