MASM under Linux?

后端 未结 7 1097
后悔当初
后悔当初 2021-02-13 10:16

Is there a way that I use MASM under Linux. Even tough NASM is quite popular under Linux, it still differs for some instruction style on code.

相关标签:
7条回答
  • 2021-02-13 10:23

    MASM dont run with WINE, im running MASM under Virtual Box

    0 讨论(0)
  • 2021-02-13 10:28

    Run MASM under Wine or see at the wiki that MASM can only run at Windows.

    Regards.

    0 讨论(0)
  • 2021-02-13 10:31

    An alternative to MASM is UASM.

    UASM is a free MASM-compatible assembler based on JWasm.

    It works for creating general Linux binaries. However, shared objects requiring the -fPIC option is not possible with UASM.

    0 讨论(0)
  • 2021-02-13 10:34

    I use DosBox and it does work fine for me.

    Details here

    0 讨论(0)
  • 2021-02-13 10:37

    Wiki says

    The MASM32 EULA does not allow its usage in the development of open source software, and only allows it to be run in Windows operating systems.

    so it is a no.

    0 讨论(0)
  • 2021-02-13 10:39

    Personally I prefer the NASM style, but you can probably run MASM under Wine (or failing that, in a VM). After all it shouldn't need any exotic API calls.

    I've been able to run the Win32 NASM binary under Wine on Linux without any problems [long story, no net connection].

    If you want to convert Microsoft's OMF binary format to ELF then you should be able to do so using objcopy, but you may need to compile in support for the right object formats.

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