ad info

 
CNN.com  technology > computing
    Editions | myCNN | Video | Audio | Headline News Brief | Feedback  

 

  Search
 
 

 
TECHNOLOGY
TOP STORIES

Consumer group: Online privacy protections fall short

Guide to a wired Super Bowl

Debate opens on making e-commerce law consistent

(MORE)

TOP STORIES

More than 11,000 killed in India quake

Mideast negotiators want to continue talks after Israeli elections

(MORE)

MARKETS
4:30pm ET, 4/16
144.70
8257.60
3.71
1394.72
10.90
879.91
 


WORLD

U.S.

POLITICS

LAW

ENTERTAINMENT

HEALTH

TRAVEL

FOOD

ARTS & STYLE



(MORE HEADLINES)
*
 
CNN Websites
Networks image


Could Apple run Mac OS X on PC hardware?

MacWorld Online

(IDG) -- As Motorola struggles to boost the speed of the PowerPC G4, Mac users have been speculating for months about the possibility that Apple might dump the chip in favor of CPUs from Advanced Micro Devices (AMD) or Intel. The calls to action began early this year when Apple software engineer Wilfredo Sanchez reported that he had successfully compiled the Darwin OS to run on a PC. Internet message boards lit up again in October when Apple reported slower-than-expected fourth-quarter sales and saw its stock value plummet.

Darwin is only the foundation of Mac OS X, and does not include such elements as the Quartz imaging engine or the Aqua graphical user interface. Nevertheless, developers told MacWEEK that Apple could port its next-generation OS to PC hardware with relative ease -- if it were willing to make trade-offs, such as abandoning Classic Mac applications or forcing them to run in a slow emulation environment. Apple -- and Mac developers -- would also face the challenge of managing dual hardware platforms because there would still be a huge base of Macs with PowerPCs.

  MESSAGE BOARD
 
  ALSO
 

"If Apple were to devote time and resources to this project, it could definitely be done," said Bob Murphy, chief technical officer for ShadeTree, whose business includes porting other companies' applications to Mac OS X.

Apple declined to comment for this article.

A rebuilt kernel

In April, at Apple's annual shareholders meeting, CEO Steve Jobs said that the company had no plans to port the Mac OS to Intel hardware. However, Murphy said that making the move would largely be a matter of rebuilding the Mach kernel -- the part of the OS that talks directly to the hardware -- and writing new device drivers.

"Rebuilding the kernel would not be too difficult because Mac OS X is built on the same Mach kernel that NeXT used," he said. NeXT Computer's OpenStep operating system ran on x86 hardware.

MORE COMPUTING INTELLIGENCE
IDG.net   IDG.net home page
  MacWorld Online home page
  Apple's Q4 nothing to sing about
  Apple shores up open-source commitment with Darwin
  Apple's old nemesis is now one of its best developers
  Reviews & in-depth info at IDG.net
  E-BusinessWorld
  TechInformer
  Questions about computers? Let IDG.net's editors help you
  Subscribe to IDG.net's free daily newsletters
  Search IDG.net in 12 languages
  News Radio
  * Fusion audio primers
  * Computerworld Minute

Sanchez' achievement with Darwin came on one specific PC configuration, and Apple still does not offer PC installers for download. To get Darwin -- and ultimately Mac OS X -- to run on different configurations, Apple would need to develop new drivers for the mouse, CD-ROM, memory controller and other components. Manufacturers would have the option, as they do now, of making their hardware work with Apple's generic drivers -- if available -- or creating their own.

Straightforward process

For Apple, developing the needed drivers would not be a big engineering challenge. "Drivers are straightforward--I don't think that Apple is facing research problems here," Murphy said.

James Berry of Critical Path Software agreed that creating drivers is a well understood task, but said it would still require a significant allocation of resources. Critical Path offers driver development and Mac OS X porting services.

"Creating these drivers would not be so bad if Apple sanctions a specific hardware configuration for a new x86 Mac," Berry said. If Apple followed its tradition of designing systems from the ground up--rather than simply porting the OS to generic PC hardware--its engineers could drastically reduce the number of drivers needed, he said.

Scott Anguish of StepWise, a longtime OpenStep/Cocoa developer, believes that Apple would probably take this approach if it decided to embrace AMD or Intel. "Apple would likely ship a proprietary box instead of going the PC clone route," he said.

Hardware concerns

Apple uses many off-the-shelf PC components, such as USB, PCI and ATA, and their requisite controllers are all capable of supporting an x86 CPU. However, Apple continues to make its own memory controller, which would have to be redesigned to work in an x86 system, said Chris Cooksey, director of engineering at XLR8. Because it uses a different addressing scheme than the one used in PC systems, the Mac's current UniNorth memory controller would not provide data in a format that the new CPU would understand.

However, replacing the controller would be relatively simple, Cooksey said, noting that one of numerous off-the-shelf x86-based memory controllers could be used in a new Mac motherboard design.

Apple could conceivably get AMD or Intel to design a CPU that operates on the existing Mac motherboard, but it would be "much easier to change the memory controller than to redesign the CPU," Cooksey said. Moreover, redesigning the x86 would defeat one of the goals of moving to that hardware--taking advantage of an economy of scale.

Classic left behind?

The higher layers of Mac OS X would need some debugging and optimization for peak performance on an x86 CPU. However, developers told MacWEEK that the code rests high enough above the Darwin kernel that this work would be relatively straightforward.

Applications written to the Cocoa and Carbon APIs should work fine in a hypothetical Mac OS x86 configuration. However, this wouldn't be the case for Classic Mac applications. To support Classic, a future Mac OS x86 would require a PowerPC emulator, which would likely suffer the same performance drawbacks seen in SoftWindows or VirtualPC on the Mac. Applications would be stable, but they would run much more slowly than they do on their native processor--and in Mac OS X's Classic environment (the PowerPC can successfully emulate 68K code because it is so much faster than a 68K processor).

Moving to a new hardware platform would also create logistical challenges, because Apple would still have to support the large base of PowerPC hardware. The Mac OS--and Mac applications--would have to be compiled for both processors. However, Berry noted that this could be made transparent to users thanks to Mac OS X's bundling capabilities, which allow developers to store executables for different processors in a bundle that appears as a single application.

How long would it take Apple to make the move? It all depends on resources, Berry said. But he added that "it would be easier to move Mac OS X to another processor than it was to move from Mac OS 9 to Mac OS X."



RELATED STORIES:
Analysis: Inside Mac OS X's Unix layer
September 18, 2000
An inside look at Mac's OS X
September 14, 2000
U.K. magazine: Apple computers easy to use
November 6, 2000
Interplay PC games Mac-bound
November 3, 2000
Corel will stick with Mac
October 6, 2000

RELATED IDG.net STORIES:
Macworld's MacOS X home page
(MacWorld)
Mac OS X Beta diary: Classic and Aqua
(MacWorld)
The public beta of Mac OS X is here, and we've got the details
(MacWorld)
Bluffers' guide to OS X
(MacWorld UK)
Mac OS X delivers clean, refreshing Aqua
(InfoWorld)
Apple Unveils OS X Beta, iBooks
(PC World)
Coolness Cubed: Apple's Radical New Mac
(PC World)
PC World's Macintosh OS page
(PC World)

RELATED SITES:
Open Source Projects at Apple
ShadeTree
Critical Path Software
StepWise

Note: Pages will open in a new browser window
External sites are not endorsed by CNN Interactive.

 Search   

Back to the top   © 2001 Cable News Network. All Rights Reserved.
Terms under which this service is provided to you.
Read our privacy guidelines.