|
DATA attribute |
Top Previous Next |
|
You can specify the stack and heap requirements of tasks together, using the DATA attribute. This assigns a single block of memory to the stack and heap jointly and it will be divided between them dynamically at run time, as required. For example:
task integ data=20k
It is also possible to use a question mark with the DATA attribute, like this:
task integ data=?
This allocates the largest contiguous block of memory that is not explicitly assigned to logical areas of this or any other task.
It is also possible to omit all memory specifications from a task. Although the configurer issues a warning if you do this, it is treated as equivalent to coding DATA=?. |