views:

1426

answers:

6

I want to ask if there is any way to code in MASM under Linux. Even tough NASM is quite popular under Linux, it still differs for some instruction style on code. Currently I am using Ubuntu 8.10 (Intrepid Ibex).

+4  A: 

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.

flolo
Sounds like an old kind of EULA. Not many Microsoft products have such aggressive license agreements nowadays.
JesperE
Also, using MASM32 on Linux does not automatically imply that open source software is developed.
JesperE
If the EULA still says "only allows it to be run in Windows operating systems" then it doesn't matter whether or not using it on Linux automatically implies that open source software is being developed.
Windows programmer
well, you can run windows in a VM on linux, so that you don't violate their EULA ;-)
none
+1  A: 

You should be able to run MASM under Wine.

JesperE
+1  A: 

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.

Artelius
+1  A: 

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

kjhg
A: 

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

Regards.

Nathan Campos
A: 

Do you see jwasm project? This project seem to compile masm compatible code.

Valtoni Boaventura