| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jun 6, 2006, at 3:00 AM, Marc Stibane wrote:
Yes, at least to the first question. I'm currently doing this by using LSOpenFSRef to launch an x86-native application, then using CFMessagePorts and POSIX-controlled shared memory to communicate with fairly decent performance. (Altivec on native PPC still blows SSE out of the water.) The global limit on shared memory appears to be 4MB, which is somewhat restrictive for my purposes (image-processing).... Anyway, Rosetta can be detected with the following bit of code: bool CPSFMactel::IsRosetta() { bool isRosetta = false; char model[32]; size_t len = sizeof(model); int mib[2] = { CTL_HW, HW_MODEL }; if (sysctl(mib, 2, &model, &len, NULL, 0) == 0) { isRosetta = (len == 9 && strcmp(model, "PowerMac") == 0); } return isRosetta; } Hope this helps, Ben |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden This email sent to email@hidden
| References: | |
| >Re: How smart is Rosetta? (From: Marc Stibane <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.