FAQ: An alternative way to use heap_lookup_name in CCES

Document created by Kader.M Employee on Nov 21, 2017
Version 1Show Document
  • View in full screen mode



I used to use id=heap_lookup_name("seg_xxx") with heap_calloc to manage the custom heap space in my program in VDSP++.


But in CCES , the heap_lookup_name has been eliminated  ,I'm wondering if there is other alternative way like heap_lookup_name in CCES?





heap_look_name() has been deprecated in CrossCore Embedded Studio. There are a couple of reasons for this:
- CrossCore Embedded Studio contains a consistent heap interface for Blackfin and SHARC processors, and this interface is based on the Blackfin implementation of the heap management routines, which do not use heap names. (The heap set-up interface on SHARC was quite tricky to use, and was the cause of a number of problem reports.)

- The use of a single heap interface made it possible to provide a heap debugging library on both platforms, which was felt to be a very useful feature.


The CCES documentation contains an overview of the heap interface in the section "Using Multiple Heaps".