Renesas Emulator System M3T-MR100 User Manual

Page 259

Advertising
background image

243

8. Section

name

[( Definition format )]

Symbol

[( Definition range )]

None

[( Default value )]

MR_HEAP

Define the name of the section in which the memory pool is located. The section defined here must always have
an area allocated for it in the section file (asm_sec.inc or c_sec.inc).

If no section names are defined, the memory pool is located in the MR_HEAP section.

9. Memory pool size

[( Definition format )]

Numeric

value

[( Definition range )]

16 to 0xFFFFFFFC

[( Default value )]

None

Specify a memory pool size.

Round off a block size you specify to the optimal block size among the four block sizes, and acquires memory
having the rounded-off size from the memory pool.

The following equations define the block sizes:

a = (((max_memsize+(X-1))/ (X

Ч 8))+1) Ч 8

b = a

× 2

c = a

× 4

d = a

× 8


max_memsize: the value specified in the configuration file
X: data size for block control (8 byte per a block control)

Variable-size memory pool function needs 8 byte RAM area per a block control. Memory pool size needs a size
more than a, b, c or d that can be stored max_memsize + 8.

10. Select block usage

[( Definition format )]

Symbol

[( Definition range )]

ON,OFF

[( Default value )]

OFF

This is an option to increase memory efficiency for even small-sized memory pools by means of small blocks.
Memory is managed in 12 fixed-length memory pools ranging in size from 24 bytes to 65,528 bytes. When this
option is turned on, the value of max_memsize has no effect.

Advertising