Oleg Zabluda's blog
Friday, August 31, 2018
 
""""
""""
As of GCC version 4.5, asm goto may be used to have the assembly jump to one or more C labels. In this form, a fifth section after the clobber list contains a list of all C labels to which the assembly may jump. Each label operand is implicitly self-named. The asm is also assumed to fall through to the next statement.

This form of asm is restricted to not have outputs. This is due to a internal restriction in the compiler that control transfer instructions cannot have outputs. This restriction on asm goto may be lifted in some future version of the compiler. In the mean time, asm goto may include a memory clobber, and so leave outputs in memory.
"""
https://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/Extended-Asm.html

Labels:


| |

Home

Powered by Blogger