【问题标题】:how to check type of processor architcture runtime [duplicate]如何检查处理器架构运行时的类型[重复]
【发布时间】:2012-06-27 12:33:14
【问题描述】:

可能重复:
Identifying the CPU architecture type using C#

我的程序的最后一部分使用了不同的程序集。问题是 amd 和 intelx64 程序集不完全兼容。它适用于我正在使用的编译器。

【问题讨论】:

    标签: c# x86-64 itanium


    【解决方案1】:

    您可以使用异常处理,使用 try 和 catch。

    try
    {
        // intel assembly
    }
    catch
    {
        // amd assembly
    }
    

    【讨论】:

    • 这实际上可能无法很好地工作,因为某些程序集可能会在错误发生之前运行。这只是一个想法
    猜你喜欢
    • 2020-10-20
    • 1970-01-01
    • 1970-01-01
    • 2014-10-13
    • 2013-11-02
    • 2020-06-20
    • 2010-12-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多