??? 08/02/05 13:13 Read: times |
#98677 - That's why Responding to: ???'s previous message |
Anyhow, whatever you use, it is still invalid to count cycles for C code bcause you are at the mercy of tyhe compiler. That's why you use the list file. As I said it is far from optimal, since it requires quite a bit of interaction. With something like the conditional jump- there is no "knowledge" as to whether the jump is taken or not. The way I handle it is to create a parameter (or cell) that determines whether to count cycles with the condition true, or with it false. In the case of a fixed length loops it is possible to extract the count and thus calculate the cycles and include both the true and false conditions. But there is no way, other than manual interaction, to cater for a conditional break (the C kind of break) in the middle or similar "discontinuities" in program flow. Still, having had to count cycles in the past, it is a great improvement especially when "tweaking", since Excel automatically keeps the running total. |
Topic | Author | Date |
Counting cycles... possible in C? | 01/01/70 00:00 | |
You need a Profiler | 01/01/70 00:00 | |
The compiler knows | 01/01/70 00:00 | |
Source code useless | 01/01/70 00:00 | |
That's why you need Assembler! | 01/01/70 00:00 | |
nohohoho | 01/01/70 00:00 | |
Speed is not everything! | 01/01/70 00:00 | |
Cycles vary? | 01/01/70 00:00 | |
I know | 01/01/70 00:00 | |
absolutely, but what good does it do | 01/01/70 00:00 | |
other way round | 01/01/70 00:00 | |
Yes, the things posted apply in this cas | 01/01/70 00:00 | |
exactly for this reason | 01/01/70 00:00 | |
how can you automate that it is small en | 01/01/70 00:00 | |
Use Microsoft Excel | 01/01/70 00:00 | |
excel and conditional branches ? | 01/01/70 00:00 | |
That's why | 01/01/70 00:00 | |
That makes absolutotally no difference,![]() | 01/01/70 00:00 |