|
Memory Allocation |
Top Previous Next |
|
Because of the wide variation in memory hardware, different CPU modules and environments may need different methods of allocating the logical areas of a C program to physical memory. This allocation is not done when tasks are created (linked), but is performed by the configurer when the complete application is built. The decisions on how the allocation is to be done are made using the following information:
On each processor, the configurer maps the logical areas into physical memory in the following order:
The configurer always uses fast memory in preference to slow. This means using the internal (on-chip) memory if it is available, and, failing that, the fastest available area of external memory.
The configurer is very good at allocating memory and its choices are usually good enough for most applications. You can see how the configurer has allocated memory to your tasks by examining the listing file which you can generate with the -l command option.
The next sections describe how you can adjust the memory mapping to improve performance. See also the description of the TASK statement.
|