64-bit windows assembler

前端 未结 2 559
没有蜡笔的小新
没有蜡笔的小新 2021-02-15 13:42

I want to program 64 bit windows assembly (preferably using NASM). I have looked quite a but on google but it seems that I cannot find a 64 bit windows compiler. Some site menti

相关标签:
2条回答
  • 2021-02-15 13:48

    It is possible to write, assemble, and run 32-bit assembly on 64-bit Windows. I've written a few utilities in masm32 on my Windows 7 x64 machine. If you want to assemble 64-bit code, I believe that FASM supports 64-bit object code.

    0 讨论(0)
  • 2021-02-15 13:51

    Yasm(*) is a modern, multi-platform NASM-rewritten assembler which is capable of assembling for both x86 and AMD64/x86-64 instruction sets.

    However... What you probably mean is that you need a linker to link the assembled object code/file(s) to create an executable file. At least the completely free MinGW(Minimal GNU for Windows) project package ships with a linker(called ld) capable of assembling both 32- and 64-bit Windows executables from object files(ELF and PE object format, at least).

    You can definitely cross-compile/build 32-bit projects in a 64-bit environment and vice versa, given that you supply correct command-line parameters to the assembler and the linker. Please refer to the documentation of the tools of your choise for more precise details.

    *) http://yasm.tortall.net/

    0 讨论(0)
提交回复
热议问题