28.1 Built-In Functions vs. Inline Assembly
There are a number of reasons why providing built-in functions is preferable to requiring programmers to use inline assembly. They include the following:
- Providing built-in functions for specific purposes simplifies coding.
- Certain optimizations are disabled when inline assembly is used. This is not the case for built-in functions.
- For machine instructions that use dedicated registers, coding inline assembly while avoiding register allocation errors can require considerable care. The built-in functions make this process simpler as you do not need to be concerned with the particular register requirements for each individual machine instruction.