title: Porting GCC specific ASM code to MSVC
body: <p>Basing on that code I found on google (which is working fine on GCC compiler)</p>
  
  <pre><code>#define ASM __asm__ __volatile__
  void MyFunc()
  {
      ASM("enc_start:\n\t");
      printf("Hello, world!");
      ASM("enc_end:\n\t");
  }
  int main()
  {
      unsigned int addr, len;
      ASM("movl   $enc_start, %0\n\t"
          "movl   $enc_end, %1\n\t"
          : "=r"(addr), "=r"(len));
      printf("Address of begin of function: %X", addr);
      printf("Len is of: %d bytes", len);
      return 0;
  }
  </code></pre>
  
  <p>I would like to convert it in visual studio, I tried but I failed. I don't even know if that's possible. Can you please convert it for me or at least giving me a similar way for get the same result ?</p>
  
  <p>Thanks a lot.</p>