自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (44)
  • 收藏
  • 关注

原创 out of memmory 解决之道

1. 原因“堆” (heap)是一块连续的虚拟地址空间(Virtual Address Space)。用户常用malloc 和 free来申请和释放所需要的空间。 堆经过malloc,free等操作后,堆内产生了很多碎片。碎片的大小一般是物理页的整数倍。通常,用户可使用的地址空间为2到3G,空间包括了代码段、数据段、堆栈、和共享库所需的空间,其中堆占用的空间最大。但是随着碎片数量逐步增加,

2012-12-17 14:38:54 766

转载 Virtual Address Space (Windows)

The virtual address space for a process is the set of virtual memory addresses that it can use. The address space for each process is private and cannot be accessed by other processes unless it is sha

2012-12-12 16:47:10 579

转载 买红薯的故事

A,B,C三个人一起进公司,大家都努力工作,不多久,A被提拔当了部门经理,B呢被提拔当了部门主管,C呢当了业务员。C心里忿忿不平,心想我工作干得也很出色啊,为啥他们两人都升了,只有我一个在最底层呢。C找到他们的Boss说理去。Boss说,好吧,那你去看看楼下有卖烤红薯的么。C噼噼叭叭下楼去了,回来了,告诉Boss说有啊;Boss说多少钱一斤,C又劈劈啪啪下去了,一会回来说一块八。Boss说多买有便

2012-12-12 13:45:47 1842

原创 Rich and Poor

I'll do today what others won't so I can do tommorrow what others can't.

2012-11-27 10:16:34 419

转载 64位移植: Virtual Address Space in Windows 7

Virtual Address Space for 64bit:By default, 64-bit Microsoft Windows-based applications have a user-mode address space of 8 terabytes (7 terabytes on Itanium-based systems). However, applications

2012-11-13 09:33:54 608

原创 64位移植: 显示详细的build信息

VS 的编译过程对程序员来说是透明的。我们不能看到编译的选项和链接的过程。如果想看到和makefile 一样的编译过程,请使用MSBUILD 命令。VS2010 -> VS tools -> VS x64 Win64 Command Prompt 执行MSBUILD命令。 一般常用的就是3种命令:>msbuild.exe [project file]/t:build >build.txt>

2012-11-02 16:02:38 2540

原创 64位移植: Questions

1. Is there Smart way to fix many C4267 warning2. How to get variable definition from symbols tableshttp://social.msdn.microsoft.com/Forums/en-AU/architecturegeneral/thread/c854d6f2-eb59-4286-9abf

2012-11-02 15:30:59 410

原创 64位移植: DLL 和 extern "C"

