2 ms·
Programming languages like C, C++ and Objective C are compiled to machine code. Apple Silicon support means it is compiled for the ARM instruction set rather th
by TorKlingberg 6y ago
Programming languages like C, C++ and Objective C are compiled to machine code. Apple Silicon support means it is compiled for the ARM instruction set rather than x86. The Apple M1 chip can execute either, ARM code natively and x86 through the Rosetta translation layer. Native ARM code will run a bit faster.
In theory this is done by changing a flag to the compiler. In practice most code needs some changes. They also had to get ARM versions of any pre-compiled libraries, and there may be some differences in how to interact with the operating system. If they used any hand-written assembly code that also had to be rewritten.