Renesas Technology, Tools FAQs
Last Updated: April 5, 2000
Document Number: 01051073_e
Q.
When using MR32R V. 1.00 Release 1 -- V.2.00 Release 2, I have to specify heap_size (heap area size). What is this heap size used
for? Is this area required even if I don't use cre/del/exd_tsk?
A.
'heap_size' defined in the system definition table must be determined when 'cre_tsk', 'del_tsk', and 'exd_tsk' are used. The area to be
used for this definition is allocated in the stack area of each task. This stack area will be allocated in the USER_STACK section
even though these system calls are not used.
[Reference]
The difference between specifying or not specifying 'heap_size' and 'max_memsize' are:
When 'cre_tsk' is used, the stack area is dynamically allocated and released. Therefore, the area for the OS management table data is
needed. This is why this definition is needed. When 'cre_tsk' is not used, the dynamic stack allocation is not required, the area for
the OS management table data is needed and, hence, the definition of 'heap_size' and 'max_memsize' is not required.
Furthermore, when defining 'heap_size' and 'max_memsize' for 'cre_tsk' use, the stack is allocated by every memory size
management unit under the OS management. Therefore, more memory than the specified stack size at the task generation is used.
Please note that, whether or not you define heap_size or max_memsize_, the area you use will require the same USER_STACK and,
when this area is defined (in other words, when you use the cre_tsk task), extra memory will be required.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales