Hallo guys,
What is the best ASM compiler?
Can you give me a download link?
thanks. :)
11 replies to this topic
#1
Posted 22 June 2011 - 11:05 AM
|
|
|
#2
Posted 22 June 2011 - 11:41 AM
What is the best ASM compiler for what? If you're targeting a specific chip, it will generally be the ASM compiler for that chip. In addition, the best ASM compiler for Linux will generally not be the best ASM compiler for Windows or Mac.
#3
Posted 22 June 2011 - 11:45 AM
i need compiler for windows , intel..
im Newbie in asm so i dont know that the terms..
thanks
im Newbie in asm so i dont know that the terms..
thanks
#4
Posted 22 June 2011 - 01:11 PM
If you're looking for free ones, there are a few listed here: Free Assembler Programming, Freebyte's Guide to
The other issue, of course, is how do you define "best". For some, it has to be free, others will spend hundreds.
The other issue, of course, is how do you define "best". For some, it has to be free, others will spend hundreds.
#5
Posted 22 June 2011 - 04:34 PM
Well, we don't use compilers in Assembly... we use Assemblers and Linkers :-) As for which is the best for a newbie like yourself? Only you will be able to answer that. Years ago I downloaded a few different Assemblers and tried them all and picked the one that I was the easiest for me. At that time it was MASM, more specifically the MASM32 package from Hutch.. It contains all the MASM tools, include files, libs, prebuilt libraries of many functions to get you going with source. Nowadays NASM and FASM are good choices. But, once you learn one, it isn't too hard to change to another windows Assembler...
#6
Posted 23 June 2011 - 02:21 AM
Nasm is good.
#7
Posted 24 June 2011 - 12:31 AM
NASM is used at various academic institutes for teaching assembly as well. So that counts a plus towards it being free as well.
Other than that, every C/C++ compiler comes with an assembler because C/C++ code is translated into native assembly before generating final exe.
So you might use
block in c and write assembly in it.
I wrote a tutorial though on a little advanced topic using VS doing that. I just thought you might already have a c/c++ compiler at your disposal so it takes lesser time to start using it for assembly.
http://forum.codecal...c-assembly.html
Other than that, every C/C++ compiler comes with an assembler because C/C++ code is translated into native assembly before generating final exe.
So you might use
__asm {
}
block in c and write assembly in it.
I wrote a tutorial though on a little advanced topic using VS doing that. I just thought you might already have a c/c++ compiler at your disposal so it takes lesser time to start using it for assembly.
http://forum.codecal...c-assembly.html
Today is the first day of the rest of my life
#8
Posted 25 June 2011 - 09:05 AM
I don't really like inline assembly, but for the '__asm' syntax, isn't it supposed to be that?:
asm {
}
Or do both ways work?
#9
Posted 25 June 2011 - 09:29 AM
It works both ways though i think on certain compilers it is not the case. Also for e.g. if the keyword asm conflicts (if you have defined a variable with this name), then underscores are handly.
Also any of braces {} or () can be used too.
Also any of braces {} or () can be used too.
Today is the first day of the rest of my life
#10
Posted 25 June 2011 - 08:20 PM
For future reference, before you ask questions like this, take a look at the "Assembly Language Resources" sticky thread.
sudo rm -rf /
#11
Posted 30 June 2011 - 09:33 AM
For x86 Intel On Windows and DOS, I prefer FASM (Flat Assembler). Pretty easy to use and get tha hang of. It even comes with a simple text editor with a button to automatically assemble. Here's your first Win32 console app:
format PE console entry main include 'macro/import32.inc' section '.text' code readable executable main: push msg1 call [puts] call [getchar] mov eax,0 ret section '.data' data readable writable msg1 db 'hello world!',0 section '.idata' import data readable library msvcrt,'msvcrt.dll' import msvcrt,\ puts,'puts',\ getchar,'getchar'Here's a simple com file:
org 100h mov ah,09h mov dx,msg1 int 21h int 20h msg1 db 'hello world!$'

#12
Posted 30 June 2011 - 10:59 AM
I personally prefer NASM, which is really straightforward, platform-independent, has native support for structs (apparently not that common) and has a really powerful macro preprocessor that allows you to dramatically decrease programming time. It's free, too!
(Not to toot my own horn, but I've written a [so far] ten-part intro to 32-bit assembly language using NASM.)
(Not to toot my own horn, but I've written a [so far] ten-part intro to 32-bit assembly language using NASM.)
sudo rm -rf /
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









