Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8579459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:36:40+00:00 2026-06-11T20:36:40+00:00

Can I create a universal binary for Mac OS X that contains two versions

  • 0

Can I create a universal binary for Mac OS X that contains two versions of my app, one that is compiled with SSE4.2 and one that compiled with SSE3?

In this case I would the version compiled with SSE4.2 to be loaded automatically for CPU that support SSE4.2.

If no, I would like to get suggestions to run my app on old CPUs that do not support SSE4.2 but utilize SSE4.2 on CPU that support it.

Note that I target to the Mac AppStore, if that matter.
I use Clang with Xcode 4.5.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:36:40+00:00Added an answer on June 11, 2026 at 8:36 pm

    This is not supported by the Mach-O format, which is used by Mac OS X. The format allows binaries for different architectures. There is a subtype field, but there are only values defined for different generations of processors, not their abilities.

    There are a couple of ways to work around this. One would be to have both SSE4.2 and code for older processors built into the same binary, using different function names. Your code would determine whether or not SSE4.2 is supported, then call the proper function.

    Another option would be to build two libraries, one with SSE4.2 and one without, and ship both of them in your application bundle, but not link to them. When it is first loaded, your code would determine whether or not SSE4.2 is supported and then load the right library.

    Using the first method, you don’t have to worry about loading a library and connecting all of the functions, but you will always load extra code which does not get executed, and you will have to check a variable before each of those function calls. Using the second method, you can simply call the functions without checking anything every time, but loading the library and connecting all of the functions is more work than simply comparing a variable each time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Everybody.. I have create one universal application.. My app worked fine to only two
I've read up on how one can create a single iOS binary that combines
I would like to create/use a system-wide independent universal 'counter object' that can be
One can create an anonymous object that is initialized through constructor parameters, such as
I'm trying to create a universal function that I can call from multiple places
When I create a new universal app, I see that initial controller xib files
How can i create universal apps using xcode 3.2.6 in Landscape mode bydefault?I need
I can create and use dynamic two dimensional array in Fortran (in 77 standard).
I can create a contact that is not mail enabled, but how do I
How can create a view with mutiple images, something similiar to the photo app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.