My practice and notes for Intel x86_64 NASM on Windows.
# setting UTF-8 encoding
chcp 65001
# assemble
nasm -f win64 {filename}.asm
# link by goLink
goLink /console {filename}.obj /entry main msvcrt.dll
# or by gcc
gcc {filename}.obj -o {output}.exeor use batch file
# link by goLink
./run.cmd {filename_without_extension}
# link by gcc
./run-gcc.cmd {filename_without_extension}- Download assembler - NASM
- Download linker - GCC or GoLink
- You can download nasm.exe and GoLink.exe is in /tools instead.
- UTF8 encoding problem See on stackoverflow