Addressing ATmega registers by number

To find out what exactly what code a bunch of macros generate, I like to just run the compiler with the -E switch

  1. Turn on verbose mode (in preferences(1.0) or hold shift(0022))
  2. Compile
  3. Copy first line (from where is says blahbalh/avr-g++ to the next time it says it) into a command prompt/terminal
  4. there should be a word "-c" in it. Change that to "-E"
  5. After -o, there's a path to a file. Change the name to some thing like sketch.preprocessed (optional)
  6. hit enter
  7. read sketch.preprocessed, and scroll all the way to the bottom, where your sketch is
  8. ???
  9. PROFIT