Start with Arduino, even if you never intend to really use it. Arduino has a "verbose info" option in File > Preferences. Then you can see the compile commands. The clock is set with F_CPU.
...