News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Which assembler for Win32 and Linux ?

Started by James Ladd, September 05, 2005, 10:35:04 PM

Previous topic - Next topic

James Ladd


Please can someone tell me what is a good assembler for developing apps for Windows and for Linux ?
(Have you used the suggested assembler or just know it exists?)

Would I be better off using a dedicated assembler for each platform, ie: MASM for Windows and
'xxx' for Linux ?
(Ideally I dont want to have to code the application twice)

I look forward to the response.

Rgs, Striker.

hutch--

James,

FASM has the legs here but NASM has been able to do this for years so its a decent contender as well. Just note that it will feel like a very different animal after using MASM.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php


James Ladd

Thanks for the replies.

I have looked at NASM but wonder why people suggest FASM ?

Rgs, Striker.

comrade

because it is actively developed and has new features

NASM is outdated

hutch--

One of the virtues of NASM is that it is apparently part of at least some LINUX distributions so it will be on many linux boxes already. Development in FASM is a lot more active and it is probably a more modern assembler but NASM tends to be a linux industry standard so don't write it off.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Vortex

I remember that it is possible to run Masm on Linux with an emulator.

James Ladd

Ok, so FASM looks like a good tool.

Plenty of examples for what im needing and it doesnt look like a major jump from MASM.

What debugger is recommended for FASM ?

Thanks again for the feedback/suggestions.

Rgs, striker.


farrier

striker,

I have switched completely to the FASM for my Win32 programming needs.  For Win32/64 Ollydbg is still the debugger for me.  Tomasz has included a series of macros that allow an almost direct use of MASM code in the FASM.  The only thing I still miss is the lack of multi-conditional if statements:

if ( a < b) .and. ( c > d )

is not supported.  I can't comment on Linux programming, but many use it for Win, DOS, Linux, FreeBSD, OpenBSD and others.  And the response time to questions and requests is usually quite timely!  The FASM forum is as helpful as this one.

Hope you will enjoy it!!

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

epoch

I would say go for yasm too.. when it comes to linux.

If you want more general info on linux, aside asm, try www.linux-reactor.com..

James Ladd

#11
Thankyou to everone who replied.
I like FASM a lot and think Ill give it a go.

Does anyone have an example of a Linux SO in FASM that could get me started ?
I found on for Win32 here: http://sulaiman.netadvant.com/fasm/tut_17.html

Update: Ok, downloaded FASM, ran it, liked it !!

Now all I need is an example .SO  <- Has someone got one ?

Rgs, striker


James Ladd

Dr,
Thanks for the link. Very interesting.
Im still needing an example of a SO in linux.

From memory of my 'C' days it just a file of exported routines linked a different way.
Id like to see an example to be sure.

Rgs, Striker

Tedd

.so is just an elf format file. I think this is the type nasm/yasm will output if you specify "-f elf"
(There are actually 3 different types of elf file, which is so helpful :bdg)
No snowflake in an avalanche feels responsible.