Microsoft made a smart move
Quote:
Originally posted by Witch_King
I've also read that C# will be faster than JAVA. The reason has to do with the fact that JAVA compiles to Byte Code or something of that nature, while C# can be compiled so that it is OS specific or else an intermediate language run time. I don't understand all of this stuff yet but the point is that C# will be a feasable choice for games.
Bytecode is an intermediate language. The JRE translates that bytecode into OS specific executable code. If C# can be compiled to be OS specific, it's no improvement on C, since if it's written correctly, C code can be compiled the same way. If C# translates to an intermediate language, it's no better than Java, since Java does the same.
Perhaps C# uses a lower level intermediate language(which makes it faster), or perhaps the gimmick is that cross compiling is part of the compiler.
My bet(this is all speculation) is that C# compiles to a language whose format is extremely similar to x86's executable code, but with escaped system calls. That would make C# programs run much faster on Intel/AMD chips, but probably won't be on Motorola or other chips. That would make it fast enough to run games, and would be cross-platform given that a program similar in function to WINE could change the system calls and alter the instructions to fit the particular OS.
If that's true, it would make Microsoft seem more friendly to their best-publicized competitor--Linux--while at the same time reduce the viability of the OS that actually has the greatest number of users(okay, granted, the statistics are debatable)--Mac. Very smart move. Excellent play on Microsoft's part.
And since Linux didn't need C# in the first place--WINE is very similar to a program that would be needed to run it, and it runs normally compiled x86 programs(granted, C# will be able to run on SPARC and ALPHA chips, so that's a plus over WINE, but the speed decrease may eliminate any potential benefit it might have)--Linux will gain nothing from the deal, even though to the uniformed public, it seems like a magnanimous gesture on Microsoft's part.
But this is all speculation. It does give me some interesting ideas though. This definately warrants further consideration.