inherit
128590
0
Aug 25, 2012 20:46:48 GMT -8
Nick (Goodbye!)
AMF!
1,813
July 2008
nickos
|
Post by Nick (Goodbye!) on Aug 16, 2009 15:00:24 GMT -8
What coding language does Unix, Windows, and OS X use?
|
|
inherit
fishgomoo
85493
0
Nov 19, 2012 13:59:58 GMT -8
dude
cows go glug
2,539
July 2006
dudelicious
|
Post by dude on Aug 16, 2009 15:22:33 GMT -8
Think the programmers usually code in c family languages - if I remember rightly the linux kernel is written in c. There's also some bits written in assembly and it used to be the case that all operating systems were written entirely in assembly.
|
|
inherit
128590
0
Aug 25, 2012 20:46:48 GMT -8
Nick (Goodbye!)
AMF!
1,813
July 2008
nickos
|
Post by Nick (Goodbye!) on Aug 16, 2009 15:29:31 GMT -8
So they use a mix of Assembly and C?
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Aug 16, 2009 16:19:41 GMT -8
So they use a mix of Assembly and C? Kernels are almost always written in C with Assembly being used for certain device interactions and strapping. Once you're above the kernel the languages begin to vary.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Aug 16, 2009 19:40:24 GMT -8
So they use a mix of Assembly and C? Kernels are almost always written in C with Assembly being used for certain device interactions and strapping. Once you're above the kernel the languages begin to vary. I heard that "the core" which I took to be the kernal was usually written in assembly for better performance, and then C was gradually used. Is this a false statement? I read it on a website where this guy was developing his own OS, but I really haven't read much about them and I'm sure that the development for them is constantly changing.
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Aug 16, 2009 20:07:16 GMT -8
Kernels are almost always written in C with Assembly being used for certain device interactions and strapping. Once you're above the kernel the languages begin to vary. I heard that "the core" which I took to be the kernal was usually written in assembly for better performance, and then C was gradually used. Is this a false statement? I read it on a website where this guy was developing his own OS, but I really haven't read much about them and I'm sure that the development for them is constantly changing. I definitely have not gone digging around in the Linux kernel because quite frankly I don't have much interest in OS architecture. But I do know that Linux uses a relatively small amount of Assembly. Likely just what is absolutely required for architecture-specific routines. The bulk is written in C.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Aug 16, 2009 20:25:06 GMT -8
I heard that "the core" which I took to be the kernal was usually written in assembly for better performance, and then C was gradually used. Is this a false statement? I read it on a website where this guy was developing his own OS, but I really haven't read much about them and I'm sure that the development for them is constantly changing. I definitely have not gone digging around in the Linux kernel because quite frankly I don't have much interest in OS architecture. But I do know that Linux uses a relatively small amount of Assembly. Likely just what is absolutely required for architecture-specific routines. The bulk is written in C. Yeah, I'm sure these days that is true because writing assembly isn't any fun and takes forever. It would be good to know, though. They say you can write more efficient code in high level languages since you know what the compiler will be doing with it.
|
|
inherit
50924
0
Feb 28, 2021 14:59:32 GMT -8
BFD
Last place must get awful crowded at the Nice Guy Olympics
1,708
July 2005
dwinman164
|
Post by BFD on Aug 17, 2009 10:09:25 GMT -8
According to my professors in college (way back in the early 90's), IBM and Microsoft were doing their primary operating system development in C, then rewriting the poor performing routines in Assembly. I believe this applied primarily to OS/2 (the precursor to Windows NT, XP and beyond). I've skimmed a few operating system architecture white papers since then that indicated compiler optimization technologies have advanced to the point where a human cannot improve performance using assembly. The only place it would be used is, as Bobby Hensley indicated, architecture specific tasks.
|
|
inherit
128590
0
Aug 25, 2012 20:46:48 GMT -8
Nick (Goodbye!)
AMF!
1,813
July 2008
nickos
|
Post by Nick (Goodbye!) on Aug 17, 2009 11:29:34 GMT -8
Can an operating system be written in C++? Or only C?
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Aug 17, 2009 15:30:35 GMT -8
Can an operating system be written in C++? Or only C? You don't have to use C, but C is most likely the best to use because of performance.
|
|
inherit
66746
0
Oct 7, 2012 14:05:38 GMT -8
«The Silver Lining»™
^ Me !!!!
1,338
December 2005
chrisrulez001
|
Post by «The Silver Lining»™ on Aug 17, 2009 15:57:38 GMT -8
Ive been thinking of making a small operating system, I was thinking of using C++ and if your going to use C++, i found a good tutorial for making C++ kernels: www.osdever.net/tutorials/pdf/cpp_kernel.pdfIve always wanted to make an os in C++ since i started programming in the language. I just dont know where to start at the moment. Im carefully studing tutorials on the net.
|
|
inherit
128590
0
Aug 25, 2012 20:46:48 GMT -8
Nick (Goodbye!)
AMF!
1,813
July 2008
nickos
|
Post by Nick (Goodbye!) on Aug 24, 2009 11:34:29 GMT -8
Okay, thanks. That helps a lot.
|
|
inherit
66746
0
Oct 7, 2012 14:05:38 GMT -8
«The Silver Lining»™
^ Me !!!!
1,338
December 2005
chrisrulez001
|
Post by «The Silver Lining»™ on Aug 24, 2009 15:10:40 GMT -8
No problem
|
|