摘要 |
PROBLEM TO BE SOLVED: To solve problems that a system which uses a dynamic memory is unstable or non-operationable due to memory shortage in an embedded device with a small RAM capacity. SOLUTION: A dynamic memory management method which dynamically acquires and returns memory blocks includes a step for adding data which indicates that data is not rewritten after writing the data into an acquired memory block, a step for measuring the number of references to a memory block and adding it to data, a step for comparing the content of data when writing is completed with the content of data in another memory block, and a step for storing only either of the blocks and returning the other memory block if the comparison result at the comparison step is the same. Thereby, the amount of memory use is reduced and memory shortage is prevented, so that the stability of the whole of a system is improved. COPYRIGHT: (C)2008,JPO&INPIT
|