Dear sir; I had written program with Keil and i dont like to give it to other but i want to give assembly to him that he can compile this assembly code to HEX. please guide me how can i converted it to assembly for compilng it to hex. As you mentioned Keil have a project.lst includes C program and assembly but i couldnt use it for compile to hex.(Do you understand me or not?) j.majd@engineer.com
"I had written program with Keil and i dont like to give it to other but i want to give assembly to him that he can compile this assembly code to HEX." Why don't you just supply a Library, then?! After all, that's precisely how Keil, et al, let you use their printf, etc, code without having to give you the whole source, isn't it?!
"I had written program with Keil and i dont like to give it to other but i want to give assembly" If you convert it to assembly, you are still supplying source code, aren't you? Why would you trust this "other" with assembler source code, when you don't trust them with 'C' source code? Anyhow, if you really want to do this, just look up the SRC directive in the Manual...
becuase i have to give him
becuase i have to give him.and because he dont understand assembly language.
So give him a Library, then.
"So give him a Library, then." What part of 'becuase i have to' do you not understand?
I am sure Andy understand the message. I am, however, sure that Andy instead of mindlessly answering the question tries to direct the OP towards a better solution. It is obvious there are two schools of thought in the answers: help the OP to solve the problem the best way AND let the OP do it his way, be it right, be it wrong Erik
"What part of 'becuase i have to' do you not understand?" That bit's clear - what isn't clear is what it applies to! Is it "because I have to give him assembler," or is it "because I have to give him something he won't understand." My reading of the original questions is that the requirement is to keep the 'C' source secret, while still allowing this untrustworthy "customer" to build his project - so it's "because I have to give him something he won't understand." A Library neets that requirement admirably - So that is a direct answer to the question as I read it.
View all questions in Keil forum