We are using uVision 2.0 IDE. We are using in-line assembly code with C source. To get it compile we had to check Generate Assembler SRC File and Asseble SRC File for each of the Groups in the Project. When we do this the in-line is compile correctly. But we lose the capability to debug and set breakpoints with the C Code source. We only have the mixed with assembly with C Code commented out. What do I need to do to get the capability to debug and set breakpoints with the C Code source back and have in-line assembly.
What do I need to do to get the capability to debug and set breakpoints with the C Code source back and have in-line assembly.
This is not supported, I'm afraid. Perhaps it makes sense to place C and assembly language sources into separate files.
Perhaps it makes sense to place C and assembly language sources into separate files my take Most likely it makes sense to place C and assembly language sources into separate files.
Erik
We are using in-line assembly code with C source.
That's the beginning of the problem. And that
for each of the Groups in the Project.
seals the deal. Did you really have to use inline asm in every part of your program? Are you truly convinced that was necessary?
Stop abusing you C compiler as an assembler.
Hans - If you cannot give constructive input please do not reply...
That's .. the problem. How true
Are you truly convinced that was necessary? good question
What do I need to do to get the capability to debug and set breakpoints with the C Code source back and have in-line assembly. Stop abusing you C compiler as an assembler. the correct answer
Rick, if you can't muster the strength to accept answers, do yourself a favour: don't ask questions.
But that is the answer to your problem!
See: http://www.keil.com/forum/docs/thread5025.asp
The features you describe are a direct and inevitable result of using inline assembler in Keil C51. Therefore, you have just two choices:
1. Live with it;
2. Don't use inline assembler!