Low Level Assembly Programs Using NASM and GCC
-
To run these programs your system must have installed NASM and GCC.
-
Open file with any terminal as per your convinience.
-
Save the file.
-
Open terminal having path as same folder.
-
To run type below commands:
$ nasm -felf32 file_name.asm
$ gcc -m32 file_name.o
$ ./a.out
- To debug program use below commands:
$ nasm -felf32 -g -Fdwarf file_name.asm
$ gcc -m32 -g -Fdwarf file_name.o
$ ./a.out