title: get label address of assembly using C
body: <p>I want to get the label address of assembly in C language. Here is the example</p>
  
  <p>I have a start.S file:</p>
  
  <pre><code>.fun:
      // do something
  </code></pre>
  
  <p>And I have a main.c file:</p>
  
  <pre><code>volatile unsigned int * p = (unsigned int *) 0x1000;
  </code></pre>
  
  <p>I want to write the label address of 'fun' into the memory of 0x1000, So I write</p>
  
  <pre><code>*p = fun; 
  </code></pre>
  
  <p>But it cannot be compiled with error info:</p>
  
  <pre><code>'fun' undeclared (first use in this function)
  </code></pre>
  
  <p>Thanks for your help. </p>