Microsoft C vs. non-evil C

This is a discussion on Microsoft C vs. non-evil C within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Is there any difference in the actual CODE for microsoft C and the non-evil C most of us use? P.S. ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    Microsoft C vs. non-evil C

    Is there any difference in the actual CODE for microsoft C and the non-evil C most of us use?

    P.S. Not a big fan of microsoft.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Both C and C++ have ANSI standards. Most modern compilers are basically ANSI compliant, however, just about all of them have a few little deviations, and additions. In that respect, MS are like the others.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    What makes Microsoft different is they believe that implementing the whole standard isn't that useful (god forbid large C++ applications would be easily portable to other compilers, and thus, other platforms).

    "Microsoft’s goal is to have a ‘competitively compliant’ compiler – meaning it won’t be 100% compliant."

    Or an anti-competitive compliant compiler, meaning anyone who knows C++ won't have trouble with the syntax, but

    Here is an article in which Microsoft gives a sugar coated FU to compliance (or at least that's how I read it)

    http://www.codeproject.com/interview...n14nov2001.asp
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>>
    What makes Microsoft different is they believe that implementing the whole standard isn't that useful (god forbid large C++ applications would be easily portable to other compilers, and thus, other platforms).
    <<<

    If this was a MS specific attitude, why do the other compiler suppliers not implement the standard?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >What makes Microsoft different is they believe that
    >implementing the whole standard isn't that useful

    Through the years I've seen many C-compilers and I must say that most compilers where not ANSI C compilers. Most of them had extensions to ANSI C some of them implemented just a subset of ANSI C.

    So many compiler-developers seem to agree with Microsoft on that point.

  6. #6
    Registered User Fool's Avatar
    Join Date
    Aug 2001
    Posts
    335
    I always was told MS used a proprietary version of C. It wouldn't make sense to use the normal C like everyone else. If any of the source ever made it out the door it would be bad news for MS. Having a special version of C, it makes that much more difficult.

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    In my experience, the differences between MS C and C++ and the ANSI standard are small, and mostly in slightly esoteric parts of the standard. The same can generally be said for the other compiler manufacturers.

    In short, I do not believe there are any totally compliant solutions out there, (at least not yet), but that the differences there are, are unlikely to cause significant problems with porting, (at least from a language point of view).
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  8. #8
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Things as trivial as proper for loop scoping aren't implemented correctly with the Microsoft version of C++. That is not an esoteric feature of the langauge, and it caused me undue headaches trying to change compilers because I relied on the MS scoping.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  9. #9
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> loop scoping

    I have never had a problem with this, simply because I consider relying on that to be bad style, so don't do it.

    The only really irksome problem I have with VC++ is the way it returns NULL if "new" fails rather than throwing a bad_alloc exception as the standard says it should.

    I've had equally irksome problems with C++ Builder, and the current C++ compiler on OpenVMS.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. Apps that act "differently" in XP SP2
    By Stan100 in forum Tech Board
    Replies: 6
    Last Post: 08-16-2004, 11:38 PM
  3. Another Microsoft joke
    By Panopticon in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 02-02-2003, 12:53 PM
  4. Microsoft rulling
    By Sentaku senshi in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-02-2002, 03:50 AM
  5. Retaliation towards witch king\microsoft
    By Koshare in forum Linux Programming
    Replies: 7
    Last Post: 10-19-2001, 05:54 AM

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