Run assembly program on debian?

Hi,
I am new to assembly.
What i need to install to run assembly program on debian 64?
What i write to excite the code?

Assembler?
Would it not be easier to write the main code in C[++] and add mission critical stuff using inline assembly code inside the C source?

I am not quite sure what exactly you mean: A "program" (any language, including assembler) is at first a text document containing the source code. This text document is then translated (Assembler programs by an assembler, other languages by a compiler, both of these are further processed by a linker afterwards), producing an executable. This executable file can then be executed (as the name suggests) without any other means. It is a "standalone" program.

So: for an assembled program to run you need: the executable file produced by the assembler, nothing else.

If you want to start writing programs in Assembler (note: "Assembler" is the language, "assembler" is a translation program translating program source code written in that language) you need:

  • an editor that produces plain text files. My editor of choice is vi , but that is a personal choice. Whatever works for you.

  • the assembler program. This is usually called as and you might have to install one or more packages in addition to the default installation of Debian.

  • a linker. Same as above.

  • a make utility. If i remember correctly this is installed per default, but i could be wrong. If not: same as above, install the necessary package(s). You do not need the make utility but you life will be much more comfortable using one. I suggest you start using it from the beginning.

Codes are a hopeless cause, they are not easily excited. ;-))

Serious: i suppose you meant "execute", but i am still not sure what you want to know. Was your question answered above?

I hope this helps.

bakunin

You could try NASM : Linux Assembly Tutorial - Step-by-Step Guide