ARM Technical Support Knowledge Articles

INIT_MEMPOOL FOR HEAP SETUP DOES NOT EXIST

Applies to: RealView C Compiler

Answer


Information in this article applies to:


QUESTION

I am porting code from the Keil C51 or C166 Compiler to the RealView Compiler. I have used the function init_mempool to configure the heap size for the memory allocation functions malloc or calloc. I cannot find this function in the RealView compiler. How should I configure the heap for the memory pool?

ANSWER

For the RealView Compiler the init_mempool function is not required. Instead the memory pool is configured using the symbol Heap_Size in the startup code.

Pre-configured startup code for the various microcontroller devices can be found in the folder ..\ARM\RV30\Startup. This startup files are configured for the RealView compilation tools.

MORE INFORMATION

SEE ALSO

Article last edited on: 2010-03-17 12:01:34

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential