Hi, I use PK51 8.08 with LX51 and AX51. My code is a mix of assembly and C. I use the REMOVEUNUSED directive to deleted "dead-code". It works fine except for C-functions called form assembly. Exampled:
I my assembler file I have
EXTRN CODE (handleReadCommand) .. call handleReadCommand
The handleReadCommand is declared in a C-file as
int handleReadCommand(void)
Looking at my projects map file I can see * * * * * * * * * R E M O V E D S E G M E N T * * *DEL*: 000005H BYTE UNIT CODE ?PR?HANDLEREADCOMMAND?TESTCOREDRIVERS
What is wrong? Does the REMOVEUNUSED only work on C-files? Can you manually disbale REMOVEUNUSED for certaion C functions and then enable it again.
We need an example that shows this problem since we are not able to replicate it here.
Does you assembly code compile to the rules for overlay analysis?
See: http://www.keil.com/appnotes/docs/apnt_149.asp
Thanks for reply,
My assembler code do not follow the overlay namimg conventions. Is this a must in this case?
If still meaningful, I'll get back with sample code in a week or two.
/F