Can someone explain how to compile assembly language code. I made my first assembly language code, but don't know how to run it. I know i can debug with gdb, but is there any way to just compile it and get the answer like in C and java compilers.
You need to assemble it:
as your_prog.s -o your_prog.o
And then link it:
ld your_prog.o -o your_prog
You can then run it with ./your_prog
Assembly language programs are assembled by an assembler just like C programs are compiled into object code by a compiler...for which mpu are you writing this assembly code.
-bash: as: command not found
but when i do man as it is there
---------- Post updated at 11:17 PM ---------- Previous update was at 11:15 PM ----------
What you mean by mpu?
It was under m4 processor ( sparc architecture) if you are asking that