AT&T or Intel syntax ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi ,

I want to learn x86 assembly.
I started looking into a book called Linux Assembly Language
Programming by Bob Neveln.

The first few pages speak of MASM , TASM, NASM, GNU as , intel synatx
and At&T synatx. The books says some good points about Nasm and its
syntax matching that of Intel's.It considered AT&T syntax obscure and
difficult to understand.

But my interest in the Linux kernel tells me there is AT&T assembly in
the kernel and not Intel's syntax. So i am more interested in learning
assembly using AT&T synatx.

At the same time i am really now confused if i should follow AT&T
syntax of intel's one?

Nasm or Gas?

I do not want to waste time on gas just to realise NASM was a better
choice.

Do you people have any advice to someone like me who is a C programmer
but not an asm programmer?

Which way should i follow?

AT&T or Intel syntax, keeping in mind i 'll be reading the Linux
kernel source?

Are there any good books i can follow which will help me in building a
solid foundation of assembly?

Thank you

- --psr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFGaQZwky6Gd9lpXlERAhLRAJ95GEz0OOeQi//i1Y5cVk2IiDfn+ACfUMpl
wrGR5J1LxfR9kFAXwNqucFc=
=51ry
-----END PGP SIGNATURE-----

.



Relevant Pages

  • Re: subroutine stack and C machine model
    ... the most fundamental facts about C right, *why should I listen to you*? ... just a hard-working programmer who's helped ... people who worked on the standard. ... Nearly all books in nearly all fields outside formal refereed science ...
    (comp.lang.c)
  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... >> So, of course, you should distinguish between what the syntax requires ... not RosAsm style? ... is written specifically for Linux... ... C++, it is only implemented on GUI-capable OSes currently and, thus, a GUI ...
    (alt.lang.asm)
  • Re: Delphi makes it to digg!
    ... so many times from Steve McConnell's books. ... I see today the programmer rather like a doctor, curator, social assistant in helping the user in his pains rather than a mathematician in his cubicle trying to implement a certain algorithm dictated by theory. ... About 'waterfall thinking' -> 'take a few steps and revisit': ... same mistakes, though you clearly identify them and as a team declare ...
    (borland.public.delphi.non-technical)
  • Re: Databases in Forth
    ... want without being forced to change syntax. ... You've just demonstrated the opposite-- a Forth programmer trying to ... apply a Forth mindset to C and coming up with a bizarre notion that C ... stack pointer but other per-context data. ...
    (comp.lang.forth)
  • Re: Databases in Forth
    ... want without being forced to change syntax. ... You've just demonstrated the opposite-- a Forth programmer trying to ... apply a Forth mindset to C and coming up with a bizarre notion that C ... stack pointer but other per-context data. ...
    (comp.lang.forth)