Linux source code

I know c++ and want to view the Linux source code in c. Regular c. Where can I get the source code and what would happen if I compiled it? I got the kernel for 0.01 and that's just the files. PLZ help.
I know c++ and want to view the Linux source code in c. Regular c.

https://www.kernel.org/

Where can I get the source code and what would happen if I compiled it? I got the kernel for 0.01 and that's just the files. PLZ help.

I do not understand what the problem is. You can get the source code for the current kernel version, from the site above.

"What would happen if I compiled it?" Ughhh... you'd get a Linux kernel? Do you even know what a kernel is?

Also if you want to build it on Windows, forget it. Unless you have lots of time and patience.
I have time and patience. I downloaded the files of Linux, copied them, extracted them, saved as .txt, and haven't opened the .txt.
I need the Linux 0.01 code.
https://www.kernel.org/pub/linux/kernel/Historic/linux-0.01.tar.gz

I downloaded the files of Linux, copied them, extracted them, saved as .txt, and haven't opened the .txt.

What ".txt"? There is no such thing. You mean you extracted a .tar file? That is an archive too.

For example linux-0.01.tar.gz is an archive in two layers. The first layer is GZip. The second layer is TAR. You have to extract the second as well, and then you'll get the source code files.
Changed from directory to txt. I don't want the files I want the code behind the files that creates opens, runs and manages them.
Where's Morpheus when you need him?
Morpheus? On windows, went into properties added onto the name.txt, saved as a text file.
$ wget https://www.kernel.org/pub/linux/kernel/Historic/linux-0.01.tar.gz
$ tar xvfz linux-0.01.tar.gz
$ cat linux/*/*.c
Last edited on
what is that
Didn't send earlier, just noticed.
"source code" is "just files". Give an example, where would not be true.
Hi,

maybe you can get much better help if you give us details what you want to do exactly.

If you are interested in Operating Systems, I would suggest that you get Minix instead. Together with the book about operating systems from Andrew Tanenbaum. You find all information about that topic on http://www.minix.org.

The next suggestion is that you really get the system itself that you are interested in. So if you are interested in the Linux kernel (or into Minix if you follow my suggestion), then you should get a VM with Linux or Minix to play around with it. (Always look at the documentation what the build system is!).

And for Linux 0.01 you might need a minix system, too. Linus developed his kernel on Minix and I am not sure which linux version was able to be a good build system itself. I think a linux 0.99pl1 was the first system that I used in the past which was a complete usefull system. But maybe there was earlier versions without x11 that could have been used already....

But my main suggestion if you are interested in development of operating systems is really to go and check out the mentioned book. It is something that was seen as "bible" at university when I studied computer science (ok, a lot changed because that is already 15 years ago! But the book is still great and gives you a good overview what an operating system is and so on. And Minix is great because it is not build as an operating system which should compete. It is just a platform to learn it - so a lot of things are kept in an easy to understand way instead to build up a great and powerfull system.

I hope this helped a little bit.

With kind regards,

Konrad
He created a new thread here http://www.cplusplus.com/forum/unices/102472/
Topic archived. No new replies allowed.