MASM under Linux?
Asked Answered
C

7

15

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.

Cheerio answered 20/11, 2008 at 7:27 Comment(0)
R
13

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.

Rafi answered 20/11, 2008 at 7:34 Comment(5)
Sounds like an old kind of EULA. Not many Microsoft products have such aggressive license agreements nowadays.Eozoic
Also, using MASM32 on Linux does not automatically imply that open source software is developed.Eozoic
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.Chigger
well, you can run windows in a VM on linux, so that you don't violate their EULA ;-)Dilley
Could you link this quote to its source? It's rather dubious and is no longer on the wiki.Demurrer
S
10

I use DosBox and it does work fine for me.

Details here

Stu answered 20/2, 2012 at 15:34 Comment(2)
Welcome to Stack Overflow! You shouldn't just give a link to another site as an answer, since the site may go out of date in the future. Instead, click the "edit" link on this answer and include the essential parts of the solution from that page here. See: meta.stackexchange.com/q/8259Sibilla
@PeterO. It looks like that is exactly what has happened.Jackijackie
E
6

You should be able to run MASM under Wine.

Eozoic answered 20/11, 2008 at 7:41 Comment(0)
E
5

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

Etzel answered 3/10, 2009 at 2:6 Comment(0)
S
4

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.

Supposition answered 1/2, 2021 at 16:49 Comment(1)
underrated answer!Brawl
D
3

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.

Demars answered 20/11, 2008 at 7:50 Comment(0)
T
1

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

Regards.

Truckage answered 12/10, 2009 at 13:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.