5.3.7.8 When Should Inline Assembly Be Used Instead of Assembly Modules?

If the programmer does decide to combine assembly code and C code; ensure that the following occurs:

  • Code complies with the run-time model
  • Registers are properly used and not overwritten
  • Code uses the GNU extended inline assembly code

Long sequences are often hard to debug, so ensure that you correctly follow the guidelines.