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.