Universal Binary const data sharing resources

In a C++ application, I use a lot "static const char" to include data directly inside the binary.

Code Block
static const unsigned char temp6[] = { 3,49,43,113,35,91,2,233,99,119,212 ....


From the size of the files, I get the impression that the data is inserted once for each architecture (arm64/x64), i.e. it exists twice.

Is there anyway to share data directly between architectures, without the need to use extra shared resource files.



I get the impression that the data is inserted once for each
architecture

Correct.

Is there anyway to share data directly between architectures

The obvious way to do this is to put the data in a resource, which is easily accessible from both architectures. Why don’t you want to do that? Because the alternatives are a lot less pleasant.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Universal Binary const data sharing resources
 
 
Q