• Welcome to the Off-Topic/Schweb's Lounge

    In addition to the Mac-Forums Community Guidelines, there are a few things you should pay attention to while in The Lounge.

    Lounge Rules
    • If your post belongs in a different forum, please post it there.
    • While this area is for off-topic conversations, that doesn't mean that every conversation will be permitted. The moderators will, at their sole discretion, close or delete any threads which do not serve a beneficial purpose to the community.

    Understand that while The Lounge is here as a place to relax and discuss random topics, that doesn't mean we will allow any topic. Topics which are inflammatory, hurtful, or otherwise clash with our Mac-Forums Community Guidelines will be removed.

What language?

N

NeoNitric

Guest
What lanugage is Mac OS X written in?

Probably sounds like a noobie question, but im interested to know.

NeoNitric
 
OP
N

NeoNitric

Guest
And thats written in C, right?

What about the rest of the system if thats only the core?

NeoNitric
 
Joined
Feb 25, 2003
Messages
5,279
Reaction score
138
Points
63
Location
Tropical Island, Jealous?
Your Mac's Specs
MacPro 3.0Ghz 16GB RAM, 4x256 Vid, 30''cinema display
UNIX is its own language. I think mac osx would be written in something more powerful than C.
 
Joined
Jun 25, 2004
Messages
1,779
Reaction score
65
Points
48
Location
Luxemburg, Europe
Your Mac's Specs
PowerMac G5 Dual 2GHz (June 2004), 2.5GB, Airport, black 5G iPod 30GB, white MacBook 2.0 2GB
Graphite said:
UNIX is its own language. I think mac osx would be written in something more powerful than C.

C is complicated, yet very powerfull, and a couple of OSes, if not most of them, have been written in C. I don't know about which language was used for OS X, or UNIX, but the most powerfull (and complicated) language would be Assembler (pure machine code).
Nowadays, not a lot people can write Assembler anymore, as it is very complicated and difficult. Nevertheless, Assembler-programs run faster then any other language.
 
Joined
Feb 25, 2003
Messages
5,279
Reaction score
138
Points
63
Location
Tropical Island, Jealous?
Your Mac's Specs
MacPro 3.0Ghz 16GB RAM, 4x256 Vid, 30''cinema display
Avalon said:
C is complicated, yet very powerfull, and a couple of OSes, if not most of them, have been written in C. I don't know about which language was used for OS X, or UNIX, but the most powerfull (and complicated) language would be Assembler (pure machine code).
Nowadays, not a lot people can write Assembler anymore, as it is very complicated and difficult. Nevertheless, Assembler-programs run faster then any other language.

correct :black:
 
Joined
Mar 30, 2004
Messages
4,744
Reaction score
381
Points
83
Location
USA
Your Mac's Specs
12" Apple PowerBook G4 (1.5GHz)
Unix was originally written in Assembly for various DEC PDP machines. It was later re-developed in C.
http://en.wikipedia.org/wiki/Unix
In 1973, the decision was made to re-write UNIX in the C programming language. The change meant that UNIX could later easily be modified to work on other machines (thus becoming portable), and other variations could be created by other developers. The code was now more concise and compact, leading to an acceleration in the development of UNIX. AT&T made UNIX available to universities and commercial firms, as well as the United States government under licenses.
If you download the Darwin source code from Apple, you'll end up with a bunch of .c files.

Portions of the rest of OS X (Cocoa) are built using Objective-C, which is Apple's preferred language for application development.

The original Mac OS was written (at least partially) in both Pascal and Motorola 68000 assembly code.
 
Joined
Mar 30, 2004
Messages
4,744
Reaction score
381
Points
83
Location
USA
Your Mac's Specs
12" Apple PowerBook G4 (1.5GHz)
Graphite said:
UNIX is its own language....
Unix is many things, but it's not a language. You may be thinking of Unix shell scripts, which do have their own language, but this is one that's interpreted by the shell.
Avalon said:
Assembler-programs run faster then any other language.
Only if the programmer knows what he or she is doing. These days, compiler optimization is very sophisticated, and often ends up producing better optimized code than what the average human programmer could put together in assembly.
 
Joined
Mar 14, 2005
Messages
275
Reaction score
4
Points
18
Your Mac's Specs
iMac G5 17", 1.8 Ghz, 1GB RAM
technologist said:
Unix is many things, but it's not a language. You may be thinking of Unix shell scripts, which do have their own language, but this is one that's interpreted by the shell.
Only if the programmer knows what he or she is doing. These days, compiler optimization is very sophisticated, and often ends up producing better optimized code than what the average human programmer could put together in assembly.

Wow, you sure know your stuff! :biohazard
 
Joined
Jun 25, 2004
Messages
1,779
Reaction score
65
Points
48
Location
Luxemburg, Europe
Your Mac's Specs
PowerMac G5 Dual 2GHz (June 2004), 2.5GB, Airport, black 5G iPod 30GB, white MacBook 2.0 2GB
technologist said:
Only if the programmer knows what he or she is doing. These days, compiler optimization is very sophisticated, and often ends up producing better optimized code than what the average human programmer could put together in assembly.

I totally agree with that. :headphone
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top