Edi Weitz wrote:
> One of the things on my to-do list is learning enough assembly
> language to understand the output of DISASSEMBLE and maybe later
> fiddle with the compiler. I've written a couple of 6502 assembler
> programs on my Apple II a long time ago but that's it. Obviously,
> microprocessors have changed a lot since. I went to two computer book
> stores here in Hamburg, checked what they had about assembly language
> and was a bit disappointed. I even bought one of the books but I don't
> like it. So, with Christmas approaching, I thought I might ask here if
> anyone has recommendations for good books about assembly language.
> What exactly am I looking for?
> - Most of my work is on x86 nowadays, so I guess this is what I want
> to learn first. (I'm told that other architectures like PPC or Sparc
> are nicer but I currently don't have a Mac or a Sun or whatever.)
> - As I said, I once knew 6502 assembler. I also know enough Lisp, C,
> Perl, Java, and other languages to pay my rent, so I don't
> necessarily need a book that teaches me how to count or needs ten
> pages to explain binary numbers... :)
> - I mostly work with Linux or FreeBSD and feel kind of lost on
> Windows. The books I saw (including the one I bought) were all
> targeted at Win32 users. I'd prefer something that's not so heavily
> tied to a certain platform - or at least not to _that_ platform.
> I'd be thankful if some of you had good recommendations for me. I
> wouldn't mind links to good web resources either but I prefer dead
> trees for learning.
I would recommend the Intel manuals for its architecture:
These manuals are quite good, and Intel will ship them to you free of
charge! And since they are available as PDFs you will be able to check
whether they are of any use to you before you order them.
I use the "Software Developers Manual" series all the time, and in
addition to these books, I would recommend the "Optimization Reference
Manual" which will teach you how to think right wrt optimizing assembly.
"The Software Optimization Cookbook" is a title that I have not read,
but you could consider that one too - it is not shipped free of charge