LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-03-2005, 08:32 AM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
What created Linux?


is it C or C++ programming is used to create the whole linux?
i also wonder, what microsoft used to create windows?
i learned C and C++,
how can that language create something so great?
 
Old 10-03-2005, 08:39 AM   #2
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
C and lots, and lots of time with plenty of help from the community. No one person created Linux, Windows is broken creating a broken OS isn't too hard
 
Old 10-03-2005, 12:38 PM   #3
Ray_Kovecses
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 66

Rep: Reputation: 15
GNOME = C
KDE = C++
WINDOWS = C
 
Old 10-03-2005, 06:15 PM   #4
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
just wonder how can C created so powerful OS?
the C we learn in school of course is not able to do it, right?
Even knowing the whole book of C written by Deitel, can u do it?
Is it Advanced Learner's C? OR something else not in the book ?
 
Old 10-03-2005, 06:33 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
the C we learn in school of course is not able to do it, right?
Of course. C is C.

I don't know what you learned in school, but probably they did not spend too much time on advanced memory management or low-level hardware control, or any of the other thousands of issues you must master to develop a usable OS.

If you want to see how it is done, well, the kernel source is out there for you to read at your leisure.

It should also be noted that the linux kernel is not strictly C, some of the architecture specific details are actually written in assembly, see for example /usr/src/linux/arch/i386/boot/setup.S which grabs info from the BIOS...
 
Old 10-04-2005, 11:56 AM   #6
PMorph
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 213

Rep: Reputation: 31
Well. I know how to cut my hand using a scalpel, but don't really excell in brain surgery
Basic understanding of tools is just the very beginning of it.
 
Old 10-04-2005, 05:00 PM   #7
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
i learn C#,
can i contribute to developing linux packages?
 
Old 11-17-2005, 06:29 AM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
i learn C#,
can i contribute to developing linux packages?
No...

C# is a $MS bastardisation of C isn't it? Only compiles on Win32?

In any event, Linus won't even allow C++ in the kernel, even after being pressured.

So for the time being, it's C only...
 
Old 11-17-2005, 04:00 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
C# is a $MS bastardisation of C isn't it?
It is more a kind of Java, without the portability.
 
Old 11-18-2005, 02:24 AM   #10
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally posted by bulliver
Linus won't even allow C++ in the kernel, even after being pressured.

So for the time being, it's C only...
who in the world would pressure for all that higher level structural crap in the kernel ? That would make no sense at all.
 
Old 11-18-2005, 02:28 AM   #11
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
who in the world would pressure for all that higher level structural crap in the kernel ? That would make no sense at all.
Well, every once in a while someone posts to the LKML asking if they can submit kernel drivers written in C++...

Maybe 'pressure' was the wrong word
 
Old 11-18-2005, 10:01 AM   #12
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I would that there is really a very practical reason why C++ is not used in kernel space. These are powerful and convenient languages, but they require a lot of "runtime library" support to do what they do. These languages are designed to run in an operating-system environment, with a slew of lower level routines, exception-handling support, and so on. Since the kernel is in the business of providing these niceities to its clients, it doesn't have many of them for itself. The environment in which the kernel runs is much more austere.

There are a lot of "object-style" implementations to be found throughout the kernel, such as (for example) the device-driver interface and filesystem-driver interfaces; they are simply implemented "by hand." And they are stripped-down, minimal, as is all of the kernel. It is critical for any kernel coder to always know exactly what will happen when her code is executed on the machine.

In a lot of ways, the kernel consists of a bunch of over-glorified subroutines, responding endlessly to system-calls and other interrupts. It's not a huge program by any means, although it is complicated. It's designed to be small and fast, and sturdy, "no matter what." But it is, always, only the nucleus of what's going on. It is only "the system control program," master of the hardware and thus inextricably tied to it. Most of what you think of as "the Linux system/environment" is actually found in shared libraries which are wrapped-around the kernel, so to speak. And you are quite free to use C++ or anything-else-you-like there.
 
Old 11-19-2005, 05:29 PM   #13
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Quote:
Originally posted by jlliagre
It is more a kind of Java, without the portability.
Mono!

Remember, Microsoft originally proposed C# as an open standard and open source developers have embraced it.

http://www.mono-project.com/Main_Page
 
  


Reply



Posting 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux can't see newly created partition Dswissmiss Linux - Software 5 05-17-2004 08:05 AM
Permission for files created in NT for Linux use strik3r Linux - General 1 02-25-2004 04:05 AM
first process created in linux h/w Programming 10 01-08-2004 04:36 PM
Sinbad Created 100% entirely with Linux... Whitehat General 4 07-03-2003 12:18 AM
Linux Users created via Script ??? HOW ?? Lutzer Linux - Networking 1 07-31-2002 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration