Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

According to this post :

http://channel9.msdn.com/Forums/Coffeehouse/MS-working-on-a-same-compiler-for-C-AND-C--Not-in-incubation-but-for-production-

How much truth is in this post? Should it be taken seriously by hardcore C++ programmers (game devs etc)??

Edit : There's another purpose to this question... Will C# be backward compatible with C++?

share|improve this question

closed as not constructive by thorsten müller, Steve Evers, gnat, Walter, Jan Hudec Nov 28 '12 at 13:29

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

5  
+1 because the linked job postings on the Microsoft site do indeed mention a compiler for c# and C++ careers.microsoft.com/jobdetails.aspx?jid=81769 –  MarkJ Nov 28 '12 at 8:48
    
I wonder why its not in the news these days.... –  user73830 Nov 28 '12 at 9:13
    
Both C# and C++ can benefit from the same optimisations performed over a common IR, therefore it might make sense to have a unified compiler. –  SK-logic Nov 28 '12 at 13:31
1  
Why should it be backward-compatible? These languages are too different, which does not mean they cannot both share the same compiler middle layer (while still targeting the different backends). –  SK-logic Nov 28 '12 at 13:40
1  
E.g., the polyhedral analysis (which they've mentioned explicitly in the ad) will be exactly the same for both languages, with some additional dependency on aliasing analysis for the C++ frontend. –  SK-logic Nov 28 '12 at 13:43
show 1 more comment

2 Answers

up vote 8 down vote accepted

Not a chance in hell. It would take the most drastic refactoring of a language ever to make it work with C++ and it would break every inch of existing C# code. They're most likely just trying to share the same native code generation framework.

share|improve this answer
add comment

Probably incorrect in the specifics. MS already has a native MSIL compiler in the form of Ngen. It wouldn't surprise me if both Ngen and cl used the same code gen back end so that they share improvements like the mentioned auto vectorization.

share|improve this answer
    
No, cl does not share any common backend with ngen. –  SK-logic Nov 28 '12 at 14:00
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.