Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Other than Indie game development, C# is also used for in house tool development at large studios.

I have two questions -:

1) Is microsoft planning to release a native C# compiler sharing the backend code generator with the C++ compiler? http://www.compilerjobs.com/db/jobs_view.php?editid1=648

2) If microsoft IS planning a native C# compiler, then can C# replace C++ as the industry standard in AAA vedio games?

share|improve this question

closed as not constructive by Nicol Bolas, Josh Petrie, Tetrad Jan 14 '13 at 22:05

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.

3  
Welcome to gamedev.stackexchange. Please check the FAQ, particularly relating to the criteria we look for in questions (practical, answerable, based on actual problems you face, etc). Making predictions about the future and guessing about a third-party's motivations are pretty thoroughly outside our scope. –  Trevor Powell Nov 29 '12 at 10:55
    
Who knows what Microsoft is planning? Ask them directly, maybe they'll dare to give you an answer. –  Laurent Couvidou Nov 29 '12 at 11:04
    
I will sare to ask, but I don't know the means ;( –  user73830 Nov 29 '12 at 11:08
add comment

2 Answers 2

up vote 0 down vote accepted

1) Who knows?

2) Even if they do release such a thing (unlikely), it still would generate far less efficient code than pure C++, because it includes many safeguards, generalizations, etc. you can't just optimize out, because code might depend on them. Also you most likely wouldn't gain any significant performance boost, because what you describe is essentially what is done at runtime anyway (to some extend).

share|improve this answer
add comment

1) Regardless of whether or not Microsoft is planning to, Mono already has an "Ahead of Time" (AOT) compilation option, converting C# to native code at compile time. Both Mono and Microsoft's implementation will JIT-compile C# to native code at runtime as well.

2) C# is already being used in AAA titles such as The Sims 3, including on consoles. C# is unlikely to outright "replace" C++: There's no practical reason to throw out existing codebases if they work well to rewrite them in C#. There's still plenty of C floating around which hasn't been replaced with C++ to this day, and a lot of C with a minor splattering of C++ as existing code has been updated and modernized as needed, rather than replaced wholesale.

tl;dr: C# is viable to use today in AAA titles, but languages replace each other at a glacial pace which is quite difficult to predict or speculate on in a worthwhile manner.

If you're interested in mono or ahead-of-time compilation, I recommended reading: http://tirania.org/slides/AltDevConf-2012-Mono.pdf

share|improve this answer
    
Is sims 3 completely implimented in mono/C# ? Or, The scripting engine and logic in C# and the renderer and some physics in C++? –  user73830 Nov 29 '12 at 15:54
    
I'm not sure what the exact breakdown is, but those slides break it down as: – C/C++ engine – C# scriping/AI – C# high-level –  MaulingMonkey Nov 30 '12 at 2:24
add comment

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