need gcc 4.4 on Mac OS X 10.5 Leopard

Discussion in 'Mac Programming' started by marjb, Oct 28, 2009.

  1. macrumors newbie

    Joined:
    Oct 28, 2009
    #1
    I'm currently using the GNU compiler that is included with XCode 3.1.4. Note that 3.1.4 is the latest version of XCode that runs on Mac OS X 10.5.

    Unfortunately, XCode 3.1.4 only includes gcc 4.2.1, which was released in July 2007 and which does not do everything I need. Therefore I would like to install a more recent version of gcc, ideally 4.4.2 (or at least 4.4.1).

    However I doubt if I will be able to compile this myself. So I was wondering if it is possible to download a pre-made gcc 4.4 package for Mac OS X 10.5 somewhere?
     
  2. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    What is it that you need in GCC 4.4.x that is not available in 4.2.1?
     
  3. thread starter macrumors newbie

    Joined:
    Oct 28, 2009
    #3
    Some inline assembly commands don't seem to work properly. E.g. if I write

    __asm__ not ax, ax

    when I compile it says

    main.cpp:16: error: expected unqualified-id before '!' token
     
  4. thread starter macrumors newbie

    Joined:
    Oct 28, 2009
    #4
    Found the solution myself. GCC uses AT&T syntax for inline-assembly commands, not Intel syntax.
     
  5. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #5
    Hope you know what you're doing.

    Are you sure you want to use inline assembler code that plays around with 16 bit registers?
     

Share This Page