need gcc 4.4 on Mac OS X 10.5 Leopard

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

  1. marjb macrumors newbie

    Oct 28, 2009
    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. Cromulent macrumors 603


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

    Oct 28, 2009
    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. marjb thread starter macrumors newbie

    Oct 28, 2009
    Found the solution myself. GCC uses AT&T syntax for inline-assembly commands, not Intel syntax.
  5. gnasher729 macrumors P6


    Nov 25, 2005
    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