Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > how hardware dependant are carbon?

how hardware dependant are carbon?
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 27, 2001, 02:17 PM
 
just how dependant on ppc hardware are the carbon language?

is there any API calls that just won't work on other hardware?

What i'm thinking is how difficult it would be to have the carbon framework? running on x86...

let's not go into discussing pros and cons, but is possible to relatively easy run carbon on x86....

is carbon only talking to the kernel or?
     
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status: Offline
Reply With Quote
Jan 27, 2001, 04:07 PM
 
Dependant on hardware? About as hardware dependant as C++. All carbon is is just a set of C++ API's to write to. If you want to use carbon on another platform you'll have to port all of it's API's. It's no more hardware dependant as Cocoa and Objective C. The majority of the libraries in AppKit and Foundation, in Cocoa, used to be exist as part of the Next OS on x86 hardware. Apple ported them. There's a difference between API's and the underlying programming language. In higher level languages, like C++, you don't need to know much about the hardware. The only thing that is ever really mentioned as a problem in higher level languages like that is the endian issue, and most of the time that isn't a problem. In assembly, knowing stuff about the hardware becomes much more important. Asking if carbon is cross compatible is meaningless. I'm sure that if someone ported the carbon API's to x86 hardware you could write to them but right now you can't. Anything that you make in "carbon" that compiles and runs on Intel hardware isn't carbon because it's not using any calls to carbon API's, it's just ANSI C or C++.
     
Fresh-Faced Recruit
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 27, 2001, 07:31 PM
 
ok thx, what I was wondering was if it's (relatively easy) technically wise to see carbon apps running on macos x86....

i guess it is


     
Fresh-Faced Recruit
Join Date: Jan 2001
Location: San Jose, CA USA
Status: Offline
Reply With Quote
Jan 30, 2001, 06:37 PM
 
No, it is not easy. What you're talking about is porting a huge chunk of Mac OS X to x86. Even with access to the original source code, this is very difficult due to all sorts of subtle differences between platforms (like endian-ness), not to mention that Carbon ultimately calls into Quartz and the Window Server, which you'd presumably have to port too. And if anyone outside Apple wants to do it, they will need to re-implement all of Carbon from scratch, which would be a huge effort.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jan 31, 2001, 01:22 PM
 
Except that Apple has already ported a large chunk of the Mac OS X code from Intel to PPC in the first place, and it's been rumoured that Apple has OS X for Intel working internally, which I don't doubt.

Endian-ness isn't that great a problem to deal with, AFAIK. Re-implementing Carbon would be possible, but pretty dumb/pointless. I don't doubt it's possible though, since GNUStep already has most of Cocoa up and running on Linux.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2