Instruction set comparison
The general idea
The purpose of this project is to compare two instruction sets including comparing compiler output, to do some evaluation of differences like the length of code for the same task.
The challenge
- comparing static vs. dynamic differences, for example
- a static difference would be the number of instructions
- a dynamic difference would be the number of instructions actually executed
- understanding the significance of any differences
- understanding how whatever you measure can apply more generally.
It is highly recommended that you use a language reasonably close to machine code, i.e., C for your examples, otherwise it will be hard to see what the compiler is doing. You may want to explore other tools such as profilers to measure aspects of program behaviour.
Note: this is a different question to #13, processor comparison. The focus here is on examing code, whereas #13 is about the detailed design.
