Jump to content
Hans♫

Delphi and the new Apple M1 CPU

Recommended Posts

It works with Delphi 🙂

Just received the Mac Mini with the new Apple M1 CPU. After a quick attempt to deploy our FMX app, I can confirm that PAServer runs and I can deploy and run our FMX app without problems.

"Rosetta 2" seems to do the job very well!

  • Like 4

Share this post


Link to post

How is that possible ?

I thought PAServer is a Macos binary, on x86, not a Java thingy ?

At least I can see dylib's in the package content.

Or do you found a new, ARM compatible PAServer somewhere ?

I don't think Apple is emulating x86 assembler code on M1, or do they ?
 

Edited by Rollo62

Share this post


Link to post
4 minutes ago, Markus Kinzler said:

They do. Only a small fraction of apps already got a arm version.

Damn, I missed that fact.

Apple is really the hottest sh...  :classic_biggrin:

 

Does that mean also VmWare Fusion, Win-10 guest and Rx1041 is running as before ?

(No, I cannot believe that, its too much utopia for my,  Apple runs out of the box ....)

Share this post


Link to post

Windows VMs on the M1 ARM seems to a no-go - but that is no surprise.

But - it is a very impressive CPU - Twice the power, and twice the battery time.

Share this post


Link to post
35 minutes ago, Lars Fosdal said:

Windows VMs on the M1 ARM seems to a no-go - but that is no surprise.

But - it is a very impressive CPU - Twice the power, and twice the battery time.

At four times the price 🤣😂🤣

Share this post


Link to post
On 11/20/2020 at 2:59 PM, Rollo62 said:

Does that mean also VmWare Fusion, Win-10 guest and Rx1041 is running as before ?

VMware is working on a VMware Fusion version for the M1 processor.
This is not currently available, so no it does not currently work, estimated arrival somewhere 2021.


That first M1 version will -for sure- not offer x86/x64 processor emulation. That is a whole different ballgame and rosetta is not available for virtual machines.
As such you will only be able to run virtual machines that depend on an Arm processor to run.

Having said that, VMware did get an overwhelming demand to also look into processor emulation and they are actively looking into this.
That's about the only thing that the responsible VMware product manager is willing to say about this at the moment.

Edited by Wil van Antwerpen

Share this post


Link to post

Well, unexpectedly Apple-M1 did not so bad in emulation.

I haven't found many reports on compatibility issues yet, so maybe someone knows more about
the Do's and Dont's with this emulator: what can be used, what will crash ?

I think no Hypervisor, OK, but what restrictions have normal apps ?

 

 

Edited by Rollo62

Share this post


Link to post

Now I had time to investigate it a bit further. Looks like debug mode does NOT work on the new M1 CPU.

I can run a MacOS application from Delphi on the M1 Mac, without debugging, but when I run in debug mode I get the error: "unable to create process 'debug kernel timeout'".

The same application runs fine in Debug mode when using an Intel Mac having the same versions of MacOS (Big Sur) and XCode.

 

Before I create an issue on on Quality Portal. Are there any suggestions for things I should try first? - or extra information I can retrieve and include in the issue?

Share this post


Link to post

According to the Roadmap (https://blogs.embarcadero.com/rad-studio-roadmap-november-2020/) in Delphi 10.5  H2 2021  you can expect a better support for the M1 CPU. In the roadmap it's under Platform Enhancements macOS ARM (Delphi).

 

Of course as ever please do not forget this is only planned. There is no legal bound that it will be delivered in the first release of Delphi 10.5. 

A more detail can be found also at https://blogs.embarcadero.com/rad-studio-november-2020-roadmap-pm-commentary/
 

Quote

For 10.5, we plan to introduce a new target platform for Delphi, macOS ARM (based on Apple Silicon CPUs), significant work around IDE HighDPI support, C++ toolchain extensions, and many other additional features and quality enhancements. See below for more details.  

Quote

Marco’s Commentary of 10.5 Plans

Speaking of platforms, we want to add a new target for Delphi applications: a new compiler for the ARM-based version of the macOS operating system with Apple hardware powered by Apple Silicon CPUs. While you can run Intel applications, the goal is to have a native ARM application for the new generation of Macs.

This will be a significant extension of Delphi, including a new compiler, updates to the runtime library and the various high level libraries. We have also plans to expand the Delphi language syntax for all platforms and improve the performance of the math processing code the compiler generates on Windows, making applications faster in numeric processing.

At this moment the best you can do is to wait for the first beta for Delphi 10.5.

Share this post


Link to post
1 hour ago, Lajos Juhász said:

According to the Roadmap (https://blogs.embarcadero.com/rad-studio-roadmap-november-2020/) in Delphi 10.5  H2 2021  you can expect a better support for the M1 CPU. In the roadmap it's under Platform Enhancements macOS ARM (Delphi).

The roadmap refers to ARM M1 as a target platform.

What I am referring to is to be able to debug the Intel target on an ARM M1 CPU. 

I can deploy and run from Delphi on the M1 CPU, but I cannot debug.

It might not be possible to use the CPU view in Delphi, as it would have to work through the Rosetta 2 converter, but limited debug facilities would suffer, e.g. Breakpoints and variable inspection.

Share this post


Link to post

That is good news, that releases of Delphi may run on M1.

I think we still will have x86 Mac's for a while, so still some time until we really need to move to M1 as debug tool.

Hopefully there were no hidden catches in the Rosetta 2, that let us need support more urgently.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×