Method for quick memory allocation and release in real-time system


Application Number: 00108090
Application Date: 2000.06.13
Publication Number: 1320863
Publication Date: 2001.11.07
Priority Information:
International: G06F12/08
Applicant(s) Name: Zhongxing Communication Co., Ltd, Shenzhen City
Address:
Inventor(s) Name: Wang Baiqiang
Patent Agency Code: 72003
Patent Agent: chen gong
Abstract A method for quick allocation and release of memory in real-time system is disclosed. When a memory block (size) is requested, the effective number of bits for the series number n (n=size-1) of memory control unit is obtained. The unit n is correspondent to the memory block (bsize=2 to the n power bytes), so the needed memory block can be quickly allocated. When a memory block is released, its pointer parameter and the pointer of memory control unit in the pointer space in the head of memory block are used to obtain the memory area where said memory block is owned, so quickly releasing the memory block. Said method is suitable for the chip where instructions are arranged in streamline mode.