¡@

Home 

c# Programming Glossary: ldc.i4.1

Performance difference for control structures 'for' and 'foreach' in C#

http://stackoverflow.com/questions/1124753/performance-difference-for-control-structures-for-and-foreach-in-c-sharp

System.Console WriteLine object IL_0010 ldloc.2 IL_0011 ldc.i4.1 IL_0012 add IL_0013 stloc.2 IL_0014 ldloc.2 IL_0015 ldloc.1..

Why Enum's HasFlag method need boxing?

http://stackoverflow.com/questions/11665279/why-enums-hasflag-method-need-boxing

i 1 class mscorlib System.ValueType v IL_0000 nop IL_0001 ldc.i4.1 IL_0002 stloc.0 IL_0003 ldloc.0 IL_0004 box mscorlib System.Int32..

Generate tail call opcode

http://stackoverflow.com/questions/15864670/generate-tail-call-opcode

L_0005 L_0003 ldarg.1 L_0004 ret L_0005 ldarg.0 L_0006 ldc.i4.1 L_0007 sub L_0008 ldarg.1 L_0009 ldarg.0 L_000a add L_000b call.. L_0005 L_0003 ldarg.1 L_0004 ret L_0005 ldarg.0 L_0006 ldc.i4.1 L_0007 sub L_0008 ldarg.1 L_0009 ldarg.0 L_000a add L_000b call.. L_0006 L_0004 ldarg.1 L_0005 ret L_0006 ldarg.0 L_0007 ldc.i4.1 L_0008 sub L_0009 ldarg.1 L_000a ldarg.0 L_000b add L_000c starg.s..

Is there a way to see the native code produced by theJITter for given C# / CIL?

http://stackoverflow.com/questions/1945719/is-there-a-way-to-see-the-native-code-produced-by-thejitter-for-given-c-sharp

of method Program Divider versus IL_0000 ldarg.0 IL_0001 ldc.i4.1 IL_0002 shr IL_0003 ret end of method Program Shifter So the..

Is the conditional operator slow?

http://stackoverflow.com/questions/2259741/is-the-conditional-operator-slow

L_0170 ldarg.1 L_0171 ldc.i4.s 0x62 L_0173 stind.i2 L_0174 ldc.i4.1 L_0175 ret 2 The Conditional Operator L_0165 ldarg.1 L_0166.. br.s L_016f L_016d ldc.i4.s 0x42 L_016f stind.i2 L_0170 ldc.i4.1 L_0171 ret Some observations The conditional operator branches..

Are .Net switch statements hashed or indexed?

http://stackoverflow.com/questions/3366376/are-net-switch-statements-hashed-or-indexed

string int32 Add 0 1 L_003a dup L_003b ldstr y L_0040 ldc.i4.1 L_0041 call instance void mscorlib System.Collections.Generic.Dictionary`2.. L_00ca L_00ce L_00d2 L_00d6 L_00bc br.s L_00da L_00be ldc.i4.1 L_00bf stloc.1 L_00c0 br.s L_00de L_00c2 ldc.i4.2 L_00c3 stloc.1..

Scope of variables in C#

http://stackoverflow.com/questions/3979493/scope-of-variables-in-c-sharp

ldc.i4.3 IL_0001 stloc.0 IL_0002 ldloc.0 IL_0003 ldc.i4.1 IL_0004 ble.s IL_000c IL_0006 ldc.i4.2 IL_0007 stloc.1 IL_0008..

Is there any performance difference between ++i and i++ in C#?

http://stackoverflow.com/questions/467322/is-there-any-performance-difference-between-i-and-i-in-c

System.Console WriteLine int32 IL_000c ldloc.0 IL_000d ldc.i4.1 IL_000e add IL_000f stloc.0 IL_0010 ldloc.0 IL_0011 ldc.i4 0x100000.. System.Console WriteLine int32 IL_0022 ldloc.0 IL_0023 ldc.i4.1 IL_0024 add IL_0025 stloc.0 IL_0026 ldloc.0 IL_0027 ldc.i4 0x100000..