From: Johannes E. <joh...@er...> - 2009-01-27 18:49:49
|
On Tue, Jan 27, 2009, Nathan Hjelm <hj...@ma...> wrote: > Universal binaries contain code for more than one platform (typically ppc > and i386). The union approach will work for this case. Just to clarify, the problem with universal binary support is with the header file and specifically with configure generating a header file specifically for one platform. Since building universal binaries effectively compile the code for each platform, you don't want a header file that is specific to a platform. This is a similar, but different, problem to the cross-compiling problem. You can't run target built binaries in a cross-compiling environment. The union method of endian conversion (which might get optimized correctly) or my version (which also might get optimized correctly) would work fine for both universal binaries and cross-compiling. JE |