If you have assembly code and want to execute it, you first need to run it using assembler to create the binary. There are several assemblers available, I would recommend starting with NASM , as it is quite popular and works on several platforms.
Then, to build / link your program, simply run:
nasm -o object.o your-source-file.asm ld -s -o your-output-executable object.o
source share