文件名称:lll
介绍说明--下载内容均来自于网络,请自行研究使用
这个是一个stm32的内存分配的程序,思路如下:
将内存分块管理.
内存池等分为固定大小的内存块.
建立一个内存状态表,对应每个块,有多少个块,状态表就有多少个元素,一一对应.
通过状态表的值判断该块内存是否可用(为0则表示可用,为其他值则表示被占用了,而且占用的内存块数量,就是该值的数字)-This is a stm32 memory allocation procedures, the idea is as follows:
Divide the memory into blocks.
Memory pool is divided into fixed-size memory block.
The establishment of a memory state table, corresponding to each block, how many blocks, the state table has the number of elements, one by one correspondence.
The value of the state table to determine whether the block is available (0 is available, for other values that are occupied, and the number of memory blocks occupied by the value of the number)
将内存分块管理.
内存池等分为固定大小的内存块.
建立一个内存状态表,对应每个块,有多少个块,状态表就有多少个元素,一一对应.
通过状态表的值判断该块内存是否可用(为0则表示可用,为其他值则表示被占用了,而且占用的内存块数量,就是该值的数字)-This is a stm32 memory allocation procedures, the idea is as follows:
Divide the memory into blocks.
Memory pool is divided into fixed-size memory block.
The establishment of a memory state table, corresponding to each block, how many blocks, the state table has the number of elements, one by one correspondence.
The value of the state table to determine whether the block is available (0 is available, for other values that are occupied, and the number of memory blocks occupied by the value of the number)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lll.c