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.
Hi, I am using C51 version 1x (or 5x). I have some uncalled functions and it seems like they are included in the final binary. Does any one know how to make the linker not include the uncalled funtions? Thanks for your help, Michelle
Hi there! Yes, they are included. Creating Libraries might be a solution. What I have done lately was just defining an UNUSED compiler constant and doing a
#ifdef UNUSED // that function you might not need for this version //... #endif
Hi Sven, Thanks for your reply. I've searched the previous threads and it seems like there's some issues regarding the uncalled functions. I guess there's noway to the link would selectively load the functions. I was hoping for some options in the linker that would do this. Thanks, Michelle