HACKER Q&A
📣 ThinkBeat

How hard will porting and compiling for the M1?


Microsoft has an the Surface Pro X which is based on Microsoft SQ 1,2 chipset powered by Qualcomm's 8cx.

I believe they have Windows 10 on Arm, Office365 on Arm. I am unsure what support other application has but for the moment let us focus on applications that are ported and works fine on the SQW.

They also have a very minimal Windows 10 for Raspberry for Arm Cortex-A72

Linux has several Arm based releases and I dont know many of them.

Now we have OSX ported to M1 and a few application ported to M1.

If we start with the M1 and for a second focus on Linux running on the M1, SQ2, and Raspberry.

My question is: How difficult is to port an application written and compiled on Raspberry to run on the M1

Is it like ab AMD64 <-> Intel x64? Mostly similar / compatible instruction sets with proprietary extensions that are custom and requires two sets of code, one for each if you want to make use fo those special instructions?

Or do you need to compile the code specifically for the M1 specially for the Raspberry PI and specifically for the SQ2? If I take a command line app I have written and running on SQ1 and copy it over to an M1 based machine, will it execute?

I presume the graphics instructions is quite different between the 3 and that requires specific compilation?

The neural engine, I am having a really hard time finding concrete information on, such as instruction set.

The MacOs abstracts its details with libraries that talks to the neural engine.

When Linux is running on the M1 the compiler would need to know about that instructions as well.

These are all based ARM at the foundation at least.

Also how hard would it be for Microsoft to get their Arm based Windows 10 os to run on the M1? That will probably never happen so the reverse might make more sense.

Will it be possible for enthusiast to create an M1 hachintosh from Window compurs running SQ2?


  👤 uberman Accepted Answer ✓
This might be a helpful read and explain why it does not look good for either linux on M1 or the future of hackintosh:

https://arstechnica.com/gadgets/2020/11/__trashed-6/