title: Intel-style inline assembly in gcc
body: <p>I am trying to compile an old C++ software project in Code::Blocks using the gcc compiler, and after fixing a few other issues, I've hit a wall: the project has a file with Intel-style inline ASM written as</p>
  
  <pre><code>_asm {
    code here
  }
  </code></pre>
  
  <p>and the compiler refuses to compile it with "error: '_asm' was not declared in this scope".</p>
  
  <p>I've spent a while Googling around looking for solutions, but the only ones I can find are to add <code>-masm=intel</code> to the build options (which I've tried and can't get to work), or to convert the code to <code>asm ("code here");</code> (which isn't feasible because of the sheer amount of ASM). Does anyone know how I can get gcc to compile this code as-is, or should I give up and use a different compiler?</p>