

The arm64-apple-macos11 target is handy if you are on an Intel-based Mac mini and want to compile for ARM architecture. Gcc main.c -o arm_test -target arm64-apple-macos11

If you want to generate a x86_64 code you have to use the following gcc option: By default on Apple M1 + Big Sur, gcc will generate an amr64 code. But in command line with gcc/g++, you have to specify the target architecture. Using Xcode 12.3, you can generate a kind of hybrid executable (Apple calls it an universal macOS binary) that packs the x86_64 and arm64 code. OpenGL is still there in the latest macOS Big Sur! I was surprised to see that all GeeXLab OpenGL code has been successfully compiled. By default, the compilation in command line (like gcc file.c) produces a binary for the arm64 architecture. I installed the latest Xcode 12.3 as well as the command line tools (because gcc/g++ are needed). The source code of GeeXLab is based on makefiles and I had no problem to compile all core libraries from the command line. See THIS PAGE for a more complete TFLOP table. This is more or less the same performance than the Radeon RX 560 or the GeForce GTX 1650:

The M1 GPU has a FP32 performance of 2.6 TFLOPS ( source). The M1 chip is a SoC (System on a Chip) and includes a 8-core CPU, a 8-core GPU as well as other components like a neural engine, memory or input/output interfaces. Here are some feedbacks about the Mac mini M1 I purchased few weeks ago, in order to compile and test GeeXLab with the new Apple Silicon M1.
