Git development
 help / color / mirror / Atom feed
From: Stephen Bash <bash@genarts.com>
To: Scott Chacon <schacon@gmail.com>
Cc: Sverre Rabbelier <srabbelier@gmail.com>,
	Kyle Neath <kneath@gmail.com>, tom smitts <tomsmitts@ymail.com>,
	git@vger.kernel.org, Timothy Harper <timcharper@gmail.com>
Subject: Re: mac osx
Date: Wed, 21 Sep 2011 11:42:17 -0400 (EDT)	[thread overview]
Message-ID: <32759526.24168.1316619736958.JavaMail.root@mail.hq.genarts.com> (raw)
In-Reply-To: <CAP2yMaJz3-iX11vhbrTVasFD1zdwsdiDFKU7z7=an8pBoORk8w@mail.gmail.com>

----- Original Message -----
> From: "Scott Chacon" <schacon@gmail.com>
> Sent: Wednesday, September 21, 2011 10:58:03 AM
> Subject: Re: mac osx
> 
> On Wed, Sep 21, 2011 at 5:52 AM, Timothy Harper <timcharper@gmail.com>
> wrote:
> >>> On Tue, Sep 20, 2011 at 3:40 PM, tom smitts <tomsmitts@ymail.com>
> >>> wrote:
> >>>> Do the git maintainers really think any mac users have
> >>>>  a clue which git install package to download? You
> >>>> put some arcane chipset designation in the package
> >>>>  name!
> >
> > Good point, I'll update the description to include "32-bit" and
> > "64-bit"
> 
> Honestly this doesn't help much. I think the point is that these
> numbers or machs are not in any of the docs or ads I can think of for
> macs. I feel pretty stupid admitting this to this list, but I
> honestly don't know which macs are 32 bit - I assume the MBP is 64,
> but if someone challenged me I'm not sure I could really defend it.

Perhaps I can shed some light on the subject...  (Long time Mac user and developer of software that has to deal with these sorts of issues all the time)

Starting with the hardware: Apple announced the switch to Intel processors in 2005, with the first machines shipping in early 2006 with the Intel Core Duo (i386/32-bit) processors.  In August of 2006 they introduced a Xeon-based Mac Pro that used the x86_64/64-bit instruction set.  According to Wikipedia [1] by August of 2007 every Mac shipped was based on an x86_64 chip.

Now Apple confused things with the software: Mac OS 10.5 (Leopard) introduced the ability to run 64-bit applications (and access more the 4GB of memory), but the kernel was still 32-bit (I've skimmed some articles about how they did this, but I don't remember the details now).  According to this article [2] it wasn't until OS 10.6.4 (Snow Leopard) that Apple actually made the boot default to the 64-bit kernel (but I have first hand experience with commercial software that changes the default back to 32-bit!).

And during all this users were never educated about the difference because many (most?) applications built for Mac ship "universal binaries" with multiple architectures linked into the same file (though there are still a lot that just ship 32-bit).  I don't know how much effort it would be to update the Git Makefile for universal builds on Macs (sometimes it's as easy as "-arch i386 -arch x86_64"), but that might be the most "Mac-like" way to go.

For the geeks in the audience if you really want to know:
  a) the instruction sets linked in a binary (executable or shared library): 
        $ file /path/to/binary/of/interest
  b) the currently booted kernel architecture: 
        $ uname -m
  c) the currently running architecture set of any application: 
        Activity Monitor lists in the column "kind": PowerPC, Intel, or Intel (64-bit)

[1] http://en.wikipedia.org/wiki/Apple%E2%80%93Intel_transition
[2] http://macperformanceguide.com/SnowLeopard-64bit.html

HTH,
Stephen

  parent reply	other threads:[~2011-09-21 15:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20 22:40 mac osx tom smitts
2011-09-20 22:53 ` Graham Christensen
2011-09-20 23:29 ` Junio C Hamano
2011-09-21  3:40 ` Kyle Neath
2011-09-21  9:34   ` Sverre Rabbelier
2011-09-21 12:52     ` Timothy Harper
2011-09-21 14:58       ` Scott Chacon
2011-09-21 15:41         ` Sverre Rabbelier
2011-09-21 15:42         ` Stephen Bash [this message]
2011-09-21 17:49         ` Timothy Harper
2011-09-21 18:01           ` Scott Chacon
2011-09-21 18:09             ` Timothy Harper
2011-09-21  9:44 ` Sverre Rabbelier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32759526.24168.1316619736958.JavaMail.root@mail.hq.genarts.com \
    --to=bash@genarts.com \
    --cc=git@vger.kernel.org \
    --cc=kneath@gmail.com \
    --cc=schacon@gmail.com \
    --cc=srabbelier@gmail.com \
    --cc=timcharper@gmail.com \
    --cc=tomsmitts@ymail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox