ARM Technical Support Knowledge Articles

DATA OVERLAYING WITH RTOS APPLICATIONS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I am a long-time user of the C51 compiler suite for applications in a multitasking environment. The OVERLAY linker directive seems to be interpreted differently in V7.50.  My application uses several tasks that  run in parallel. On previous C51 versions, to keep tasks from being overlaid, I use this linker directive as follows:

OVERLAY (* ! (task1, task2, task3))

But version 7.50 overlays the data of the different tasks which results in run-time errors in my application. How can I solve this problem?

ANSWER

The change in the behavior of the OVERLAY directive is documented in the RELEASE NOTES file under C51 Version 7.50 Release. To get the old behavior, just change the OVERLAY directive to:

OVERLAY (* ! task1, * ! task2, * ! task3)

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-09-28 12:12:41

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential