Risc-V Assembly Language Programming: Unlock the Power of the Risc-V Instruction Set

Smith, Stephen

  • 出版商: Apress
  • 出版日期: 2024-02-09
  • 定價: $1,925
  • 售價: 9.5$1,829
  • 貴賓價: 9.0$1,733
  • 語言: 英文
  • 頁數: 355
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798868801365
  • ISBN-13: 9798868801365
  • 相關分類: RISC-VAssembly
  • 立即出貨 (庫存=1)

商品描述

Gain the skills required to dive into the fundamentals of the RISC-V instruction set architecture. This book explains the basics of code optimization, as well as how to interoperate with C and Python code, thus providing the starting points for your own projects as you develop a working knowledge of assembly language for various RISC-V processors.

The RISC-V processor is the new open-source CPU that is quickly gaining popularity and this book serves as an introduction to assembly language programming for the processor in either 32- or 64-bit mode. You'll see how to write assembly language programs for several single board computers, including the Starfive Visionfive 2 and the Espressif ESP32-C3 32-bit RISC-V microcontroller. The book also covers running RISC-V Linux with the QEMU emulator on and Intel/AMD based PC or laptop and all the tools required to do so.

Moving on, you'll examine the basics of the RISC-V hardware architecture, all the groups of RISC-V assembly language instructions and understand how data is stored in the computer's memory. In addition, you'll learn how to interface to hardware such as GPIO ports. With RISC-V Assembly Language Programming you'll develop enough background to use the official RISC-V reference documentation for your own projects.

What You'll Learn

  • Program basic RISC-V Assembly Language
  • See how data is represented and stored in a RISC-V based computer
  • Make operating system calls from Assembly Language and include other software libraries in projects
  • Interface to various hardware devices
  • Comprehend code containing Assembly Language
  • Reverse engineer and hack code
  • Use the official RISC-V reference documentation

Who This Book Is For

Those who have already learned to program in a higher-level language like Python, Java, C# or even C and now wish to learn Assembly Language programming.

商品描述(中文翻譯)

獲得學習深入瞭解RISC-V指令集架構基礎所需的技能。本書解釋了代碼優化的基礎知識,以及如何與C和Python代碼進行互操作,從而為您自己的項目提供起點,並開發對各種RISC-V處理器的組合語言的實際知識。

RISC-V處理器是新的開源CPU,正在迅速流行,本書作為32位或64位模式下該處理器的組合語言編程入門。您將學習如何為多個單板計算機編寫組合語言程序,包括Starfive Visionfive 2和Espressif ESP32-C3 32位RISC-V微控制器。本書還介紹了在Intel/AMD基於PC或筆記本電腦上使用QEMU模擬器運行RISC-V Linux所需的所有工具。

接下來,您將研究RISC-V硬件架構的基礎知識,所有RISC-V組合語言指令組以及理解數據在計算機內存中的存儲方式。此外,您還將學習如何與GPIO端口等硬件進行接口。通過《RISC-V組合語言編程》,您將獲得足夠的背景知識,以便在自己的項目中使用官方的RISC-V參考文檔。

您將學到什麼:
- 編寫基本的RISC-V組合語言程序
- 瞭解數據在基於RISC-V的計算機中的表示和存儲方式
- 從組合語言中調用操作系統並在項目中包含其他軟件庫
- 與各種硬件設備進行接口
- 理解包含組合語言的代碼
- 逆向工程和破解代碼
- 使用官方的RISC-V參考文檔

本書適合對Python、Java、C#甚至C等高級語言已有一定程度掌握的人,並希望學習組合語言編程的人士。

作者簡介

Stephen Smith is a Software Architect, located in Gibsons, BC, Canada. He's been developing software since high school, or way too many years to record. He is an expert in Artificial Intelligence and Assembly Language programming, earned his Advanced HAM Radio License. Smith also enjoys mountain biking, hiking and nature photography, and volunteers for Sunshine Coast Search and Rescue. He is the author of Raspberry Pi Assembly Language Programming, Programming with 64-Bit ARM Assembly Language, and Mobile Devices and RP2040 Assembly Language Programming, all published by Apress. Also, he writes his popular technology blog, at smist08.wordpress.com.


作者簡介(中文翻譯)

Stephen Smith 是一位位於加拿大不列顛哥倫比亞省吉布森斯的軟體架構師。他從高中開始就一直在開發軟體,已經有太多年無法計算了。他是人工智慧和組合語言編程的專家,並獲得了高級HAM無線電執照。Smith 也喜歡山地自行車、遠足和大自然攝影,並且是 Sunshine Coast Search and Rescue 的志願者。他是 Apress 出版的《Raspberry Pi 組合語言編程》、《64 位元 ARM 組合語言編程》和《行動裝置與 RP2040 組合語言編程》的作者。此外,他還在 smist08.wordpress.com 上撰寫他受歡迎的科技部落格。