This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to remove printf from c51 code ?

I am using the latest version of the Keil 8051 toolset (AX51, C51, LX51) and want to compile my code without the standard printf.   I do not use it anywhere, yet it is still linked in (I can see in the .m51 file).   My code does use sprintf.  I've spent a bit researching this and haven't seen the answer.

  • My code does use sprintf

    98% of what prinft() does is sprintf() - so I guess they just didn't think it worth the effort of separating the two?

    Or, to put it the other way around, if you are using sprintf(), then trying to remove just print() is not going to give you any significant benefit - even if it were possible.