小试一把 64 位 Windows 编程

来源:互联网 发布:金蝶无法引出数据 编辑:程序博客网 时间:2024/05/16 01:47

环境: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




原创粉丝点击