CW5.7 - sc3000 - osmalloc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW5.7 - sc3000 - osmalloc

2,701 Views
Fresher
Contributor I

In the multicore environment, osmalloc() function creates heap memory in which area ?

Whether that is in private memory area for individual  core or shared area of memory.



Message Edited by Alban on 2007-09-18 03:22 PM
Labels (1)
0 Kudos
Reply
3 Replies

957 Views
Alban
Senior Contributor II
Hello,

Please do use meaningful subjects which matches the requirement described in the following.

Many thanks on behalf of all readers.
Alban.


Message Edited by Alban on 2007-09-18 03:22 PM
0 Kudos
Reply

957 Views
Fresher
Contributor I
I am using CW version 5.7.0 and targeting sc3000 series cores.


Message Edited by Alban on 2007-09-18 03:22 PM
0 Kudos
Reply

957 Views
CrasyCat
Specialist III
Hello
 
To retrieve information about the CodeWarrior version you are using, perform these steps:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.
 
V5.7.xxx does not really help to figure out what you are using.
 
Around heap usage, I assume you are using SmartDSPOS and want to see how memory allocation is used.
 
If you get a closer look at the demo project {Install}\StarCore_Support\SmartDSP\demos\starcore\msc814x\multicore_shared_malloc\multicore_shared_malloc_project\malloc_core0.mcp
you will notice that he OS is defining 8 heaps:
2 local heaps and 6 shared heaps.
 
You can select where you want to allocate memory using the enumerated constants defined in os_mem_type enumeration type. This type is defined in
    {Install}\StarCore_Support\SmartDSP\include\common\os_mem.h
 
CrasyCat
0 Kudos
Reply