Low-Level Programming: C, Assembly, and Program Execution on Intel® 64 Architecture

Igor Zhirkov

  • 出版商: Apress
  • 出版日期: 2017-06-29
  • 定價: $2,700
  • 售價: 9.0$2,430
  • 語言: 英文
  • 頁數: 464
  • 裝訂: Paperback
  • ISBN: 1484224027
  • ISBN-13: 9781484224021
  • 相關分類: Assembly
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

商品描述

Learn Intel 64 assembly language and architecture, become proficient in C, and understand how the programs are compiled and executed down to machine instructions, enabling you to write robust, high-performance code.

Low-Level Programming explains Intel 64 architecture as the result of von Neumann architecture evolution.  The book teaches the latest version of the C language (C11) and assembly language from scratch.  It covers the entire path from source code to program execution, including generation of ELF object files, and static and dynamic linking. Code examples and exercises are included along with the best code practices. Optimization capabilities and limits of modern compilers are examined, enabling you to balance between program readability and performance. The use of various performance-gain techniques is demonstrated, such as SSE instructions and pre-fetching. Relevant Computer Science topics such as models of computation and formal grammars are addressed, and their practical value explained.

What You'll Learn

Low-Level Programming teaches programmers to:

  • Freely write in assembly language
  • Understand the programming model of Intel 64
  • Write maintainable and robust code in C11
  • Follow the compilation process and decipher assembly listings
  • Debug errors in compiled assembly code
  • Use appropriate models of computation to greatly reduce program complexity
  • Write performance-critical code
  • Comprehend the impact of a weak memory model in multi-threaded applications

Who This Book Is For

Intermediate to advanced programmers and programming students

 

商品描述(中文翻譯)

學習 Intel 64 組合語言和架構,熟練 C 語言,並了解程式如何編譯和執行至機器指令,使您能夠撰寫堅固且高效能的程式碼。

《低階程式設計》解釋了 Intel 64 架構是冯·诺伊曼架構演化的結果。本書從頭開始教授最新版本的 C 語言(C11)和組合語言。它涵蓋了從原始碼到程式執行的整個過程,包括生成 ELF 目標檔案以及靜態和動態連結。書中包含了程式碼範例和練習,並介紹了最佳的程式碼撰寫實踐。本書還探討了現代編譯器的優化能力和限制,使您能夠在程式可讀性和性能之間取得平衡。書中演示了各種提高性能的技巧,例如 SSE 指令和預取。此外,本書還涵蓋了相關的計算機科學主題,如計算模型和形式語法,並解釋了它們的實際價值。

《低階程式設計》教授程式設計師:

- 自由地使用組合語言撰寫程式
- 理解 Intel 64 的程式設計模型
- 在 C11 中撰寫可維護且堅固的程式碼
- 跟隨編譯過程並解讀組合語言清單
- 調試編譯後的組合語言程式碼中的錯誤
- 使用適當的計算模型大大降低程式複雜性
- 撰寫性能關鍵的程式碼
- 理解弱記憶模型對多線程應用程式的影響

本書適合中高級程式設計師和程式設計學生閱讀。