Hello all, I'm using Keil uVision2 Version 7.05, and everything seems to be OK. However, there is one thing I don't quite understand, thus I'm posting here asking for your ideas/opinions. When I run "Hello" example in Keil\Example directory and I found something that puzzled me. The assembly code Keil generated in Disamsembly window as well as in list file always have MOVX command eventhough I don't use external ram at all. I did set memory model to small and I only use IDATA but it still does the same. I even use disamsembler to translate the hex file Keil generated back to assembly source and still get the same result. Can someone spend some times explain this for me? Any inputs would be greatly appreciated. Have a nice weekend. Best Regards, T.L
"I tried the puts instead of printf as Dan said, and the code went from 1186 bytes down to 251 bytes. It's amazing." It shouldn't be in the least amazing at all! Look at the description of printf in the Manual - it runs to five pages! It should thus be obvious that printf is an extrmely powerful and complex function - it should come as no surprise that it takes a lot of code to implement all that stuff!! See: http://www.keil.com/forum/docs/thread2741.asp