To run the helloworld.asm example which needs to be coupled with a C library,
- Windows go to a terminal:
nasm -fwin32 helloworld.asm
gcc helloworld.obj
a- Linux:
nasm -felf helloworld.asm
gcc helloworld.o
./a.outToo run the full assembly helloworld example use:
nasm hi.asm -o hi.comFlat assembler is an assembler interpreter (kinda) which does not need any extra linker, making assembler proggramming easier.
To try the hello.asm, run:
fasm hello.asmThis will create an executable.
A disassembler "uncompile" an assembler code, it can also be used as a debugger. They can also be used to do reverse engineering on binairies.
Some famous and multi platform open source ones:
- radare 2:
- Radare2 is an open source tool to disassemble, debug, analyze and manipulate binary files supporting many architectures and binary formats.