locked
How to compile _asm in x64 environment? RRS feed

  • Question

  • Hi all,

    i would like to compile inline assembly that using EM64T register set by using visual c++. for example my code as below:

    _asm mov rax, rbx

    I can't compile it because compiler is not recognized EM64T register like rax, rbx......

    I would like to compile and run the application under 32bits mode and EM64T mode.

    Appreciate if anybody can help. Thanks :) 

    Wednesday, September 13, 2006 2:48 AM

Answers

  •  

    The Visual C++ compiler does not support inline x64 assembly. You'll need to put the assembly code in an .asm file and "compile" it using the MASM assembler that comes with Visual C++ (ml.exe).

    Wednesday, September 13, 2006 12:56 PM

All replies

  •  

    The Visual C++ compiler does not support inline x64 assembly. You'll need to put the assembly code in an .asm file and "compile" it using the MASM assembler that comes with Visual C++ (ml.exe).

    Wednesday, September 13, 2006 12:56 PM
  • I see. Thanks for your reply:)
    Friday, September 15, 2006 2:44 AM