x86运行x64 cmd。 [英] x86 Ap the run x64 cmd.

查看:252
本文介绍了x86运行x64 cmd。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,在 X64 操作系统中,我有一个 x86 应用程序,它将运行一些cmd。默认情况下,应用程序运行x86 cmd,但我希望应用程序运行 x64 cmd.Is有任何方法,谢谢。

Now, In the X64 OS, I have an x86 Application which will run the some cmd. Default, the App run the x86 cmd , but I want the App run the x64 cmd.Is there any method for this , Thank you.

推荐答案

请参阅我对该问题的评论。



让我们看看。没有X64 OS这样的东西。你的意思是MFC,OS可能是Windows。有不同的 CPU指令集架构的版本( http://en.wikipedia.org/wiki/ Instruction_set [ ^ ])。



通常,它是x86-64,Itanium(IE64)或x86。只有最后一个是32位,它与所有64位架构兼容。在Windows上,它通过WoW64支持。了解它的作用非常重要:

http://en.wikipedia.org/wiki / WOW64 [ ^ ]。



现在或多或少清楚了吗?所有不同的体系结构都与其指令不兼容。您无法在一个进程中组合编译为目标不同指令集架构的可执行模块。也就是说,应该在一个进程中使用相同的目标指令集。在这两种64位体系结构中,都模拟了32位平台。



您的x86应用程序意味着它是针对x86(32位)指令集编译的,没有其他的。因此,此代码只能在WoW64下运行,作为32位进程。没有别的。



-SA
Please see my comment to the question.

Let''s see. There is no such thing as X64 OS. As you mean "MFC", "OS" is probably Windows. There are versions for different CPU instruction-set architectures (http://en.wikipedia.org/wiki/Instruction_set[^]).

Usually, it is x86-64, Itanium (IE64) or x86. Only the last on is 32-bit, and it is compatible with all 64-bit architectures. On Windows, it is supported via WoW64. It''s important to understand what it does:
http://en.wikipedia.org/wiki/WOW64[^].

Is it more or less clear now? All different architectures are incompatible by their instructions. You cannot combine executable modules compiled to target different instruction-set architecture in one process. That is, the same target instruction set should be use in one process. On both 64-bit architectures, 32-bit platform is emulated.

Your "x86" application means that it was compiled targeting x86 (32-bit) instruction set, nothing else. Hence, this code can run only under WoW64, as a 32-bit process. Nothing else.

—SA


这篇关于x86运行x64 cmd。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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