I use uVision2 of Windows version. How to create my own library and how to use it when linking?
Too slow? What are you talking about? Show me the assembler to back that statement up. It is extremely bad style and unsafe to use globals to pass information between functions. Besides if your functions are void func(void) and you don't prototype them you should get a warning since C expects you return int. - Mark
Quite right! It's also unsafe & bad style to have a build in which warnings are normal. One day there will be one extra warning, and that one will indicate a real problem in your code. If your build is normally littered with warnings, that'd be easy to miss and the problem could get through into products and jump up and bite in some obscure fashion at some inopportune moment. But if your build is normally "clean," a new warninng would stand out like a sore thumb and you could easily catch it before it bites. Been there...
I am very pleased to know that the final judgement is delivered - which style is good and which is bad. Far from trying to alter it I would like to remark that I personally like the style that is more profitable - and do not impose my opinion. Michael.
Any statement made by me is my opinion based upon 13 years of experience. I by no means meant it as some "final judgement" as you say. Sorry if you took it that way. Regards. - Mark