Renesas Technology, Tools FAQs
Last Updated: August 25, 2000
Document Number: 01051071_e
Q.
When memory fragments appear during the MR32R operation, MR32R fails to obtain the necessary memory blocks even though
there are more than enough memory blocks available.
Does MR32R have any memory management function to recover the fragments while the MR32R is in operation?
A.
Yes, MR32R has a function that combines neighboring memory blocks of the same size into a bigger block when a memory block is
released. MR32R sometimes fails to obtain necessary memory blocks even though there are more than enough memory blocks
available, to avoid further fragmentation from happening.
In addition, to speed up the memory allocation process, when a memory-acquisition request is received, the CPU assigns the biggest
fixed memory block that is closest to the size indicated in the request.
For example, when the fixed length memory block size is one of the following,
60bytes(48bytes)
120bytes(108bytes)
240bytes(228bytes)
480bytes(468bytes)
and there is a memory-acquisition request for 100 bytes, the second size, 120 bytes, of fixed memory block will be used.
In the same manner, if there is a memory-acquisition request for 200 bytes, the fourth size, 480 bytes, is divided by 2 and two
240-byte blocks are generated and assigned.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Kommentare zu diesen Handbüchern