[linux-help] Re: Assembly on Linux?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Lars von dem Ast wrote:
> On my code excursions I keep running into Assembly language. How does
> one get started with Assembly on Linux? Is there a Linux Assembly
> tutorial anywhere?
A good start is:
Linux uses assembler for architecture-specific code -- stuff that cannot
be done in C (such as setting the stack pointer and other registers), and
for stuff that can be done faster in hand-tweaked assembly code. How you do
this depends on the assembler (probably gas, although most Linux assembly
is gcc inline asm code) and the CPU itself.
You can get doc on gas from:
Doc on gcc is under:
Almost all CPU doc is also available on-line. For example, see:
where you can download "The IA-32 Intel Architecture Software
Developer's Manual, Volume 2: Instruction Set Reference". There
are lots of similar books, but at least for Intel the main thing
to look for is the Instruction Set Reference.
There's been a severe lack of books on assembly language, but
two have popped up recently:
Linux Assembly Language Programming, by Bob Neveln (Prentice-Hall,
Assembly Language Step-by-Step: Programming with DOS and Linux,
2nd Edition, by Jeff Duntemann (John Wiley, 2000), $39.95
I can't recommend either book.
* Tom Hull * thull@xxxxxxxxxxx * http://www.ocston.org/~thull/
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,