ARM Assembly for Embedded Applications, 3rd Edition
暫譯: 嵌入式應用的 ARM 組合語言,第 3 版
Daniel W. Lewis
- 出版商: CreateSpace Independ
- 出版日期: 2017-09-07
- 售價: $1,900
- 貴賓價: 9.5 折 $1,805
- 語言: 英文
- 頁數: 318
- 裝訂: Paperback
- ISBN: 1543908047
- ISBN-13: 9781543908046
-
相關分類:
ARM、嵌入式系統、Assembly
無法訂購
商品描述
ARM Assembly for Embedded Applications is a text for a sophomore-level course in computer science, computer engineering, or electrical engineering that teaches students how to write functions in ARM assembly called by a C program. The C/Assembly interface (i.e., function call, parameter passing, return values, register conventions) is presented early so that students can write simple functions in assembly as soon as possible. The text then covers the details of arithmetic, bit manipulation, making decisions, loops, integer arithmetic, real arithmetic floating-point and fixed-point representations, inline coding and I/O programming. What’s new: This 3rd edition adds two new chapters. Chapter 11 is on multimedia processing, with several examples that use the saturating arithmetic and SIMD (Single Instruction Multiple Data) instructions of the ARM processor to implement fast routines for multimedia applications. Chapter 12 uses the SIMD instructions to implement functions for rational and complex arithmetic. The material on bit manipulation instructions has been updated with a discussion of how to use the basic operations of AND, OR and exclusive-OR as filters that pass a bit unmodified to the output, force it to either 0 or 1, or change it to the opposite of its previous value. New illustrations show how it is sometimes easier to translate for and while loops into assembly by first converting them into an arrangement of goto statements, statement labels, and an inverted test for completion. There are additional examples of how to implement multiplication and division by a constant more efficiently than using multiply and divide instructions, with a C program added to the textbook website that generates fast instruction sequences for division by a constant. New illustrations clarify the algorithm for multiplying fixed-point reals, and there is new material on instruction cycle counts, pipeline stalls, execution time measurement, memory-mapped I/O ports, data rates and synchronization.
商品描述(中文翻譯)
《嵌入式應用的 ARM 組合語言》是一本針對計算機科學、計算機工程或電子工程二年級課程的教材,教導學生如何撰寫由 C 程式呼叫的 ARM 組合語言函數。C/組合語言介面(即函數呼叫、參數傳遞、返回值、寄存器約定)在早期就被介紹,以便學生能夠儘快撰寫簡單的組合語言函數。該教材接著涵蓋了算術運算、位元操作、決策、迴圈、整數運算、實數運算、浮點數和定點數表示法、內嵌編碼及 I/O 程式設計的細節。
新內容:本書第三版新增了兩個章節。第 11 章專注於多媒體處理,提供幾個範例,使用 ARM 處理器的飽和算術和 SIMD(單指令多數據)指令來實現多媒體應用的快速例程。第 12 章則利用 SIMD 指令實現有理數和複數運算的函數。位元操作指令的內容已更新,討論如何使用 AND、OR 和異或(exclusive-OR)的基本操作作為過濾器,將位元不經修改地傳遞到輸出,強制其為 0 或 1,或將其改為先前值的相反。新的插圖顯示,有時將 for 和 while 迴圈轉換為組合語言時,先將其轉換為 goto 語句、語句標籤和反向完成測試的排列會更容易。還有額外的範例展示如何比使用乘法和除法指令更有效地實現常數的乘法和除法,並在教科書網站上新增了一個 C 程式,生成針對常數除法的快速指令序列。新的插圖澄清了乘法定點實數的演算法,並新增了有關指令週期計數、管線停頓、執行時間測量、記憶體映射 I/O 埠、數據速率和同步的新材料。