Is Mac OS X Leopard (10.5.x) 32 bit or 64 bit?

10,072

Solution 1

The short answer is that Leopard is a mix of 32-bit and 64-bit.

  • Tiger added 64-bit support for low-level system libraries, enabling 64-bit for non-GUI applications.
  • Leopard added 64-bit support throughout the system frameworks, so any app can be 64-bit.
  • Snow Leopard will add a 64-bit kernel and many 64-bit user applications shipped by Apple. The 32-bit versions of all the frameworks and libraries are of course still available, but running apps in both modes requires both stacks to be loaded, which is inefficient, and a big reason why Apple is strongly encouraging developers to get on the boat and build their apps with a 64-bit version.

Because the kernel in 10.5 is still 32-bit, the greater amount of addressable memory is achieved with some trickery. The exact details evade me at the moment, but I think that under Leopard you can only address 4 GB of physical memory — I believe the 64-bit memory space spills over to virtual memory on disk, just like when 32-bit processes exceed the amount of installed RAM.


Edit: I was incorrect about the virtual memory aspect. The 32-bit kernel can address more than 4 GB of memory, but adding lots of physical memory uses up a good chunk (~ 1/3) of the kernel's 32-bit memory space, which (at the limit) can decimate kernel performance. Obviously, if your application uses more memory than is available (either in 32-bit or 64-bit mode), the OS must map virtual memory.

Among other things, the 64-bit kernel in Snow Leopard provides breathing room in the kernel itself by vastly increasing the address space it can use, including for describing physical memory. Most people aren't running into that limit yet, but they will start to as installed RAM increases in the near future.

Solution 2

I found this series very informative:

Road to Mac OS X 10.6 Snow Leopard 64 Bits

It goes into a fair amount of depth on Apple's 64-bit support and architecture over the last few years.

Share:
10,072

Related videos on Youtube

Josh Hunt
Author by

Josh Hunt

Updated on September 17, 2022

Comments

  • Josh Hunt
    Josh Hunt over 1 year

    Is Mac OS X Leopard (10.5.x) 32 bit or 64 bit?

    Can I address more than 4GB of RAM?

  • Quinn Taylor
    Quinn Taylor almost 15 years
    Agreed, it does a pretty decent job of explaining most of the key 64-bit concepts.
  • Amok
    Amok over 14 years
    Leopard can address more than 4GB of physical memory and there is no spilling of address spaces. Your bullet points seem to be correct, but your summary is completely incorrect.
  • Arjan
    Arjan over 14 years
    Details about 64 bit in 10.6 Snow Leopard, part of another nice series: arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/5
  • Andrew J. Brehm
    Andrew J. Brehm over 14 years
    The way I understand it the OS always maps virtual memory, which is made up of physical memory and swap space.