title: ASM Inline call C external function
body: <p>I'm trying to call an external function in c by an asm inline with a branch. I'm compiling to an arm m0 instruction set but it returns bad expression.</p>
  
  <p>The code is:</p>
  
  <pre><code>__asm volatile (
                  "   cmp     r3,#0                   \n"                     
                  "   b %[my_function]                \n" //Call function
                  "   bx r14                          \n"
                  : // no output
                  : [my_function] "i" (my_function) // input
                  : "r0" // clobber
              );
  </code></pre>
  
  <p>The return is:</p>
  
  <pre><code>/tmp/ccICkDIE.s: Assembler messages:
  /tmp/ccICkDIE.s:152: Error: bad expression -- `b #my_function'
  </code></pre>
  
  <p>What we need to do?</p>