This version of MALLOC for VxWorks contains two different algorithms. One is the BSD based Kingsley "bucket" allocator which has some unique fragmentation behavior. The other is Doug Lea s well tested allocator that tries to minimize fragmentation while keeping the speed/space requirements. 非常實(shí)用,可移植用作實(shí)現(xiàn)跨平臺(tái)的嵌入式的內(nèi)存分配機(jī)制.
標(biāo)簽: algorithms different Kingsley contains
上傳時(shí)間: 2015-08-28
上傳用戶:hfmm633
減少內(nèi)存碎片的MALLOC分配函數(shù),非常不錯(cuò),可以用于LINUX, WIN32 ,VXWORKS
上傳時(shí)間: 2013-12-09
上傳用戶:2404
MALLOC調(diào)試工具(附源碼
標(biāo)簽: MALLOC 調(diào)試工具 源碼
上傳時(shí)間: 2014-11-26
上傳用戶:wfl_yy
嵌入式系統(tǒng)下內(nèi)存泄漏檢查庫函數(shù)mTrace以及測(cè)試代碼,有詳細(xì)使用文檔.這個(gè)是將MALLOC和free 函數(shù)控制起來,檢查內(nèi)存.
標(biāo)簽: mTrace MALLOC free 嵌入式系統(tǒng)
上傳時(shí)間: 2013-12-04
上傳用戶:tuilp1a
用char *MALLOC(unsigned size)函數(shù)向系統(tǒng)申請(qǐng)一次內(nèi)存空間(如size=1000,單位為字節(jié)),用首次適應(yīng)法 addr = (char *)fMALLOC(unsigned size) 和 ffree(unsigned size,char * addr)(基本要求)或 循環(huán)首次適應(yīng)法(提高一步) addr = (char *)lMALLOC(unsigned size) 和 lfree(unsigned size,char * addr) 模擬UNIX可變分區(qū)內(nèi)存管理,實(shí)現(xiàn)對(duì)該內(nèi)存區(qū)的分配和釋放管理。
標(biāo)簽: size unsigned MALLOC char
上傳時(shí)間: 2013-12-19
上傳用戶:ynzfm
#include<MALLOC.h> #include<limits.h> #include<stdio.h> #include<graphics.h> #include<io.h> #include<math.h> #include<process.h> #include<conio.h> #define m 100 #define OK 1 typedef int Status typedef char TElemType /*樹元素的類型*/ int t=35 int n=20 int h=14 int u=2 int leaf=0,non_l_leaf=0,non_r_leaf=0,root=0 /*各種結(jié)點(diǎn)數(shù)*/ char le[m],l[m],r[m],ro[m] /*用與存放各種結(jié)點(diǎn)*/ typedef struct BiTNode/*定義二叉樹*/
標(biāo)簽: include lt gt graphics
上傳時(shí)間: 2013-12-15
上傳用戶:liansi
一些基本函數(shù)的程序源代碼:包括(1)MALLOC函數(shù)(2)free函數(shù)(3)realloc函數(shù)(4)calloc函數(shù) (5)學(xué)生數(shù)據(jù)庫的編寫(6)通訊錄 以上都包含c語言源碼,obj文件及應(yīng)用程序
標(biāo)簽: 函數(shù) realloc MALLOC calloc
上傳時(shí)間: 2014-02-06
上傳用戶:ukuk
單片機(jī)動(dòng)態(tài)內(nèi)存分配代碼,實(shí)現(xiàn)MALLOC.
標(biāo)簽: MALLOC 單片機(jī) 動(dòng)態(tài)內(nèi)存 分配
上傳時(shí)間: 2014-01-13
上傳用戶:Divine
了解MALLOC 和 free的內(nèi)部實(shí)現(xiàn)
上傳時(shí)間: 2016-11-14
上傳用戶:qiaoyue
//順序表的建立、查找、插入與刪除 #include <stdio.h> #include <MALLOC.h> #include <stdlib.h> #define ListSize 100 //表最大長度 //結(jié)構(gòu)定義 typedef struct SeqList { int node[ListSize] //存放表結(jié)點(diǎn) int length //當(dāng)前表長度 } SeqList //插入元素 insertList(SeqList *list, int e) { int i=list->length-1 //先將i指定為最后一項(xiàng) if(i>=ListSize-1) //表已經(jīng)達(dá)到最大長度ListSize { printf("表已滿,不能增加新的項(xiàng)!\n")
標(biāo)簽: include gt lt MALLOC
上傳時(shí)間: 2014-01-17
上傳用戶:dongqiangqiang
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1