Thread: general question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    DESTINY BEN10's Avatar
    Join Date
    Jul 2008
    Location
    in front of my computer
    Posts
    804
    my opinion in this matter is different.learning c first definitely eases your understanding of other languages.that's why i think most of the universities still prefer to teach c instead of c++ or some other modern language.and yes as far as i know UNIX was the OS written completely in c which shows that operating systems can also be written in c.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Quote Originally Posted by BEN10 View Post
    my opinion in this matter is different.learning c first definitely eases your understanding of other languages.that's why i think most of the universities still prefer to teach c instead of c++ or some other modern language.and yes as far as i know UNIX was the OS written completely in c which shows that operating systems can also be written in c.
    The only reason I see that C++ is "better" for learning is it's object orientated. But that alone is hardly a good enough reason to choose C++ over other object-orientated languages. But the distinction for learning certainly depends on what's being taught and for what purpose.

    But let's not step into another argument, (some) people are rather one-sided.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    399
    Quote Originally Posted by BEN10 View Post
    and yes as far as i know UNIX was the OS written completely in c which shows that operating systems can also be written in c.
    That statement is a bit misleading considering that most operating systems are written in a combination of assembly and C, while hardly any are written purely in C++.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Memloop View Post
    That statement is a bit misleading considering that most operating systems are written in a combination of assembly and C, while hardly any are written purely in C++.
    And a major reason for this has nothing to do with C or C++, but rather that most operating systems in use today were originally written some 10+ years ago by programmers with several years of experience - which meant that they started prgramming before the 1990's, most likely. Whilst C++ technically existed at that time, it was neither mature, nor commonly used.

    And you CAN NOT write an OS in C or C++ alone. There will be some lines of assembler involved to do some of the tricky bits that deal with specific registers of the processor. And for most machines, there is a need to have a few instructions of assembler code to set up a suitable environment to run C itself.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A general question aout programming?
    By bradt93 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-26-2008, 11:00 AM
  2. winsock - general question
    By keira in forum Windows Programming
    Replies: 1
    Last Post: 09-28-2007, 01:56 PM
  3. another exercise question
    By luigi40 in forum C# Programming
    Replies: 3
    Last Post: 11-28-2005, 03:52 PM
  4. general programming compatability question
    By Metarectilinear in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 10-25-2002, 11:51 PM
  5. general question regarding a function parameter
    By mlupo in forum C Programming
    Replies: 7
    Last Post: 10-13-2002, 07:32 PM