title: How to use FMIKit in 64-bit Matlab / Simulink to generate 32-bit binary FMU?
body: <p>I have successfully used FMIKit2.7(from [<a href="https://github.com/CATIA-Systems/FMIKit-Simulink]" rel="nofollow noreferrer">https://github.com/CATIA-Systems/FMIKit-Simulink]</a> )in 64-bit Matlab / Simulink (Matlab2017a) to generate a 64-bit binary FMU, which is indeed useful. However, now other simulation tools need to use 32-bit binary FMU for co-simulation, I follow the following way:
  [ <a href="https://ww2.mathworks.cn/help/coder/ug/build-32-bit-dll-on-64-bit-windows(r)-platform-using-msvc-toolchain.html?s_tid=srchtitle]" rel="nofollow noreferrer">https://ww2.mathworks.cn/help/coder/ug/build-32-bit-dll-on-64-bit-windows(r)-platform-using-msvc-toolchain.html?s_tid=srchtitle]</a>
  Added a 32-bit compiler toolchain to 64-bit Matlab.
  In addition, Intel-> x86-32 (Windows32) is selected for Hardware Implementation, and rtwsfcnfmi.tlc is selected for System Target File. The FMI Option sets the output to a Co-Simulation type FMU.</p>
  
  <p><a href="https://i.stack.imgur.com/2Vss0.png" rel="nofollow noreferrer">Hardware Implementation</a></p>
  
  <p><a href="https://i.stack.imgur.com/JVoz4.png" rel="nofollow noreferrer">System Target File</a></p>
  
  <p><a href="https://i.stack.imgur.com/QzcHt.png" rel="nofollow noreferrer">FMI Option</a></p>
  
  <p>However, in fact, the FMU generated by FMIKit is still a 64-bit binary FMU.</p>
  
  <p>My guess is that FMIKit automatically chose a 64-bit compiler during the compilation and linking process. What do I need to do to modify the FMIKit configuration file (such as a .tlc file or others) or Matlab / Simulink to generate a 32-bit binary FMU?</p>