Hello, i installed nasm, and yasm (Assembler) in Msys2 (Mingw64). using a command "nasm -f elf helloworld.asm" produces the object file "helloworld.o" (i downloaded the asm-file, that is demonstrated below, from Internet).
now, i am trying to link, using the command "ld -m elf_i386 helloworld.o -o helloworld.exe". however, this command produces pseudo-symbols, and the file, helloworld.exe, is not produced. i would appreciate someone's help to solve the problem (that is, how to compile, and to link, correctly, assembly-files). Thank you. Il'dar > ---------------------------------------- > ; Hello World Program > > SECTION .data > msg db 'Hello World!', 0Ah ; assign msg variable with your message string > > SECTION .text > global _start > > _start: > > mov edx, 13 ; number of bytes to write - one for each letter plus 0Ah > (line feed character) > mov ecx, msg ; move the memory address of our message string into ecx > mov ebx, 1 ; write to the STDOUT file > mov eax, 4 ; invoke SYS_WRITE (kernel opcode 4) > int 80h -- Dr. Ильдар Рифович Альмиев, D.Phil. (Oxford, UK), д. 18, кв. 94, ул. Кул-Гали, г. Казань 420141, Татарстан, Россия E-mail: ialm...@yandex.ru _______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users