3 ms·
Is it possible to create a UB for all three architerctures at the same time? (PPC, x86 and x64)
by pygy_ 15y ago
Is it possible to create a UB for all three architerctures at the same time? (PPC, x86 and x64)
- xorglorb 15y agoApple's definition of a "Universal Binary" is an executable the runs on both PPC and x86. However, it is possible to create a fat binary that runs on all three architectures at the same time. An example of how to do it: http://ngmarley.com/blog/osx-universal-binary/ http://ngmarley.com/blog/osx-universal-binary/
- chc 15y agoApple uses the term "universal" in somewhat inconsistent ways. In the Get Info window, it means what you say. But in developer documentation, it tends to mean a fat binary, with PPC/x86 being the most common pair.
- DrJokepu 15y agoIt is possible, however, no PPC binary is allowed in the Mac App Store, even if your binaries also include support for other platforms. This could be a problem if you use third-party binary-only libraries as you have to strip the PPC stream manually from them before you can submit your app to the Mac App Store.
- chc 15y agoThat's not too big a problem. The developer tools include a tool called lipo that can easily remove unwanted architectures from fat binaries.
- paxswill 15y agoOnly with Xcode 3. As I mentioned below, Xcode 4 does not include support for PPC. Also, there are really four architectures (i386, x86_64, ppc, ppc64), but Xcode 3.2.6 does not like compiling for ppc64.