Introduction to 64 Bit Intel Assembly Language Programming for Linux

3,45 valoración promedio
( 11 valoraciones por Goodreads )
 
9781466470033: Introduction to 64 Bit Intel Assembly Language Programming for Linux

This book is an assembly language programming textbook introducing programmers to 64 bit Intel assembly language. The book is intended as a first assembly language book for programmers experienced in high level programming in a language like C or C++. The assembly programming is performed using the yasm assembler (much like the nasm assembler) under the Linux operating system. The book primarily teaches how to write assembly code compatible with C programs. The reader will learn to call C functions from assembly language and to call assembly functions from C in addition to writing complete programs in assembly language. The gcc compiler is used for C programming. The book starts early emphasizing using the gdb debugger to debug programs. Being able to single-step assembly programs is critical in learning assembly programming. Highlights of the book include doing input/output programming using the Linux system calls and the C library, implementing data structures in assembly language and high performance assembly language programming. A companion web site has a collection of PDF slides which instructors can use for in-class presentations and source code for sample programs. Early chapters of the book rely on using the debugger to observe program behavior. After a chapter on functions, the user is prepared to use printf and scanf from the C library to perform I/O. The chapter on data structures covers singly linked lists, doubly linked circular lists, hash tables and binary trees. Test programs are presented for all these data structures. There is a chapter on optimization techniques and 3 chapters on specific optimizations. One chapter covers how to efficiently count the 1 bits in an array with the most efficient version using the recently-introduced popcnt instruction. Another chapter covers using SSE instructions to create an efficient implementation of the Sobel filtering algorithm. The final high performance programming chapter discusses computing correlation between data in 2 arrays. There is an AVX implementation which achieves 20.5 GFLOPs on a single core of a Core i7 CPU.

"Sinopsis" puede pertenecer a otra edición de este libro.

From the Author:

Second Edition now available

I wish to thank the person who recently gave me some suggestions for improving my book.  Getting feedback from readers is an important way for me to improve the book.  I will be updating the book over the next few months and I will try to improve it as you have suggested.

There are instructions on page 8 of the book detailing how to assemble a program under Linux.  I will try to elaborate on this more in the next version of the book.  In the meantime I try to answer email sent to me as described in the preface.  I will try to add more index entries to help guide people to the discussion of how to assemble.

Along with the new version of the book I provide a free integrated development environment - ebe.  Ebe supports programming in Assembly, C/C++ and Fortran.  High-level language support needs bit more work and I still need to add some essential features to ebe, but ebe makes it trivial for a person to enter, assemble, link and execute an assembly program.  In fact you can load hello.asm from the ebe menu system, save it and execute it without typing.  This is considerably easier typing Linux commands.  I have been using ebe this spring for C++ programming and I have found it pretty easy to enter C++ code.  I hope this adequately addresses the issue of assembling and linking, though I know that I can't foresee every problem which traps beginning assembly programmers.  I will continue to try to answer questions emailed to me.

The other important issue pointed out by the reviewer is a lack of examples.  There are examples in every chapter, but there is clearly room for more.  I will try to add more examples.

Thanks again for reviewing my book.  I hope I can remain at 3.7 or higher.  I will try.

From the Back Cover:

Computers have reached the limits of 32 bit CPUs.  Nearly any computer will run efficiently with 8 GB of RAM which requires using a 64 bit operating system.

The latest Intel and AMD CPUs have more registers and more capabilities when running in 64 bit mode.  Achieving high performance using SSE and AVX instructions dictates using or writing code in assembly language.

If you know C or C++, this book will expand your skills while clarifying exactly what your compiler does with your code.

The book progresses from simple concepts to loops, functions, arrays, structs, system calls and using C library functions.  Advanced features include data structures in assembly and examples of high performance programming using SSE and AVX instructions.

"Sobre este título" puede pertenecer a otra edición de este libro.

Comprar usado Ver libro

Gastos de envío: EUR 3,39
A Estados Unidos de America

Destinos, gastos y plazos de envío

Añadir al carrito

Los mejores resultados en AbeBooks

1.

Seyfarth, Ray
Editorial: CreateSpace Independent Publishi (2011)
ISBN 10: 1466470038 ISBN 13: 9781466470033
Usado Paperback Cantidad: 1
Librería
HPB-Dallas
(Dallas, TX, Estados Unidos de America)
Valoración
[?]

Descripción CreateSpace Independent Publishi, 2011. Paperback. Estado de conservación: Good. Item may show signs of shelf wear. Pages may include limited notes and highlighting. Includes supplemental or companion materials if applicable. Access codes may or may not work. Connecting readers since 1972. Customer service is our top priority. Nº de ref. de la librería mon0000686462

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar usado
EUR 159,04
Convertir moneda

Añadir al carrito

Gastos de envío: EUR 3,39
A Estados Unidos de America
Destinos, gastos y plazos de envío