Is there any way to generate assembly code from C# code? I know that it is possible with C code with GAS, but does anybody know if it\'s possible with C#?
C# code compiles into MSIL (MS Intermediate Language) which is actually not really asm-code you get from C compiler. Read more about about how .NET Framework applications run.
If you want to look at generated IL code see this question.