Best Complier

Discussion in 'Mac Programming' started by Pugman1943, Jul 27, 2014.

  1. Pugman1943 macrumors newbie

    Joined:
    Feb 11, 2013
    #1
    Will someone tell me what the best compiler for Yosemite is? I'm in a pile of pooh and might as redo the mess the correct way. Appreciate any wisdom imparted. Thank you.
     
  2. Red Menace macrumors 6502

    Joined:
    May 29, 2011
    Location:
    Littleton, Colorado, USA
    #2
    Compiler for what? Most use Clang/LLVM, since that is what Apple provides in Xcode.
     
  3. hiddenmarkov macrumors 6502a

    Joined:
    Mar 12, 2014
    Location:
    Japan
    #3
    I will say this basically.

    If c/c++/ fortran for example you could give intel optimized compilers a go. Its a free 30mday trial iirc. Not sure how you test compiler performance tbh. but I know the marketing people will say they are better. OFC that is what marketing people do lol.


    Not sure if intel supports Yosemite yet though. But that I think that would be the case for any 3rd party compiler option I am thinking. If they are cooking up something, it probably be beta and won't be settled in until apple has os and such at gold disk release level.
     
  4. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #4
    I think these are the three metrics most commonly used:
    1 - How quickly can the compiled code be executed? There are multiple ways to compile any bit of high level code into machine code, so the compiler needs to be smart enough to identify the right choices to make from a performance point of view.
    2 - How big is the compiled executable? Again, multiple ways to compile. Some will end up with smaller binaries than others.
    3 - How quickly does it compile code? Not normally a big deal these days since compilation usually takes minutes if not seconds, and larger projects are normally compiled on dedicated build servers instead of local dev machines. But I think this used to be more important when stuff could take hours to compile. Not sure - I haven't been alive long enough but my understanding is compilers used to be that slow.
     
  5. briloronmacrumo macrumors 6502

    briloronmacrumo

    Joined:
    Jan 25, 2008
    Location:
    USA
    #5
    The "best" compiler meets your criteria - whatever that is.
     
  6. jeremysteele macrumors 6502

    Joined:
    Jul 13, 2011
    #6
    What kind of compiler? There's no "all in one" compiler that does every language known to man...

    As has been said - clang/LLVM is what most people use on this platform. Unless you have some really specific requirements I'm not sure what else you'd need.
     

Share This Page