hi all,
i am building 8051 application in keil compiler.i got an warning message when linking... like this..... *** WARNING L16: UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS SEGMENT :?PR?_ANALOGVOL?ANALOG
from the above warning ...analogvol is an function..analog is a file name which is having the definition of analogvol....please help me to find out this and how to clear..... thanks in advance. m.y.sam
a simple "tide me over" is
bit helper; ... helper = 0; if (helper) { MyCurrentlyUncalledFunction(): }
The beauty of this method is that it does not interfer once you start using the function.
Erik
PS I guess that some "optimizer happy" person can work out how to make this work even when optimizing.
is to have that function alone in a file and put the generated .obj in a library. Then it does only get included when called
"The beauty of this method is that it does not interfer once you start using the function."
I don't see the benefit over the more "conventional" method of a #define and #if ? And it uses up a bit varialbe...
no advantage if you never forget
Is there and advantage, then, if you do forget?
What is it?