Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ANSI C compliance

ANSI C compliance

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ffazly
    wrote on last edited by
    #1

    Is Visual C++.Net ANSI C compliant?

    A M 2 Replies Last reply
    0
    • F ffazly

      Is Visual C++.Net ANSI C compliant?

      A Offline
      A Offline
      Andrew Walker
      wrote on last edited by
      #2

      The short answer is no, but 7.1 is very close. What they are missing out on is relatively minor at the moment - specifically separate compilation of templates using export. Probably a better question to ask is 'is there another compiler out there better?', and there are some. Intel's compiler is an optimizing compiler, and comeau seems to travel ahead of the pack feature wise. Some of the major compilers are compared in the boost regression tests , although this isn't an entirely fair comparison because of compiler based configuration files and developer mistakes it gives a rough indication of how compilers perform in real world situations.


      If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts you aim; Yours is the Earth and everything that's in it. Rudyard Kipling

      1 Reply Last reply
      0
      • F ffazly

        Is Visual C++.Net ANSI C compliant?

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        Yes, but it allows a lot of extensions. Compile with the /TC (Compile as C) and /Za (Disable Language Extensions) options to ensure that you're compiling as C rather than C++, and only using ANSI features. (The other poster is talking about C++ conformance, which is a different thing.)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups