Professional Assembly Language (Programmer to Programmer)
|
| List Price: | $49.99 |
| Price: | $31.49 & eligible for FREE Super Saver Shipping on orders over $25. Details |
Availability: Usually ships in 24 hours
Ships from and sold by Amazon.com
43 new or used available from $18.75
Average customer review:Product Description
- Unlike high-level languages such as Java and C++, assembly language is much closer to the machine code that actually runs computers; it's used to create programs or modules that are very fast and efficient, as well as in hacking exploits and reverse engineering
- Covering assembly language in the Pentium microprocessor environment, this code-intensive guide shows programmers how to create stand-alone assembly language programs as well as how to incorporate assembly language libraries or routines into existing high-level applications
- Demonstrates how to manipulate data, incorporate advanced functions and libraries, and maximize application performance
- Examples use C as a high-level language, Linux as the development environment, and GNU tools for assembling, compiling, linking, and debugging
Product Details
- Amazon Sales Rank: #177802 in Books
- Published on: 2005-02-11
- Original language: English
- Number of items: 1
- Binding: Paperback
- 576 pages
Features
- ISBN13: 9780764579011
- Condition: USED - VERY GOOD
- Notes:
- Click here to view our Condition Guide and Shipping Prices
Editorial Reviews
From the Back Cover
Professional Assembly Language
Every high level language program (such as C and C++) is converted by a compiler into assembly language before it is linked into an executable program. This book shows you how to view the assembly language code generated by the compiler and understand how it is created. With that knowledge you can tweak the assembly language code generated by the compiler or create your own assembly language routines.
This code-intensive guide is divided into three sections — basics of the assembly language program development environment, assembly language programming, and advanced assembly language techniques. It shows how to decipher the compiler-generated assembly language code, and how to make functions in your programs faster and more efficient to increase the performance of an application.
What you will learn from this book:
- The benefits of examining the assembly language code generated from your high-level language program
- How to create stand-alone assembly language programs for the Linux Pentium environment
- Ways to incorporate advanced functions and libraries in assembly language programs
- How to incorporate assembly language routines in your C and C++ applications
- Ways to use Linux system calls in your assembly language programs
- How to utilize Pentium MMX and SSE functions in your applications
About the Author
Richard Blum has worked for a large U.S. government organization for more than 15 years. During that time, he has had the opportunity to program utilities in various programming languages: C, C++, Java, and Microsoft VB.NET and C#. With this experience, Rich has often found the benefit of reviewing assembly language code generated by compilers and utilizing assembly language routines to speed up higher-level language programs.
Rich has a bachelor of science degree in electrical engineering from Purdue University, where he worked on many assembly language projects. (Of course, this was back in the eight-bit processor days.) He also has a master of science degree in management from Purdue University, specializing in Management Information Systems.
Customer Reviews
Good at explaining the basics
About the syntax used - yes,through all the book only the AT&T assembly syntax is used. The obvious reason is that most popular compiler on Linux is GCC, which has GAS (GNU Assembler) as the behind the scenes assembler invoked by GCC every time you compile your code. And native to GAS is the AT&T syntax and not the Intel syntax, which is deemed more readable.
Now to the book contents. As there is no previous knowledge of assembly assumed, the reader is first given a quite detailed view of the Intel processors architecture, including coverage of modern features like the Netburst design, present in modern Pentium series processors.Then basics of the tools of the trade are presented.
With this preliminary knowledge the reader is prepared to begin the major part of the book - the assembly language itself.
The learning curve is flattened as much as possible by the author, guiding us through all the major domains of assembly programming - working with processor registers, stack and heap manipulation, floating point arithmetic,handling various data types (strings, integers, floating point numbers) and more.
All the chapters contain stand alone code examples ready to be compiled and run. Most of the example code is 30-40 lines long and relates to the particular point being explained, i.e. there's no intentional cross-reference between code samples in different chapters.
Starting at the chapter 12, "Linux System Calls", begins what this book was written for - how to apply gathered so far knowledge to the real world. This includes: inline assembly in C/C++ code, programs combining C/C++ source code
and assembly functions, writing static/dynamic libraries in assembly that can be used by any high-level language (here C/C++), optimization tips and tricks, how to work with files.
Finally, the last chapter deals with advanced features like MMX, SSE, and SSE2 instructions .
So, to conclude - It has all a
programmer never exposed to assembly needs to learn to start writing fully functional stand alone or integrated into high-level language assembly code . The author covers all fundamentals of assembly programming and he does it in a plain and accessible language.
However there's something you should be aware of - if you're (like me) a fan of the Wrox "Professional.." series,- don't misunderstand the word in this context. It is only an introductory text on assembly,and it will not bring you to the level of professional assembly programmer, yet.
For the High Level Programmer Going Low Down
Be aware that this book is very Intel oriented, specifically the 32 bit Intel Pentium family sometimes called X86 or more officially IA-32 (Intel Architecture - 32 Bit). If you're working on a Motorola, Sparc or any other architectured machine, go buy a different book.
Having said that, within the Intel world, this book is an excellent introduction on how the IA-32 architecture has developed over time. It is a good introduction to the basic concepts of assembly language programming. It's a fairly high level book, aimed at the programmer who works in C++ or something like that who might want to optimize his code or at least understand what the compiler did to him.
To go with the book, you probably want to go to the Intel web site and download the Software Developer Manuals for the processor you are using (it's about 12 meg for the Pentium 4) or you can order them on a CD. But start with this book, it provides a basis, a foundation that will make the Intel manuals a lot easier to get around.
Good book to start out with assemblers.
Not for MS, and barely for Linux/Unix
I have to take exception with the first 7 reviewers; while this book does have a few redeeming features, it is not a professional level assembly language book. First of all, if you are looking for a professional level assembly language book for operating systems other than Linux or Unix, this book is not for you. It uses AT&T syntax which is different from Intel syntax. If you are experienced, you will have little difficulty translating from one syntax to the other. If you are wanting to learn assembly language for MS OS's, this is not your book.
Blum uses Linux as his development plateform which sounds promising for those of us interested in learning how to use assembly language for Linux. However, he puts off using system calls until chapter 12. He shows one example of printing text on the screen then moves to using printf from the C library. The lack of coverage on system calls puts this book into the barely useful category.
What is useful is his coverage on the major instructions. And, you will get a good workout using the gdb debugger, as he depends upon that for input/output rather than show you how to write basic input/output routines. Linking with other libraries is also useful.
Since there are few books on assembly language for Linux, it is doubly disappointing in how far this book misses the mark. Every seasoned assembly language programmer knows that having a good reference to the OS's basic routines is fundamental. If I wanted to use C functions, I would write in C.




