Hello! I'm developing a 80C32 firmware and i need to get a code coverage in C lang statements. Keil uVision offers an assembler instruction code coverage, while i have to get a 100% code coverage for the C source code. Is any tool by Keil or by other producers that can execute code coverage in C for an 8051 embedded application? Thank you very much Daniele
"Is any tool by Keil or by other producers that can execute code coverage in C for an 8051 embedded application?" You cannot possibly be asking whether Keil makes a 'C' compiler for the 8051 - can you?
MicroVision's SIMULATOR does code coverage on the machine code instruction level. If you switch to source-level debugging, you should also be able to see which lines of you C program have been executed. Open Code Coverage window and you will see which of your C functions have been executed. Also, you can profile your code and see how much time did CPU spent executing certain function...Doing real-time code coverage on real hardware takes a hardware emulator and not many offer that capability. - Dejan
Thank you Dejan. But i need to report the percentages of code coverage at C source level. So, C statements should replace assembly instructions in the window. I know standard ANSI C tools doing that, but i would like to know if there is a tool for C 8051 embedded version code coverage and not ANSI C! Daniele