title: Compiling GNU assembler to windows
body: <p>I need to compile assembly file that is written in GNU assembler in windows.
  The file is compiled correctly in Linux using as assembler.
  The assembly file contains a global deceleration of function that receives 2 params, which should be called from C/C++ visual studio 2013.</p>
  
  <p>How can I do that ?</p>
  
  <p>Here are part of .s file:</p>
  
  <pre><code>.globl func
  func:
  pushq %rbp
  pushq %r12
  pushq %r15
  pushq %r13
  pushq %r14
  subq $40,%rsp
  
  movq %rdi,%rbp //the first param
  movq %rsi,%r12 //the second param
  
  //real code starts here...
  
  
  //restore stack and return
  
  addq $40,%rsp
  popq %r14
  popq %r13
  popq %r15
  popq %r12
  popq %rbp
  ret
  </code></pre>
  
  <p>Thanks all !</p>