Thread: Microsoft C vs. non-evil C

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912

    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,829
    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,829
    >>>
    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,380
    >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,829
    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,829
    >>> 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, 09:13 AM
  2. Apps that act "differently" in XP SP2
    By Stan100 in forum Tech Board
    Replies: 6
    Last Post: 08-16-2004, 10: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, 04:54 AM