How did they write the C and C++ languages?

This is a discussion on How did they write the C and C++ languages? within the C++ Programming forums, part of the General Programming Boards category; Ok FillYourBrain, I am trying to fill my brain. I don't see how assembly isn't trivial because there isn't much ...

  1. #31
    Shadow12345
    Guest
    Ok FillYourBrain, I am trying to fill my brain. I don't see how assembly isn't trivial because there isn't much abstraction to it...do you think you could dumb down to me (seriously) and explain it in human terms? I thought something abstract was just an idea, for example shape could be a base class because it is an abstract idea. Rectangle and square on the other hand are not abstract, because they are more specific and you can create instances of them.

  2. #32
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Originally posted by Shadow12345

    Troll_King what do you mean by 'it seems that writing a non trivial language would be difficult' what do you mean non trivial? Is an assembly language non trivial? Does that mean it can't use conditional statements (such as ifs and whiles?)

    I don't know any asm.

    And what do you mean write a framework that utilizes an intermediate language...do you mean like databasing with SQL? SQL is kind of like an intermediate/simple language used for controlling how data is accessed from databases.
    In order to write a compiler for Microsoft, you need to use the system interface. You would need to understand it in detail.

    A framework is an abstraction that takes away some of the complication of a poorly designed system interface such as Win32.

  3. #33
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    abstraction.... hmmmm.... how do I describe this in english...

    machine language = lowest level of abstraction. Not abstract at all.

    assembly = slightly abstracted looks more readable but its not machine language

    high level language = high level of abstraction meaning they made it much different than machine language and more readable to us. More abstract
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  4. #34
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    It's better just to write a trivial programming language for MS Windows, not a compiler. There is a point where you don't want to write systems for MS, infact it's a bad idea. A compiler is a problem and you might have a difficult time acquiring the resources.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21