How to verify compiler settings for specific hardware in source code

gilshultz, I am usually distracted by other things. I have incorrectly set things in the past, so I would prefer an automated check. That's what compilers are supposed to be for (at least in my opinion). Thanks.