Complete.Org: Mailing Lists: Archives: linux-help: November 2000:
[linux-help] Re: Assembly on Linux?

[linux-help] Re: Assembly on Linux?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] Re: Assembly on Linux?
From: Tom Hull <thull@xxxxxxxxxxx>
Date: Sun, 26 Nov 2000 16:40:27 -0600
Reply-to: linux-help@xxxxxxxxx

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,
  2000), $39.95

  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 *

-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,

[Prev in Thread] Current Thread [Next in Thread]