For each operation we need to measure two extremes:
- independent: minimal dependency between sequential instructions - dependent: each instruction depends on the one before it
To compile:
- make
To run:
- make run
Files:
- main.c - the main program - cstuff.c - put any C code you need here - sstuff.c - put any assemble code you need here
Hints:
- You need to run the things you're measuring in a tight loop - Don't let other instructions pollute your measurements. For example, if you want to measure the "add" instruction, you don't want to mix it with lots of "mov" and "branch" instructions - Processors can and do run multiple instructions per cycle. - A dog chasing its tail is not always a bad idea