title: How do I determine the number of x86 machine instructions executed in a C program?
body: <p>I'm currently working on a homework problem that asks me to find out the number of machine code instructions that are executed when running a short program I wrote in C.</p>
  
  <p>The question says I am able to use whatever tools I want to figure it out, but I'm fairly new to C and have very little idea how to go about this.</p>
  
  <p>What types of tools do I need to figure this out?</p>