thanks for being so helpful everytime i have a questions guys. i love this site.
is minix 3 written in mostly C++ or c? i am learning C++ right now and in a year or 2 when i become more fluent in C++ i want to attempt to make an operating system/modify an operating system. i once read that it was impossible to make a operating system out of only C++. i know that its a bad idea, not sure why though. but is it possible to make a VERY basic os with only C++.
The foundation of almost every operating system out there is written with a combination of C and ASM (assembly). These are the two most common languages since they allow low-level communication between hardware and software. Depending on which part of the operating system you're writing, C is often preferred.
C++ relies on an OS. Since the operating system is currently in development, C++ has nothing to rely on. With the ASM and C combination, there's little you cannot produce. ASM is generally used for the really low-level production such as CPU utilization and memory allocation protocols. C, on the other hand, is used for the rest of the OS development, since it's easier and allows grouping of data, call PODs (Plain Old Data).
Thanks again AWH. its like something just clicked in my head. now i understand SO MUCH MORE. i think that i am going to learn C++ then practice it for a year. then learn C (i assume it is better than ASM because more ppl use it) and practice that for a year then attempt to make an os. thanks again :)
(i assume it is better than ASM because more ppl use it)
They are 2 different languages, for 2 different purposes. It's like saying cars are better then trucks because more people use them. It's easier to do what you need to in a car, but when you need a truck, there is no getting around it, you need a truck.