class Program
      {
            static void Main(string[] args)
            {
                  DoWork();
            }

            static void DoWork()
            {
                  new Person().Run();
            }

      }

      class Person {
            public void Run() { }
      }

Debug 下的IL指令:

编译为 Release 与 Debug 的区别编译为 Release 与 Debug 的区别

Release 下的IL指令:

编译为 Release 与 Debug 的区别编译为 Release 与 Debug 的区别

nop 描述:

如果修补操作码,则填充空间。尽管可能消耗处理周期,但未执行任何有意义的操作。

 

相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-02-18
  • 2022-03-07
猜你喜欢
  • 2021-12-20
  • 2022-12-23
  • 2021-12-05
  • 2021-09-06
  • 2021-11-06
相关资源
相似解决方案