<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文 &#187; intel_wise</title>
	<atom:link href="http://software.intel.com/zh-cn/blogs/author/intel_wise/feed/" rel="self" type="application/rss+xml" />
	<link>http://software.intel.com/zh-cn/blogs</link>
	<description></description>
	<lastBuildDate>Mon, 28 May 2012 13:40:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>用英特尔编译器进行跨平台编译</title>
		<link>http://software.intel.com/zh-cn/blogs/2010/06/22/400004223/</link>
		<comments>http://software.intel.com/zh-cn/blogs/2010/06/22/400004223/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 03:44:09 +0000</pubDate>
		<dc:creator>intel_wise</dc:creator>
				<category><![CDATA[并行计算]]></category>
		<category><![CDATA[英特尔® 软件网络 2.0]]></category>
		<category><![CDATA[软件开发工具]]></category>

		<guid isPermaLink="false">http://software.intel.com/zh-cn/blogs/2010/06/22/400004223/</guid>
		<description><![CDATA[最近，有些工程师使用英特尔C/C++编译器在64位机器上编译32位的应用程序时，遇到了一些问题；例如：安装完32位和64位编译器后，使用 -m32编译选项无法工作；另外，有些人想知道是否在32位机器上能编译64位应用程序？等等相关问题。 为了方便，我将有关信息总结如下： 首先，还是让我们看看用户手册上是如何定义和说明有关 m32和 m64选项的吧！ m32, m64 Tells the compiler to generate code for a specific architecture. 通知编译器生成用户说明的特殊架构的机器代码 IDE Equivalent 相应的IDE环境 None 无 Architectures 目前支持的架构 IA-32, Intel® 64 architectures IA-32和Intel® 64架构 Syntax 语法说明 Linux and Mac OS X: -m32 -m64 Windows: None（无） Arguments 参数 None （无） Default 缺省值 OFF The compiler's behavior depends on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://software.intel.com/zh-cn/blogs/wordpress/wp-content/uploads/2010/06/截图011.png"><img class="alignnone size-medium wp-image-400004222" src="http://software.intel.com/zh-cn/blogs/wordpress/wp-content/uploads/2010/06/截图011-300x56.png" alt="" width="300" height="56" /></a>最近，有些工程师使用英特尔C/C++编译器在64位机器上编译32位的应用程序时，遇到了一些问题；例如：安装完32位和64位编译器后，使用 -m32编译选项无法工作；另外，有些人想知道是否在32位机器上能编译64位应用程序？等等相关问题。<br />
为了方便，我将有关信息总结如下：<br />
首先，还是让我们看看用户手册上是如何定义和说明有关 m32和 m64选项的吧！<br />
m32, m64</p>
<p>Tells the compiler to generate code for a specific architecture.</p>
<p>通知编译器生成用户说明的特殊架构的机器代码</p>
<p>IDE Equivalent</p>
<p>相应的IDE环境</p>
<p>None</p>
<p>无</p>
<p>Architectures</p>
<p>目前支持的架构</p>
<p>IA-32, Intel® 64 architectures</p>
<p>IA-32和Intel® 64架构</p>
<p>Syntax</p>
<p>语法说明</p>
<p>Linux and Mac OS X:<br />
-m32</p>
<p>-m64</p>
<p>Windows:<br />
None（无）</p>
<p>Arguments</p>
<p>参数</p>
<p>None （无）</p>
<p>Default</p>
<p>缺省值</p>
<p>OFF<br />
The compiler's behavior depends on the host system.</p>
<p>编译器的行为依赖主机系统的架构</p>
<p>Description</p>
<p>详细描述</p>
<p>These options tell the compiler to generate code for a specific architecture.</p>
<p>以下这些编译选项通知编译器生成一种说明的特殊架构的机器代码</p>
<p>The -m32 and -m64 options are the same as Mac OS* X options -arch i386 and -arch x86_64, respectively. Note that these options are provided for compatibility with gcc. They are not related to the Intel® C++ compiler option arch.</p>
<p>-m32和-m64选项分别对应Mac OS* X系统里编译器选项的–arch i386 和 –arch x86_64。需要说明的是这些选项与gcc相兼容。他们和Intel® C++编译器选项中的arch无关。</p>
<p>如果你想使用上述特性开发自己的项目，你需要检查一下你的开发系统是否满足下面的要求（请参考Intel® C++ Compiler Professional Edition 11.1 for Linux Installation Guide and Release ntoes.pdf获取更详细的信息）</p>
<p>Requirements to development IA-32 architecture applications</p>
<p>开发IA-32架构应用程序的要求</p>
<p>l A PC based on an IA-32 or Intel® 64 architecture processor supporting the Intel® Streaming SIMD Extensions 2(Intel® SSE2) instructions;</p>
<p>一台IA-32或Intel® 64架构处理器的PC机，并且支持INTEL® Straming SIMD Extensions 2（Intel®SSE2）指令集</p>
<p>l …</p>
<p>l If developing on an Intel ®64 architecture system, some Linux distributions may require installation of one or more of the following additional Linux components: ia32-libs, lib32gcc1, lib32stdc++6, libc6-dev-i386, gcc-multilib</p>
<p>如果在Intel® 64架构系统上开发Linux程序，一些Linux包需要事先安装：ia32-libs, lib32gcc1, lib32stdc++6, libc6-dev-i386, gcc-multilib</p>
<p>Requirements to Develop Intel® 64 Architecture Applications</p>
<p>开发Intel® 64架构应用程序的要求</p>
<p>l A PC based on an Intel® 64 architecture processor</p>
<p>一台Intel® 64架构处理器的PC机</p>
<p>l …</p>
<p>l Linux component containing 32-bit libraries(may be called is32-libs)</p>
<p>包含32-bit开发包的Linux组件（开发包是ia32-libs）</p>
<p>在MSVS2008或MSVS2005上如何编译</p>
<p>我们看到相关的编译选项 –m32和 –m64是在Linux和Mac OS系统上的使用的，微软视窗系统开发环境并没有相关的说明。当我们使用MSVS2005或MSVS2008开发相关系统时，在项目的配置管理员属性对话框里，通过设置当前结果平台参数完成是否生成Win32或Win64的目标代码。</p>
<p>从上面的说明我们可以看到，到目前为止，系统并不支持在一台32位系统上编译64位的目标代码。这也是一些开发人员经常问到的问题。所以但我们计划开发相关块平台的项目时，尤其是不同架构的系统时，我们需要认真地检查一下我们开发的系统配置是否支持相关工作的开发。</p>
<p>希望上述总结能方便相关信息的查找和说明！</p>
]]></content:encoded>
			<wfw:commentRss>http://software.intel.com/zh-cn/blogs/2010/06/22/400004223/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

