EH在作业指令中 [英] EH in Assignment Instructions

查看:109
本文介绍了EH在作业指令中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我一直在尝试使用.NET可执行文件的HIR表示,我在理解下面简单程序的输出时遇到了一些问题:






代码段

解决方案

7月7日SDK没有正确清除异常数据,所以(正如您所说)正在描述一个不可能发生的异常。通常,您可以使用安全查询来查看异常可能发生的确切原因,但我的回忆是这些代码的大部分内容都是在07年7月SDK中的初步形式。


< p align = left>


所以,除了应用你自己的逻辑去除没有意义的异常边缘之外,目前你做的不多。如果您可以等待一个月左右并拿起下一个SDK,那么事情看起来会好得多。伪造的异常边缘消失了,并且有表达式临时代表大多数MSIL堆栈活动:






Code Snippet


Hi,

 

I have been experimenting a bit with HIR representations of .NET executables and I have some problems understanding the output for the simple program below:

 

Code Snippet

解决方案

The July 07 SDK is not properly clearing the exception data and so (as you note) is describing an exception that can't happen. In general you can use the saftey queries to see the exact reasons why exceptions can happen, though my recollection is that much of this code was in preliminary form in the July 07 SDK.

 

So, not much you can do at present other than apply your own logic to remove the exception edges that don't make sense. If you can wait a month or so and pick up the next SDK, things look much better. The bogus exception edges are gone, and there are expression temporaries representing most of the MSIL stack activity:

 

Code Snippet


这篇关于EH在作业指令中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