??? 12/28/04 23:49 Read: times |
#84008 - Code efficiency/performance |
Hello all,
I'm currently using MetalLink assembler to write code and Ceibo Debugger to debug for a product where 87C552 is used to control 2 pairs of SCRs. The MCU is used to generate the firing pulses and control firing angle to deliver constant current to supply Field current of a large DC motor based on the input voltage setting. This is a hand-down project from my boss when he left his job. He wrote the code without comments with a lots of other test routines, so it's hard to understand what it is. So I decided to rewrite the code to make it short and simple. I only changed the logic of the control but not the control loop itself. However when I test and compare the codes by running it with an emulator (Ceibo DS51) with load (a real motor), it seems his code runs faster than mine (the condition of testing and hardware... etc everthing is the same. I'm not sure but that is the impression I have). Therefore I want know the truth or it's just my feeling. Here is my questions: 1/Is there any way to test the code effeciency or performance to tell which one is faster an Assembler in this case MetalLink? 2/If Assembler/Debugger is out of question, then there is anything else can do the job with minimum change in the code? Any input/advice/suggestion would be greatly appreciated. Regard, T.L |
Topic | Author | Date |
Code efficiency/performance | 01/01/70 00:00 | |
The human optimization | 01/01/70 00:00 | |
No Magic Wand | 01/01/70 00:00 | |
Optimizing | 01/01/70 00:00 | |
A non-generalizable task... | 01/01/70 00:00 | |
Code efficiency | 01/01/70 00:00 | |
Single step with index finger | 01/01/70 00:00 | |
Efficiency | 01/01/70 00:00 | |
No Magic Wand | 01/01/70 00:00 | |
No Magic Wand | 01/01/70 00:00 | |
Outstanding Effort !![]() | 01/01/70 00:00 |