首先创建一个C++工程,工程中的DLL库有两个可调用的函数。如下两个实例用来说明C++工程中不同的函数声明方式可产生不同的调用符号(symbol)。1. 当函数声明包括extern "C"时, 符号表中的函数名称和声明的函数名称是一样的。因此在调用的时候,可以直接使用这两个函数名称来调用。extern "C"__declspec(dllexport) int add(int&,int&

2012-11-02 14:55:51 2204

原创 64位移植:判断库dll是否为64位

64位的程序是不能加载32位的库,32位的库和64位应用程序是不兼容的。 所以如果在load过程中发现出错,首先得确定所加载的库是64的。如何判断库是64位的?dumpbin.exe 它用来分析二进制库和程序的结构。在应用程序中找到 VS2010 -> VS tools -> VS x64 Win64 Command Prompt 执行dumpbin命令。下面分别为32位和64位库的不同。

2012-11-02 13:40:34 3183

原创 64位移植: rebuild != clean + build

Build 意思是编译最新修改的文件和链接最新生成的库文件。Rebuild 意思是重新编译所有的文件和链接所有的库文件。Clean 意思是删除所有的库文件(lib 和dll)。根据以上定义,绝大多数情况下rebuild == clean + build。但是在我们的工程中和一些讨论中是不一样的。在我们的环境中,对其中一个project进行 clean + build 之后会出现“the

2012-11-02 11:39:12 712

转载 64位移植:非常好的学习资料

以下是非常详细系统的有关64位移植的学习资料。可能我们遇到问题时第一去搜索可以解决,但这些都是零星的知识点。这些系统的教材可以贯穿这些知识点,让自己的理解和领悟提高和升华。20 issues of porting C++ code on the 64-bit platformOptimization of 64-bit programsLessons on

2012-11-02 11:11:18 458

原创 32位到64位移植 - 新的开始,新的挑战

项目是从2012年9月份开始接手。为了解决buffer足够大的问题,最终决定将此项目移植到64位平台。新的开始,新的挑战。之前没有做过这样的项目,也没有Windows开发经验。 在移植的过程中,发现有很多有用的知识、技巧需要总结和分享。因此决定将自己的64位移植足迹留于此处。希望能够帮助他人更好的解决问题。

2012-11-02 10:59:04 347

转载 C multi-line macro: do/while(0) vs scope block

 http://docs.google.com/View?docid=ajbgz6fp3pjh_2dwwwwt#_38239340844832237  It is not about optimization.The whole idea of using do/while version is to make a macro which willexpan

2010-01-05 11:02:00 483

转载 PUTTY USE

 http://docs.google.com/View?docid=ajbgz6fp3pjh_2dwwwwt#_38239340844832237

2009-12-29 13:10:00 372

转载 Ctags TagList Install

2009-12-29 10:37:00 314

转载 HOE TO USE GDB

Guide to Faster, Less Frustrating DebuggingGuide to Faster, Less Frustrating Debugging  Norman Matloff University of California at Davis (530) 752-1953 matloff@cs.ucdavis.edu ©1992-200

2009-12-28 18:48:00 2189

原创 Lab 1: Booting a PC

终于又开始了,不求速度,但求理解的透彻。目标成为内核 hanker http://pdos.csail.mit.edu/6.828/2009/Part 1: PC BootstrapGetting Started with x86 assemblyreference:Computer Systems A Programmer's Perspective  Chapter 3 (

2009-12-23 19:22:00 549

转载 艾宾浩斯记忆曲线

2006-03-27 15:53:38 来自: 七武士 一、 复习点的确定(根据艾宾浩斯记忆曲线制定): 1. 第一个记忆周期:5分钟 2. 第二个记忆周期:30分钟 3. 第三个记忆周期:12小时 4. 第四个记忆周期:1天 5. 第五个记忆周期:2天 6. 第六个记忆周期:4天 7. 第七个记忆周期:7天 8. 第八个记忆周期:15天

2009-12-23 08:20:00 1135

原创 存储器层次结构

The Memory Hierarchy   note: SOLID STATE MEMORY (local disks) ; VIRTUAL MEMORY (distributed file system,Web servers)  存储器层次结构中心思想:对于每一层,位于上层的更快更小的存储设备作为位于下层更大更慢的存储设备的缓存。这个中心思想是由程序的局部性原

2009-12-18 20:36:00 1397

原创 吃掉棉花糖就等于吃掉未来

拥有延长满足自我欲望的能力将帮助你获得未来的成功。 你情愿获得一时的满足,而不愿意坚持一段时间来得到你真正想要的东西。我想变瘦,但是忍不住食物的诱惑。满足了一时的食欲,放弃了我的减肥计划。  

2009-12-18 19:20:00 561

原创 青蛙的故事

有三只青蛙在河中的一片叶子上顺水漂流。其中一只想跳到河里。在叶子上还剩几只青蛙?“想跳”和“跳” 是两个不同概念。有多少次下定决心减肥却发现三个月后你衣服的尺码丝毫没有变化。运用知识才是力量。如果你知道却没有做,和你不知道没什么区别。  www.askjoachim.com

2009-12-18 19:08:00 498

转载 基本记忆法

 《博赞学习技巧》 十二章 基本记忆法            -----软音和硬音的区别  What are hard/soft vowels/consonants? Terminology varies based on the language described, but there ARE some typical patternsThe MAI

2009-12-18 15:38:00 1143

MIT 6.828 JOS 全部代码

MIT 6.828 JOS 操作系统Lab1 - Lab5的全部代码。 MIT 6.828 是精典的操作系统公开课程。同时也是我们对系统学习和认知的很好的课程。作者曾经也苦于没有很好的实践方案让自己更深入的了解操作系统和x86体系机构。由于在国内很少有人参与和讨论这个实验内容。所以提供源码以便为独立完成这个实验的爱好者提供一些思路和帮助。请本着对自己负责的原则下载和参考相应部分的代码。 祝: 工作顺利。

2012-08-28

MBTI职业性格测试题

MBTI职业性格测试题 用来测试你的性格

2011-06-02

md5 C代码描述 来源MIT

md5 c 描述, 来源于MIT。不需要任何修改,直接编译使用。 非常实用。哈哈 下载链接: http://people.csail.mit.edu/rivest/md5.c

2010-08-30

The Tomes of Delphi Algorithms and Data Structures - Julian Bucknall

The Tomes of Delphi Algorithms and Data Structures - Julian Bucknall

2010-02-27

The Design And Analysis Of Spatial Data Structures - Hanan Samet

The Design And Analysis Of Spatial Data Structures - Hanan Samet

2010-02-27

Teach Yourself Data Structures And Algorithms In 24 hours - Robert Lafore

Teach Yourself Data Structures And Algorithms In 24 hours - Robert Lafore

2010-02-27

Information Retrieval Data Structures & Algorithms - William B. Frakes

Information Retrieval Data Structures & Algorithms - William B. Frakes

2010-02-27

Fundamentals of Data Structures - Ellis Horowitz

Fundamentals of Data Structures - Ellis Horowitz

2010-02-27

Dictionaryof Algorithms and Data Structures

Dictionaryof Algorithms and Data Structures

2010-02-27

Data Structures, Algorithms and Program Style Using C - James F. Korsh

Data Structures, Algorithms and Program Style Using C - James F. Korsh

2010-02-27

DATA STRUCTURES IN JAVA A Laboratory Course - Sandra Andersen

DATA STRUCTURES IN JAVA A Laboratory Course - Sandra Andersen

2010-02-27

Data Structures and Program Design in C++ - Robert L. Kruse

Data Structures and Program Design in C++ - Robert L. Kruse

2010-02-27

Data Structures Demystified - Jim Keogh

Data Structures Demystified - Jim Keogh

2010-02-27

Data Structures and Algorithms with Object-Oriented Design Patterns in Python - Bruno R. Preiss

Data Structures and Algorithms with Object-Oriented Design Patterns in Python - Bruno R. Preiss

2010-01-08

Data Structures and Algorithms with Object-Oriented Design Patterns in Java - Bruno R. Preiss

Data Structures and Algorithms with Object-Oriented Design Patterns in Java - Bruno R. Preiss

2010-01-08

Data Structures and Algorithms with Object-Oriented Design Patterns in CSharp - Bruno R. Preiss

Data Structures and Algorithms with Object-Oriented Design Patterns in CSharp - Bruno R. Preiss

2010-01-08

Data Structures and Algorithms in Java - Robert Lafore

Data Structures and Algorithms in Java - Robert Lafore

2010-01-08

Data Structures and Algorithms with Object-Oriented Design Patterns in CPlusPlus - Bruno R. Preiss

Data Structures and Algorithms with Object-Oriented Design Patterns in CPlusPlus - Bruno R. Preiss

2010-01-08

DATA STRUCTURES AND ALGORITHMS USING VISUAL BASIC.NET - MICHAEL MCMILLAN

DATA STRUCTURES AND ALGORITHMS USING VISUAL BASIC.NET - MICHAEL MCMILLAN

2010-01-08

Data Structures and Algorithms in Java - Peter Drake

Data Structures and Algorithms in Java - Peter Drake

2010-01-08

Data Structures and Algorithms - Alfred V. Aho

Data Structures and Algorithms - Alfred V. Aho

2010-01-08

Data Structures and Algorithm Analysis in C - Mark Allen Weiss

Data Structures and Algorithm Analysis in C - Mark Allen Weiss

2010-01-08

Data Structures & Algorithms in Java - Robert Lafore

Data Structures & Algorithms in Java - Robert Lafore

2010-01-08

Data Structure For Game Programers - Ron Penton

Data Structure For Game Programers - Ron Penton

2010-01-08

Data Structure And Algorithms In Java - Mitchel Waite

Data Structure And Algorithms In Java - Mitchel Waite

2010-01-08

CPlusPlus Plus Data Structures, 3rd Ed - Nell Dale

CPlusPlus Plus Data Structures, 3rd Ed - Nell Dale

2010-01-08

C++ Data Structures 3rd ed - Nell Dale

C++ Data Structures 3rd ed - Nell Dale

2010-01-08

C and Data Structures - P.S. Deshpande

C and Data Structures - P.S. Deshpande

2010-01-08

C Algorithms For Real Time DsP - Paul Embree

C Algorithms For Real Time DsP - Paul Embree

2010-01-08

Algorithms in Java, 3rd Ed, Part 5 Graph Algorithms - Robert Sedgewick

Algorithms in Java, 3rd Ed, Part 5 Graph Algorithms - Robert Sedgewick

2010-01-08

Algorithms in Java, 3rd Ed, Part 1-4 - Robert Sedgewick

Algorithms in Java, 3rd Ed, Part 1-4 - Robert Sedgewick

2010-01-08

Algorithms and Data Structures The Science of Computing - Douglas Baldwin

Algorithms and Data Structures The Science of Computing - Douglas Baldwin

2010-01-08

Algorithms and Data Structures - Niklaus Wirth

Algorithms and Data Structures - Niklaus Wirth

2010-01-08

ALGORITHMS - ROBERT SEDGEWICK

ALGORITHMS - ROBERT SEDGEWICK

2010-01-08

Algorithm Theory - SWAT 2002 - M. Penttonen

Algorithm Theory - SWAT 2002 - M. Penttonen

2010-01-08

操作系统_设计与实现(第2版上册).part2

操作系统_设计与实现(第2版上册).part2

2009-03-25

操作系统_设计与实现(第2版上册) part1

操作系统_设计与实现(第2版上册) part 1

2009-03-25

Turbo Debugger

Turbo Debugger for Dos not win32

2008-06-04

Java.How.to.Program.6th.Edition (2/2)

Prentice.Hall.Java.How.to.Program.6th.Edition.Aug.2004.INTERNAL.chm

2008-05-31

Java.How.to.Program.6th.Edition (1/2)

Prentice.Hall.Java.How.to.Program.6th.Edition.Aug.2004.INTERNAL.chm

2008-05-31

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除