title: Is there a compilation option to stop gcc using floating point instructions in integer code?
body: <p>My integer-only, bare-metal C project just ground to a halt when I got an unexpected exception about a floating point instruction.</p>
  
  <p>Looking at the gcc generated code, the culprit is an <code>fmov d0, x0</code>, used to temporarily store a value in a floating point register, rather than on the stack.</p>
  
  <p>I don't want it to do that!</p>
  
  <p>I could mark a function or two with the <code>noinline</code> attribute, but that's no guarantee that the problem won't occur again elsewhere.</p>