频 道 直 达 - 新闻 - 培训 - 软件 - 教程 - 前沿 - 组网 - 系统应用 - 安全 - 编程 - 存储 - 操作系统 - 数据库 - 服务器 - 专题 - 产品 - 案例库 - 读书 - 博客 - BBS
51CTO.COM_中国最大的网络技术网站
找资料:

64-Bit Windows

作者: Jeffrey Richter, Christophe Nasarre 出处:Microsoft Press  2008-07-25 18:20    砖    好    评论   进入论坛
阅读提示:《Windows核心编程(第5版•英文版)》深入剖析了Windows程序员必须掌握的底层实现机理,通过大量贴近实战、精心编写的代码,详细阐述了Windows的各种基本要素,如字符和字符串、内核对象、进程、作业、线程、纤程、内存管理、DLL和异常处理等。本文介绍了微软新发布的64-Bit Windows,并和32-bit windows进行对比,对其优势和特性进行了简单描述。

64-Bit Windows

Microsoft has been shipping 32-bit versions of Windows that support the x86 CPU architecture for many years. Today, Microsoft also offers 64-bit versions of Windows that support the x64 and IA-64 CPU architectures. Machines based on these 64-bit CPU architectures are fast gaining acceptance. In fact, in the very near future, it is expected that all desktop and server machines will contain 64-bit CPUs. Because of this, Microsoft has stated that Windows Server 2008 will be the last 32-bit version of Windows ever! For developers, now is the time to focus on making sure your applications run correctly on 64-bit Windows. To this end, this book includes solid coverage of what you need to know to have your applications run on 64-bit Windows (as well as 32-bit Windows).

The biggest advantage your application gets from a 64-bit address space is the ability to easily manipulate large amounts of data, because your process is no longer constrained to a 2-GB usable address space. Even if your application doesn't need all this address space, Windows itself takes advantage of the significantly larger address space (about 8 terabytes), allowing it to run faster.

Here is a quick look at what you need to know about 64-bit Windows:

    The 64-bit Windows kernel is a port of the 32-bit Windows kernel. This means that all the details and intricacies that you've learned about 32-bit Windows still apply in the 64-bit world. In fact, Microsoft has modified the 32-bit Windows source code so that it can be compiled to produce a 32-bit or a 64-bit system. They have just one source-code base, so new features and bug fixes are simultaneously applied to both systems.

    Because the kernels use the same code and underlying concepts, the Windows API is identical on both platforms. This means that you do not have to redesign or reimplement your application to work on 64-bit Windows. You can simply make slight modifications to your source code and then rebuild.

    For backward compatibility, 64-bit Windows can execute 32-bit applications. However, your application's performance will improve if the application is built as a true 64-bit application.

    Because it is so easy to port 32-bit code, there are already device drivers, tools, and applications available for 64-bit Windows. Unfortunately, Visual Studio is a native 32-bit application and Microsoft seems to be in no hurry to port it to be a native 64-bit application. However, the good news is that 32-bit Visual Studio does run quite well on 64-bit Windows; it just has a limited address space for its own data structures. And Visual Studio does allow you to debug a 64-bit application.

    There is little new for you to learn. You'll be happy to know that most data types remain 32 bits wide. These include ints, DWORDs, LONGs, BOOLs, and so on. In fact, you mostly just need to worry about pointers and handles, since they are now 64-bit values.

Because Microsoft offers so much information on how to modify your existing source code to be 64-bit ready, I will not go into those details in this book. However, I thought about 64-bit Windows as I wrote each chapter. Where appropriate, I have included information specific to 64-bit Windows. In addition, I have compiled and tested all the sample applications in this book for 64-bit Windows. So, if you follow the sample applications in this book and do as I've done, you should have no trouble creating a single source-code base that you can easily compile for 32-bit or 64-bit Windows.

 

【责任编辑:阚书 TEL:(010)68476606】

回书目   上一节   下一节
专题
轻量级J2EE 企业应用实战: Struts+Spring+Hibernate整合开发
AJAX企业级开发
无线与峰窝通信
算法导论
深入SQL Server 2008
我也说两句

匿名发表

(如果看不清请点击图片进行更换)


中 国 最 大 的 网 络 技 术 网 站 ·
技 术 成 就 梦 想
订阅技术快讯
电子杂志下载
名称:SQL Server数据库管理精品黄皮书
简介:书中文章经过精挑细选,便于用户能根据自己的实际工作和学习,快速在本书寻找到相关资料。内容涵盖了SQL Server的安装与升级、语句查询、数据备份和恢复、自动化任务、数据同步、数据字典、安全和预防、性能和优化、集群等各方面应用信息,以及DBA管理人员在数据库管理工作中
名称:2007路由技术大全
简介:《2007路由技术大全》由51CTO.com网站特别策划制作,该书包括路由器技术、路由器产品、路由器配置、安全设置、路由器故障处理、路由器密码恢复,以及广大网友在实践使用中的心得经验和技巧文章,内容注重实用性,适用于初学者入门,也适合多年从业者提高,是一本实践和理论完
名称:网络安全精品应用黄皮书
简介:《2007精品网络安全黄皮书》包括了9个大类24个小类, 800余篇文章,内容包含了熊猫烧香病毒、DDOS攻击、ARP病等热点问题的介绍及解决方案。从病毒查杀、防范、系统、数据等各方面的安全设置到黑客技术的了解、防范,涉及到了安全应用的全部领域, 由浅至深内容全面。
龙芯要做中国的“奔腾”
龙芯要做中国的“奔腾”
云计算时代来临
云计算时代来临
思科认证之CCNP考试最新资料宝典
思科认证之CCNP考试最新资料..
· 思科认证之CCNP考试最..
· 浏览器的战国时代
· IT工程师该不该考CCIE..
· 固态硬盘(SSD)开疆扩土
· 华为员工自杀频频拷问..
· 深入SQL Server 2008
· Python实用开发指南
· ARP攻击防范与解决方案
· WebSphere 实现SOA的利..
· 虚拟化的“赤壁之战”
· 重复数据删除技术
· 运营商封堵ADSL共享 中..
· 2008年上半年全国软考..
· Windows Server 2008专..
· 体验Visual Studio 200..
· SQL Server 2008/2005..
ARP攻击防范与解决方案
ARP攻击防范与解决方案
Java基础教程
Java基础教程
Java基础教程
Java基础教程
· Java基础教程
· SQL Server 2008/2005..
· SOA 面向服务架构
· SQL Server 2008/2005..
· SQL Server入门到精通
· 无线网状网(MESH)
· Windows远程桌面应用
· C#技术开发指南
· Windows集群服务应用
· C#技术开发指南
· 文档格式标准开战 OOXM..
· UML统一建模语言
· 路由器设置与口令恢复
· Linux 集群技术专题
· SOA 面向服务架构
· 企业数据恢复指南
ARP攻击防范与解决方案
ARP攻击防范与解决方案
Java基础教程
Java基础教程
SQL Server 2008/2005全解
SQL Server 2008/2005全解
· SQL Server 2008/2005..
· Java基础教程
· SQL Server入门到精通
· SQL Server 2008/2005..
· SOA 面向服务架构
· C#技术开发指南
· C#技术开发指南
· Windows远程桌面应用
· 企业数据恢复指南
· Windows集群服务应用
· UML统一建模语言
· 路由器设置与口令恢复
· Linux 集群技术专题
· SOA 面向服务架构
· 解析35岁技术人的价值..
· ASP.NET开发教程