| ||||||||
Technical Support Support Resources Product Information | C51: REMOVING LINKER WARNING L16 (UNCALLED SEGMENT)Information in this article applies to:
QUESTIONI have some unused functions in my program which generate linker warnings. Because the functions enterdata and myfunc are not used, the following warning is generated:
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?ENTERDATA?X
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?MYFUNC?X
I know that the data overlaying is incomplete and might be inefficient, but is there some way to remove these linker warnings? ANSWERYes, you may use the linker overlay directive. This directive allows you to add dummy calls and the linker thinks that the function is called. The following command removes the linker warnings: OVERLAY (* ! (enterdata, myfunc)) µVision allows you to enter the OVERLAY directive under Project - Options for Target - Lx51 Misc - Overlay: * ! (enterdata, myfunc) MORE INFORMATION
SEE ALSOLast Reviewed: Tuesday, January 31, 2006 | |||||||
| ||||||||