Where are the hex files compiled by Arduino?

arduino

Solution

In the Arduino software: go to File -> Preferences and then select Show verbose output during -> compilation.

Finally, when you are compiling, the program will show you lots of data. At the last lines, you will find the path1 to the `.hex` file.

1Every time the path changes!

Problem

Where does the Arduino IDE save the binaries on Mac OS X?

Original source