Forum : 8051
Original Post
Post Information | Post |
---|---|
October 28, 2009 - 7:23pm
|
I have an issue with enabling overlay of automatic variables. According to the LX51 documentation an 'OVERLAY' directive should turn on this feature. Instead, I'm getting 203 Error: EXPECTED ITEM MISSING NEAR: "OVERLAY". Does this directive necessarily need parametres. I noticed that very few variables in my programs are getting overlaid by default - I don't use any indirect function calls. |
Hi Piotr,
Here is an excerpt from our 8051 linker documentation:
Note that overlay is a complex mechanism, you *really* should read the documentation to get the whole idea.
Regards,
Bruno
Hi
I think this OVERLAY directive is used by default.
So you might can not using it again.
What you can do is to use NOSEGMENTOVERLAY and SEGMENTOVERLAY for specific segments.
Regards,
Matloub
Hi Bruno,
Thank you for pasting the extract from the documentation (which I have read by the way) - it contains the mistake which forced me to write the initial post.
"Examples: OVERLAY
All functions whose automatic variables are suitable for overlaying will be overlaid."
This example suggests that OVERLAY directive can be passed without parameters. In my case I can't use it without parameters.
Thank you matloub - it's probably the case that OL is turned on by default. I already tried SEGMENTOVERLAY in several cases it works great. However, hardly any variables are overlaid by default and I was wondering if there is any way to automate the process as specifying manually with SEGMENTOVERLAY maybe a bit time consuming.
Regards,
Piotr
Hi
The description of the option is confusing as it does not say that OVERLAY is used by default in the beginning.
But the overlay is set by default and is done if it does not find any call between function etc.. .
Can you post your map file and the code you expect to be overlaid?
Regards,
Matloub