mcc compiling for maca64

10 views (last 30 days)
Peter Majer
Peter Majer on 31 Jan 2024
Edited: Stefanie Schwarz on 8 Oct 2024
Our software compiles some MatLab extensions using the mcc function. We have been working on an Apple silicon version of our software, and have stumbled on a wall with mcc: according to the help, there is no option to compile for arm (maca64).
Are we reading this wrong, and compilation is actually possible but not cross-compilation?
If we are reading this corretly and there is currently no way to use mcc to compile extensions for our software in arm, when could we expect to be possible?
Thank you.

Answers (2)

Hassaan
Hassaan on 31 Jan 2024
The support for Apple Silicon in MATLAB is relatively new and evolving, it is best to directly consult MathWorks' resources or their support team for the most current and detailed information on mcc's capabilities with respect to Apple Silicon.
For more detailed information and updates, you can refer to MathWorks' official pages on MATLAB on Apple Silicon Macs and the MATLAB Blog regarding their latest releases and support for Apple Silicon.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.

Stefanie Schwarz
Stefanie Schwarz on 19 Sep 2024
Edited: Stefanie Schwarz on 8 Oct 2024
Hello Peter,
compiling applications for Apple Silicon (maca64) is possible on Apple Silicon Macs running the native Apple Silicon version of MATLAB (available from R2023b). As you said, cross-compilations from Intel (maci64) to (maca64) is not possible. This page has all the details:
I believe the documentation you are referring is about the "-A arch" flag. This flag does not apply to standalone applications, but only to Python, Java, and C++ MATLAB Data API targets. I asked our doc team to make this item clearer and explain what the exact restriction for maca64 platform is.
Best, Stefanie

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!