NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: matthias on February 20, 2020, 10:24:20 AM

Title: compile and link correctly
Post by: matthias on February 20, 2020, 10:24:20 AM
Hello to all.
I have installed the nasm on my windows 10 pc.
I did write a assembler file. The classical hello world.
How do I now make a exe file out of it?

Thanks for the answer

Matthias
Title: Re: compile and link correctly
Post by: vitsoft on February 23, 2020, 08:28:03 PM
You will need a linker to create PExecutable from the COFF object file created by nasm
and from import libraries. Examples are here: https://www.davidgrantham.com/ (https://www.davidgrantham.com/)

Or you can use ÔéČASM, which creates executable files without external linker and import libraries. Examples are here: https://euroassembler.eu/eadoc/#HelloWorld (https://euroassembler.eu/eadoc/#HelloWorld)