Re:Herb Sutter confirms no more support for C beyond C90 in ...
by bunderbunder on Thursday May 03, 2012 @05:20PM
(#3925878)
The sheer amount of code that can be compiled on every platform but VS because of this is. . .
. . . not actually very much. Visual Studio can use Intel's compiler, and perhaps others.
Re:Herb Sutter confirms no more support for C beyond C90 in ...
by cube13 on Thursday May 03, 2012 @05:24PM
(#3925894)
GCC and Sun Studio offer different compilers for C and C++. You can compile C code with Sun Studio's CC, but normally you would use cc for C code.
Re:Herb Sutter confirms no more support for C beyond C90 in ...
by bunderbunder on Thursday May 03, 2012 @05:44PM
(#3925966)
The others, too. llvm, gcc, and icc all support both C and C++. But they also support Fortran using the same technique: A separate compiler front-end for each language.
For VC++ to add support for C as easily as many compiler collections do would require VC++ having a modular architecture like that of the other compiler collections. Considering VC++ only supports one language, that seems doubtful.
Re:Herb Sutter confirms no more support for C beyond C90 in ...
by someone-else on Thursday May 03, 2012 @06:04PM
(#3926044)
It already supports C. They're just not updating the version, leaving it stuck in C89 mode.
Re:Herb Sutter confirms no more support for C beyond C90 in ...
by bunderbunder on Thursday May 03, 2012 @06:13PM
(#3926075)
Touche.
Perhaps I should have said "Supporting versions of C past the point where one could plausibly just pipe the C code through a C++ compiler."
Re:Herb Sutter confirms no more support for C beyond C90 in ...
by adgar on Thursday May 03, 2012 @06:47PM
(#3926183)
> Perhaps I should have said "Supporting versions of C past the point where one could plausibly just pipe the C code through a C++ compiler."
Like supporting for-loop variable declarations, which MSVC's C++ compilation mode (/TP) supports, but MSVC's C compilation mode (/TC) does not?
Oh - and what about declaring a variable anywhere other than the start of a scope? Allowed in C++, not in C. Cute.
The sheer amount of code that can be compiled on every platform but VS because of this is very significant, especially open source ones. I have a hard time buying the resource reason to be honest.