No return instructions are generated by the compiler
for an __asm function. If you want to return
from an __asm function, you must include the
return instructions, in assembly code, in the body of the function.
Note
This makes it possible to fall through to the next function,
because the embedded assembler guarantees to emit the __asm functions
in the order you define them. However, inlined and template functions
behave differently. Do not assume that code execution falls out
of an inline or template function into another embedded assembly
function.
__asm functions do not change
the ARM Architecture Procedure Call Standard (AAPCS) rules
that apply. This means that all calls between an __asm function
and a normal C or C++ function must adhere to the AAPCS, even though
there are no restrictions on the assembly code that an __asm function
can use (for example, change state).
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.