环境:Windows 2003 Server x64 Edition, Visual Studio 2005
64-bit 的编程模型有很多种(LP64、LLP64、ILP64),Windows x64 版采用的是 LLP64 模型:
int、long 都是 32-bit,void* 是 64-bit,新增数据类型 long long,也是 64-bit。
我写了个 console 程序试验了一把,一下子就 new 出了 16 G 内存,太爽了,以后写程序不用为内存斤斤计较了。
http://herd.plethora.net/~seebs/c/10com.html
本文探讨了Windows2003Serverx64Edition环境下,使用VisualStudio2005进行64位编程的特点及优势。重点介绍了LLP64模型下数据类型的处理方式,并通过实例展示了大量内存分配的可能性。
1万+

被折叠的 条评论
为什么被折叠?



