Do all Microsoft Compilers produce the same code?

  • Thread starter Thread starter Russ Ryba
  • Start date Start date
R

Russ Ryba

I was just wondering if all Microsoft compilers produced the same code,
given the same libraries. I see there is Enterprise Architect,
Enterprise Developer, Professional Academic, then the basic compilers
standard. I know that the different versions offer lots of different
tools for building and maintaining source code.

My needs are pretty simple though. So assuming I've got the same
straight C# or VB.Net code, will they make the same binary?

I've looked on msdn.microsoft.com, and google groups, but I didn't find
any answers.

Thanks,
- Russ Ryba
 
Different versions of VS products use the same compilers (e.g. vbc, csc)

The vb and cs compilers produce similar code but not identical in all cases.
The focus on the vb compiler is compatibility with previous VB versions
whereas the focus of the C# compiler is speed. Given that you can mix
languages via dlls, that the differences are small and that some differences
in generated IL are optimised away when the IL is JITed, this should not be
a factor in any decisions you are trying to make.

Cheers
Daniel
 
Though since you're asking in the CF group specifically don't take that to
mean that you can create CF apps with any version. The libraries and
compiler items necessary for CF development are only availble in Studio Pro
or better, not the single language editions.
 
Back
Top