Depending on the complexity of the file structure you want to store and other properties you might like - the easiest way to go is to use exFAT.
exFAT is fully, natively supported both read and write on macOS, and has been so since Snow Leopard 10.6.5 (from 2010).
On Linux the native support came with version 5.4 (from 2019). Your specific distribution might ...
You have hybrid partitioning. The question you have linked to does not. An indicator of hybrid partitioning is the output of the following warning message from the gpt command.
Suspicious MBR at sector 0
When a GUID partitioning is being used, there are two tables. The first is the MBR (Master Boot Record) partition table located at sector 0. This is ...
The process of building a binary for a different architecture than the one you're running is called cross compilation.
As highlighted by the other answers, this is a relatively common occurence, especially in the history of Apple which switched from 68K processors to Power PC, then to Intel, and now to ARM.
Mind you, anyone building an app for iPhone or iPad ...
Is it possible to compile UNIX command line program for Apple Silicon architecture on Intel-based Mac?
Yes, it is.
It's a broad answer and depending on your particular specifics you will need to tweak/adapt your code as necessary.
How do we know this? History is our guide and it's not limited to Apple.
OS X was compiled on PowerPC then migrated to Intel
The whole point of Universal Binaries is that you can compile the same code for 2 architectures, one of which (by necessity) is not the hardware you're running.
It has previously been possible to compile Universal Binaries for PPC and Intel, or 32-bit and 64-bit, regardless of the hardware doing the compiling.
Apple's documentation on porting to Apple ...
It is correct that macOS runs upon the kernel named Darwin that Apple develops. Its source code is available online.
However, it is not exactly a "distribution" of BSD:
If you compare it to Linux with the many distributions available, such as for example Ubuntu and Fedora Linux it's a completely different ball game here. They have a specific kernel ...