.hex file

How can i get the *.hex file(the one which includes opcodes and operands) of the arduino sketch which i am uploading in my micro controller?

Enable verbose reporting. If you have IDE 1.0, go to preferences/options and tick the boxes. If you are on 23 or earlier, hold shift when clicking upload. The IDE will list the locations of all the files it generates.