Compilers

This is a discussion on Compilers within the C++ Programming forums, part of the General Programming Boards category; i have noticed that in some compilers the C++ language differs fairly from one another. WHY IS THS????...

  1. #1
    Unregistered
    Guest

    Exclamation Compilers

    i have noticed that in some compilers the C++ language differs fairly from one another. WHY IS THS????

  2. #2
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Because different people have produced them?

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    317
    The integral features are usually the same, however all the compiler added features(libs and what not) are for the reason stated above.

  4. #4
    Unregistered
    Guest
    thanks

  5. #5
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    mainly cuz they are desgned for different OS
    and the best compiler is CODEWARRIOR
    on both MACs and WIN, dont know about linux.

  6. #6
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >i have noticed that in some compilers the C++ language differs
    >fairly from one another. WHY IS THS????

    There is a ANSI C++ standard. Compilers should support this standard, but most of them don't. A lot of compilers have their specific additions to C++ or implement just a subset of C++. This is not only with C++, but also with other languages.

    There are several reasons for this:
    1. Some companies think they know better and change C++ in such a way they think is the best.
    2. Some applications don't make use of all C++ stuff, so the compilers for these applications have only a subset of C++.

    There are probably more reasons.

    >mainly cuz they are desgned for different OS

    The ANSI standards are OS-independant. A C++ or C program which is conform the ANSI standard, can be compiled on whatever OS if the used compiler is ANSI compliable.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  3. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 07:03 AM
  4. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 03:21 PM
  5. target OS compilers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-01-2002, 11:08 AM

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