x64本机工具命令提示符和x64跨工具命令提示符有什么区别? [英] What is the difference between x64 Native Tools Command Prompt and x64 Cross Tools Command Prompt?

查看:864
本文介绍了x64本机工具命令提示符和x64跨工具命令提示符有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在64位Windows 8.1上安装了32位Visual Studio 2013.我有5个命令提示符:

I have installed 32 bit Visual Studio 2013 on my 64 bit Windows 8.1. I have 5 command prompts:

  1. VS2013开发人员命令提示符
  2. VS2013 ARM交叉工具命令提示符
  3. VS2013 x64交叉工具命令提示符
  4. VS2013 x64本机工具命令提示符
  5. VS2013 x86本机工具命令提示符

我不明白两者之间的区别:

I do not understand the difference between:

  • VS2013和VS2013 x86本机工具的开发人员命令提示符 命令提示符
  • VS2013 x64交叉工具命令提示符与VS2013 x64本地工具命令提示符
  • Developer Command Prompt for VS2013 Versus VS2013 x86 Native Tools Command Prompt
  • VS2013 x64 Cross Tools Command Prompt Versus VS2013 x64 Native Tools Command Prompt

推荐答案

交叉编译器是在一个平台上执行但为另一个平台生成代码的编译器.您的机器有两个可以生成x64代码的编译器.一个是vc/bin/amd64_x86目录中的32位交叉编译器,另一个是vc/bin/amd64目录中的64位本机编译器.它们都生成完全相同的x64机器代码.

A cross compiler is a compiler that executes on one platform but generates code for another. Your machine has two compilers that can generate x64 code. One is the 32-bit cross compiler in the vc/bin/amd64_x86 directory, the other is a 64-bit native compiler in the vc/bin/amd64 directory. They both generate the exact same x64 machine code.

只有在具有32位操作系统的情况下,才必须使用交叉编译器.对它生成的程序进行调试和测试是令人不愉快的,您需要另一台计算机并使用远程调试器.好的,也许是构建服务器.如果您使用的是Windows的64位版本,那么两种选择都可以,但您最好选择"x64本机".编译器和链接器的速度稍快一些,可以处理更大的程序.

You only must use the cross compiler when you have a 32-bit operating system. Debugging and testing the program it generates is unpleasant, you need another machine and use the remote debugger. Okay for a build server, perhaps. If you have the 64-bit version of Windows then either choice is fine, but you favor the "x64 Native" selection. The compiler and linker are slightly faster and can tackle much bigger programs.

这也说明了为什么只有ARM的交叉编译器选择,而开发机中没有ARM处理器的原因.

This also explains why you only have the cross compiler selection for ARM, you don't have an ARM processor in your dev machine.

这篇关于x64本机工具命令提示符和x64跨工具命令提示符有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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