ARM Assembly for Embedded Applications, 3rd Edition
Daniel W. Lewis
- 出版商: CreateSpace Independ
- 出版日期: 2017-09-07
- 售價: $1,850
- 貴賓價: 9.5 折 $1,758
- 語言: 英文
- 頁數: 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和互斥OR等基本操作作為過濾器,將位無修改地傳遞到輸出,強制將其設置為0或1,或將其更改為與先前值相反。新的插圖顯示了如何通過首先將它們轉換為goto語句、語句標籤和反向完成測試的排列,有時更容易將for和while循環轉換為組合語言。還提供了更多關於如何比使用乘法和除法指令更高效地實現常數乘法和除法的示例,教材網站上還添加了一個生成常數除法快速指令序列的C程序。新的插圖澄清了乘法定點實數算法,並新增了有關指令週期計數、流水線停頓、執行時間測量、內存映射I/O端口、數據速率和同步的內容。