We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear All,
I created a serial.lib file with four functions, and added to new project . in main i called only 2 function which is present in lib file. so its giving me an warning "*** WARNING L16: UNCALLED FUNCTION, IGNORED FOR OVERLAY PROCESS" this is because of other 2 function which is not called in main.
how to clear this warning...
Thanks & regards Kiran Kumar D
uvision do not have a smart linker :( and best as every function in seporate file
uvision do not have a smart linker :(
One of the linkers (I do not rely on tools, I write stuff that works - and, thus, do not recall which one) can remove unused functions.
Erik
It's smart enough - but you have to structure your project appropriately.
Motto for today: Know your tools!
http://www.keil.com/support/man/docs/lx51/lx51_removeunused.htm
Most are not. They just include the unused code quietly. Since Keil for the 8052 overlays, it can not just ignore unused functions. It can not know if they are call via a pointer.