Keil™, An ARM® Company

Technical Support

ARMCC: INIT_MEMPOOL FOR HEAP SETUP DOES NOT EXIST


Information in this article applies to:

  • RealView C Compiler Version 3

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

  • RealView Compiler and Library User's Guide, The C and C++ Libraries

SEE ALSO

Last Reviewed: Wednesday, September 26, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure