Architecture - DevSource
DevSource: Microsoft Developer Resource DevSource Home Sponsored by Microsoft Home Add Ons Architecture Languages Techniques Using VS Forums
Home arrow Architecture arrow Microsoft, Adobe Apps Expected to Be Most Difficult to Port to Intel Macs
Microsoft, Adobe Apps Expected to Be Most Difficult to Port to Intel Macs
By John Rizzo

Rate This Article: Add This Article To:

Apple encourages developers to open their source code to help facilitate the switch to Intel chips.

At Apple's WWDC this week, the company said that applications written as Carbon applications, such as Microsoft Office and Adobe Photoshop, would be the most difficult to port to Intel-based Macs.

Apple also encouraged developers to open their source code to other developers and to use open source to help with the switch.

Apple announced on Monday that it would switch its entire line of Macs from PowerPC apps to Intel processors.

ADVERTISEMENT

At a Worldwide Developers Conference session called Mac OS X State of the Union, Bertrand Serlet, Apple's senior vice president of software engineering, told the audience of developers that they should enable their Mac software to be processor-independent, running on both PowerPC- and Intel-based Macs.

Serlet said that developers should work towards a single SKU (stock keeping unit) instead of separate versions for each processor.

"The goal is to have one box in the store," he said. Apple refers to these types of applications as "universal."

"How much work will it be?" he said. "It depends on the type of project."

Carbon applications contain old Mac OS 9 code carried over from the port to Mac OS X.

Cocoa applications, those written completely with Mac OS X technology, would be easier to port.

Most of Apple's own software products are Cocoa applications, but many major third-party apps are Carbon.

The issue for creating universal Mac software is the order of bytes stored in memory and written to a file. Developers refer to this as the Endian problem, in which PowerPC and Intel processors store bytes in opposite order.

Apple said that developers can make Carbon applications universal, but custom resources will make solving the Endian problem more difficult than Cocoa applications.

Read more here about Adobe expressing support for Apple's switch to Intel chips.

Serlet indicated that developers might have to rewrite Carbon code by hand rather using the automated tools in Apple's Xcode tools.

Serlet told developers that Apple will continue to add new Carbon tools to aid the porting process. He also suggested that the byte order problem could be eased through the use XML or HIArchive, a technique now available in Mac OS X 10.4 Tiger.

Cocoa applications will only require "minor tweaks" and a recompile to solve byte order issue and become universal, according to Apple. The use of the Objective C programming language in Cocoa software also helps.

Mac OS X Unix projects, including software for the X11 windowing environment, will be easier to make universal than Cocoa apps, according to Apple. This class of software will only need a recompile of the source code to run on Intel processors.

Serlet said that open software and open standards could help create universal Mac software. He also suggested that developers open up some of their proprietary software to share with other Mac developers.

Click here to read more about developers' reactions to the Apple-Intel deal.

Apple added that open software would help with the port to Intel processors. For instance, Tiger adds SQLite, an open database now used by Apple Mail and for RSS in Apple's Safari Web browser.

"SQLite [helps to] solves the byte ordering problem," said Serlet.

Serlet also said "GCC [GNU Compiler Collection] defines processor independence" and that the Mach O binary format "glues PPC and Intel."

Also at the Mac OS X State of the Union session, Apple encouraged developers to make applications compatible with Tiger's Spotlight search technology. Serlet said that adding metadata to documents would enable Spotlight to find the documents.

Developers can also enable their applications to search for information using Spotlight technology.

Spotlight provides "importers" that third-party software can access with plug-ins. This will give applications access to the index of information that Spotlight creates.

This article was originally published on eWEEK.com.




Discuss Microsoft, Adobe Apps Expected to Be Most Difficult to Port to Intel Macs
 
>>> Be the FIRST to comment on this article!
 

 
 
>>> More Architecture Articles          >>> More By John Rizzo
 



HD VOIP Has Arrived (with Tony Konstner)

Play Video >

All Videos >

Google and blonde jokes?

Read now >

Favorite books!

Read now >

View Now
DevSource RSS FEEDS
XML Want an easy way to keep up with breaking tech news? And the Get DevSource headlines delivered to your desktop with RSS.