Welcome![Sign In][Sign Up]
Location:
Search - malloc free

Search list

[Develop ToolsThe Best CC++ Tips Ever

Description: 中文译名《最优C/C++编程秘诀》。书中对new/delete、malloc/free,构造/析构函数等等C/C++难点问题有详细深入的讲解。-Hansard "optimal C / C programming tips." Book of the new / delete and malloc / free, Construction / destructor function, etc. C / C difficult issues detailed, in-depth explanation.
Platform: | Size: 9833867 | Author: 王宏志 | Hits:

[OS programfastmem

Description: 快速内存分配和管理源代码,避开了malloc/free机制,适合快速动态分配内存.-fast memory allocation and management of source code, thus avoiding the malloc / free mechanism for fast dynamic memory allocation.
Platform: | Size: 11367 | Author: 陈磊 | Hits:

[Other resourcece_crtdbg

Description: This code detects memory leaks in embedded VC++ almost the same way crtdbg does in VC++. At the end of program execution it will display in the debug window if there were any memory leaks and how the memory looks so you can identify where your memory leak occurred. It will display in the debug window a message saying no memory leaks detected if there are no memory leaks. Similar to what crtdbg.h does in VC++. The code detects memory leaks generated with calls to new and delete operators in C++. The code doesn t detect memory leaks generated with C functions: malloc, calloc, free, but that can be done in the future. Let me know and I will program it. -This code detects memory leaks in embedded VC almost the same way crtdbg does in VC. At the en d of program execution it will display in the deb ug window if there were any memory leaks and how t he looks memory so you can identify where your me mory leak occurred. It will display in the debug window a message saying no memory leaks detecte d if there are no memory leaks. Similar to what cr tdbg.h does in VC. The code detects memory leaks generated with calls to new and delete operator s in C. The code doesn t detect memory leaks " ated with C functions : malloc, malloc, free, but that can be done in the future. Let me know and I will program it.
Platform: | Size: 2578 | Author: 杨久敏 | Hits:

[Embeded-SCM Developbget

Description: 一个简单实用的内存管理程序,可以完成malloc/free功能。-a simple and practical memory management procedures to be completed malloc / free function.
Platform: | Size: 5027 | Author: 李明 | Hits:

[Windows Developxmem

Description: XMEM Extended C/C++ Dynamic Memory Control and Debug Library: The extended C/C++ Dynamic Memory Control and Debug Library XMEM is a replacement library for malloc/free and new/delete to find memory leaks and other memory related errors in C/C++ code
Platform: | Size: 1184545 | Author: zhl | Hits:

[Windows Kernel减少内存占用

Description:

优化C++程序编译效率的实例
(1)自定义程序的入口
(2)合并区段
(3)不用调malloc,free等函数
(3)不用cout来输出,cin来输入
(4)如果调用了很多库函数如memset,stycpy等等
的话,请导入msvcrt.lib,不然编译器会在程序里面
导入静态库,这样的话程序就会大很多。。
(5)........
减少程序运行内存占用量可以调用

SetProcessWorkingSetSize(GetCurrentProcess(),-1,-1);


Platform: | Size: 5807 | Author: newviews | Hits:

[Books高质量C++C 编程指南

Description: 前 言 .......................................................................................................................................6 第 1 章 文件结构 ....................................................................................................................8 1.1 版权和版本的声明........................................................................................................8 1.2 头文件的结构 ...............................................................................................................8 1.3 定义文件的结构 ...........................................................................................................8 1.4 头文件的作用 ...............................................................................................................8 1.5 目录结构 .......................................................................................................................8 第 2 章 程序的版式 ................................................................................................................8 2.1 空行 ...............................................................................................................................8 2.2 代码行 ...........................................................................................................................8 2.3 代码行内的空格 ...........................................................................................................8 2.4 对齐 ...............................................................................................................................8 2.5 长行拆分 .......................................................................................................................8 2.6 修饰符的位置 ...............................................................................................................8 2.7 注释 ...............................................................................................................................8 2.8 类的版式 .......................................................................................................................8 第 3 章 命名规则 ....................................................................................................................8 3.1 共性规则 .......................................................................................................................8 3.2 简单的 WINDOWS 应用程序命名规则 .........................................................................8 3.3 简单的 UNIX 应用程序命名规则 ..................................................................................8 第 4 章 表达式和基本语句 ....................................................................................................8 4.1 运算符的优先级 ...........................................................................................................8 4.2 复合表达式 ...................................................................................................................8 4.3 IF 语句 ...........................................................................................................................8 4.4 循环语句的效率 ...........................................................................................................8 4.5 FOR 语句的循环控制变量 ............................................................................................8 4.6 SWITCH 语句 ..................................................................................................................8 4.7 GOTO 语句......................................................................................................................8 第 5 章 常量............................................................................................................................8 5.1 为什么需要常量 ...........................................................................................................8 5.2 CONST 与 #DEFINE 的比较 ...........................................................................................8 5.3 常量定义规则 ...............................................................................................................8 5.4 类中的常量 ...................................................................................................................8 第 6 章 函数设计 ....................................................................................................................8 2001 Page 3 of 101 高质量 C++/C 编程指南,v 1.0 6.1 参数的规则 ...................................................................................................................8 6.2 返回值的规则 ...............................................................................................................8 6.3 函数内部实现的规则....................................................................................................8 6.4 其它建议 .......................................................................................................................8 6.5 使用断言 .......................................................................................................................8 6.6 引用与指针的比较........................................................................................................8 第 7 章 内存管理 ....................................................................................................................8 7.1 内存分配方式 ................................................................................................................8 7.2 常见的内存错误及其对策.............................................................................................8 7.3 指针与数组的对比 ........................................................................................................8 7.4 指针参数是如何传递内存的? .....................................................................................8 7.5 FREE 和 DELETE 把指针怎么啦? .................................................................................8 7.6 动态内存会被自动释放吗? ........................................................................................8 7.7 杜绝“野指针” ...........................................................................................................8 7.8 有了 MALLOC/FREE 为什么还要 NEW/DELETE ?.......................................................8 7.9 内存耗尽怎么办?........................................................................................................8 7.10 MALLOC/FREE 的使用要点 .........................................................................................8 7.11 NEW/DELETE 的使用要点 ...........................................................................................8 7.12 一些心得体会 .............................................................................................................8 第 8 章 C++函数的高级特性 .................................................................................................8 8.1 函数重载的概念 ...........................................................................................................8 8.2 成员函数的重载、覆盖与隐藏 ....................................................................................8 8.3 参数的缺省值 ...............................................................................................................8 8.4 运算符重载 ...................................................................................................................8 8.5 函数内联 .......................................................................................................................8 8.6 一些心得体会 ...............................................................................................................8 第 9 章 类的构造函数、析构函数与赋值函数 .....................................................................8 9.1 构造函数与析构函数的起源 ........................................................................................8 9.2 构造函数的初始化表....................................................................................................8 9.3 构造和析构的次序........................................................................................................8 9.4 示例:类 STRING 的构造函数与析构函数 ..................................................................8 9.5 不要轻视拷贝构造函数与赋值函数 ............................................................................8 9.6 示例:类 STRING 的拷贝构造函数与赋值函数 ..........................................................8 9.7 偷懒的办法处理拷贝构造函数与赋值函数.................................................................8 9.8 如何在派生类中实现类的基本函数 ............................................................................8 9.9 一些心得体会 ...............................................................................................................8 第 10 章 类的继承与组合 ......................................................................................................8 2001 Page 4 of 101 高质量 C++/C 编程指南,v 1.0 10.1 继承 .............................................................................................................................8 10.2 组合 .............................................................................................................................8 第 11 章 其它编程经验 ..........................................................................................................8 11.1 使用 CONST 提高函数的健壮性..................................................................................8 11.2 提高程序的效率 ..........................................................................................................8 11.3 一些有益的建议 ..........................................................................................................8 参考文献 .................................................................................................................................8 附录 A :C++/C 代码审查表 ................................................................................................8 附录 B :C++/C 试题 ............................................................................................................8 附录 C :C++/C 试题的答案与评分标准.............................................................................8
Platform: | Size: 266130 | Author: chenliwolf@163.com | Hits:

[SourceCode实现模仿系统的内存分配

Description: 当时在WinCE下工作,项目中给我们指定使用的内存大小只有10M,而在项目中经常发生内存泄漏,内存使用超出范围等各种错误,所以为了项目质量的提高,写了一个模块系统内存分配的库,用于管理项目中的内存分配。重载了 new,delete 以及实现了 malloc free
Platform: | Size: 15840 | Author: sulong1234 | Hits:

[Books高质量C++/C编程指南

Description: 第1章 文件结构... 11 1.1 版权和版本的声明... 11 1.2 头文件的结构... 12 1.3 定义文件的结构... 13 1.4 头文件的作用... 13 1.5 目录结构... 14 第2章 程序的版式... 15 2.1 空行... 15 2.2 代码行... 16 2.3 代码行内的空格... 17 2.4 对齐... 18 2.5 长行拆分... 19 2.6 修饰符的位置... 19 2.7 注释... 20 2.8 类的版式... 21 第3章 命名规则... 22 3.1 共性规则... 22 3.2 简单的Windows应用程序命名规则... 23 3.3 简单的Unix应用程序命名规则... 25 第4章 表达式和基本语句... 26 4.1 运算符的优先级... 26 4.2 复合表达式... 27 4.3 if 语句... 27 4.4 循环语句的效率... 29 4.5 for 语句的循环控制变量... 30 4.6 switch语句... 30 4.7 goto语句... 31 第5章 常量... 33 5.1 为什么需要常量... 33 5.2 const 与 #define的比较... 33 5.3 常量定义规则... 33 5.4 类中的常量... 34 第6章 函数设计... 36 6.1 参数的规则... 36 6.2 返回值的规则... 37 6.3 函数内部实现的规则... 39 6.4 其它建议... 40 6.5 使用断言... 41 6.6 引用与指针的比较... 42 第7章 内存管理... 44 7.1内存分配方式... 44 7.2常见的内存错误及其对策... 44 7.3指针与数组的对比... 45 7.4指针参数是如何传递内存的?... 47 7.5 free和delete把指针怎么啦?... 50 7.6 动态内存会被自动释放吗?... 50 7.7 杜绝“野指针”... 51 7.8 有了malloc/free为什么还要new/delete ?... 52 7.9 内存耗尽怎么办?... 53 7.10 malloc/free 的使用要点... 54 7.11 new/delete 的使用要点... 55 7.12 一些心得体会... 56 第8章 C++函数的高级特性... 57 8.1 函数重载的概念... 57 8.2 成员函数的重载、覆盖与隐藏... 60 8.3 参数的缺省值... 63 8.4 运算符重载... 64 8.5 函数内联... 65 8.6 一些心得体会... 68 第9章 类的构造函数、析构函数与赋值函数... 69 9.1 构造函数与析构函数的起源... 69 9.2 构造函数的初始化表... 70 9.3 构造和析构的次序... 72 9.4 示例:类String的构造函数与析构函数... 72 9.5 不要轻视拷贝构造函数与赋值函数... 73 9.6 示例:类String的拷贝构造函数与赋值函数... 73 9.7 偷懒的办法处理拷贝构造函数与赋值函数... 75 9.8 如何在派生类中实现类的基本函数... 75 9.9 一些心得体会... 77 第10章 类的继承与组合... 78 10.1 继承... 78 10.2 组合... 80 第11章 其它编程经验... 82 11.1 使用const提高函数的健壮性... 82 11.2 提高程序的效率... 84 11.3 一些有益的建议
Platform: | Size: 84427 | Author: 87503655@qq.com | Hits:

[BooksThe Best CC++ Tips Ever

Description: 中文译名《最优C/C++编程秘诀》。书中对new/delete、malloc/free,构造/析构函数等等C/C++难点问题有详细深入的讲解。-Hansard "optimal C/C programming tips." Book of the new/delete and malloc/free, Construction/destructor function, etc. C/C difficult issues detailed, in-depth explanation.
Platform: | Size: 9833472 | Author: 王宏志 | Hits:

[OS programfastmem

Description: 快速内存分配和管理源代码,避开了malloc/free机制,适合快速动态分配内存.-fast memory allocation and management of source code, thus avoiding the malloc/free mechanism for fast dynamic memory allocation.
Platform: | Size: 11264 | Author: 陈磊 | Hits:

[Windows CEce_crtdbg

Description: This code detects memory leaks in embedded VC++ almost the same way crtdbg does in VC++. At the end of program execution it will display in the debug window if there were any memory leaks and how the memory looks so you can identify where your memory leak occurred. It will display in the debug window a message saying no memory leaks detected if there are no memory leaks. Similar to what crtdbg.h does in VC++. The code detects memory leaks generated with calls to new and delete operators in C++. The code doesn t detect memory leaks generated with C functions: malloc, calloc, free, but that can be done in the future. Let me know and I will program it. -This code detects memory leaks in embedded VC almost the same way crtdbg does in VC. At the en d of program execution it will display in the deb ug window if there were any memory leaks and how t he looks memory so you can identify where your me mory leak occurred. It will display in the debug window a message saying no memory leaks detecte d if there are no memory leaks. Similar to what cr tdbg.h does in VC. The code detects memory leaks generated with calls to new and delete operator s in C. The code doesn t detect memory leaks " ated with C functions : malloc, malloc, free, but that can be done in the future. Let me know and I will program it.
Platform: | Size: 2048 | Author: 杨久敏 | Hits:

[Embeded-SCM Developbget

Description: 一个简单实用的内存管理程序,可以完成malloc/free功能。-a simple and practical memory management procedures to be completed malloc/free function.
Platform: | Size: 5120 | Author: 李明 | Hits:

[Embeded LinuxmTrack

Description: 嵌入式系统下内存泄漏检查库函数mTrace以及测试代码,有详细使用文档.这个是将malloc和free 函数控制起来,检查内存.-Embedded System memory leak checking library function mTrace and test code, have detailed the use of the document. This is to malloc and free function control, and check the memory.
Platform: | Size: 40960 | Author: Andrew Huang | Hits:

[Linux-Unixmyprog

Description: 用char *malloc(unsigned size)函数向系统申请一次内存空间(如size=1000,单位为字节),用首次适应法 addr = (char *)fmalloc(unsigned size) 和 ffree(unsigned size,char * addr)(基本要求)或 循环首次适应法(提高一步) addr = (char *)lmalloc(unsigned size) 和 lfree(unsigned size,char * addr) 模拟UNIX可变分区内存管理,实现对该内存区的分配和释放管理。 -With char* malloc (unsigned size) function to the system to apply for a memory space (eg, size = 1000, measured in bytes), using the first method to adapt to addr = (char*) fmalloc (unsigned size) and ffree (unsigned size, char* addr) (basic requirements) or the first cycle of adaptation law (improve step) addr = (char*) lmalloc (unsigned size) and lfree (unsigned size, char* addr) variable partition simulation UNIX memory management, realize the memory allocation and release management.
Platform: | Size: 2048 | Author: | Hits:

[Windows Developxmem

Description: XMEM Extended C/C++ Dynamic Memory Control and Debug Library: The extended C/C++ Dynamic Memory Control and Debug Library XMEM is a replacement library for malloc/free and new/delete to find memory leaks and other memory related errors in C/C++ code
Platform: | Size: 1183744 | Author: zhl | Hits:

[Booksmalloc

Description: 针对由系统调用sbrk()申请得到的内存区域进行管理,实现了用户中申请、释放内存过程。整个程序由头文件malloc.h、分配与释放模块malloc.c、应用程序test.c和工程文件makefile共四个文件组成,该程序已在linux下成功调试通过-include <unistd.h> #include "my_malloc.h" static Header base /* empty list to get started*/ static Header*free_list = NULL /* start of free list*/ /* Malloc: general-purpose storage allocator*/ void* Malloc(unsigned int nbytes) { Header*p,*prev unsigned int nunits nunits = (nbytes+ sizeof(Header)- 1)/sizeof(Header)+ 1 if ( (prev = free_list) == NULL) { /* no free list yet*/
Platform: | Size: 9216 | Author: jjl | Hits:

[Data structsDougLea

Description: Doug Lea 的 malloc/free 算法,非常优秀,可以参考。-Doug Lea s malloc/free source code.
Platform: | Size: 43008 | Author: 秦湘文 | Hits:

[ARM-PowerPC-ColdFire-MIPSCmalloc-free-ect

Description: C语言内存操作函数包括malloc,free, alloc,memcpy,memset函数的例子-C language memory operation functions include malloc, free, alloc, memcpy, memse function
Platform: | Size: 11264 | Author: lipeng | Hits:

[source in ebookmalloc-lab

Description: 在这个实验中你将写一个C程序,即动态存储分配器,你自己的malloc版本,免费和realloc例程。你被鼓励去探索设计空间,创造性地实施一个分配器,是正确的,有效的fi 高效、快速。 -In this lab you will be writing a dynamic storage allocator for C programs, i.e., your own version of the malloc, free and realloc routines. You are encouraged to explore the design space creatively and implement an allocator that is correct, effi cient and fast.
Platform: | Size: 1201152 | Author: hxy | Hits:
« 12 3 4 5 »

CodeBus www.codebus.net