Next would probably be a while loop using the same setup, then a for loop with the counter reversed (incrementing rather than decrementing), and seeing how the assembly differs in each case. If you were using C++ then next after that would be using an iterator on a vector and mostly taking away direct control of the counter in the process.
8 comments
[ 0.25 ms ] story [ 23.5 ms ] threadHeh. If this were 10 years ago, we'd be using register ints.
As I'm sure you're aware you can get gcc to emit assembly, quite a few of the answers here seem interesting: https://stackoverflow.com/questions/137038/how-do-you-get-as...
You don't need to parallel-install dozens of versions of different compilers to play with them, too: https://gcc.godbolt.org/
I must admit my great curiosity about what path led you to assembly language and _then_ C. In many circumstances it's the other way around.