Bare Metal C (Paperback)

Oualline, Stephen

  • 出版商: No Starch Press
  • 出版日期: 2022-08-02
  • 定價: $1,800
  • 售價: 9.0$1,620
  • 語言: 英文
  • 頁數: 360
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1718501625
  • ISBN-13: 9781718501621
  • 相關分類: ARMC 程式語言嵌入式系統
  • 立即出貨 (庫存 < 4)



Bare Metal C will teach you how to program embedded devices with the C programming language. For embedded system programmers who want precise and complete control over the system they are using, this book pulls back the curtain on what the compiler is doing for you so that you can see all the details of what's happening with your program.
The first part of the book teaches C basics with the aid of a low-cost, widely available bare metal system (the Nucleo Arm evaluation system), which gives you all the tools needed to perform basic embedded programming. As you progress through the book you’ll learn how to integrate serial input/output (I/O) and interrupts into your programs. You’ll also learn what the C compiler and linker do behind the scenes, so that you’ll be better able to write more efficient programs that maximize limited memory. Finally, you’ll learn how to use more complex, memory hungry C features like dynamic memory, file I/O, and floating-point numbers. 

Topic coverage includes:
    The basic program creation process
    Simple GPIO programming (blink an LED)
    Writing serial device drivers
    The C linker and preprocessor
    Decision and control statements
    Numbers, arrays, pointers, strings, and complex data types
    Local variables and procedures
    Dynamic memory
    File and raw I/O
    Floating-point numbers
    Modular programming


《裸機 C》將教導您如何使用 C 程式語言編程嵌入式設備。對於希望對所使用的系統具有精確且完全控制權的嵌入式系統程式設計師來說,本書揭示了編譯器為您執行的所有細節,讓您能夠看到程式中發生的所有細節。

本書的第一部分以低成本且廣泛可用的裸機系統(Nucleo Arm 評估系統)為輔助工具,教授 C 語言基礎知識,讓您能夠進行基本的嵌入式程式設計。隨著學習的進展,您將學習如何將串行輸入/輸出(I/O)和中斷集成到您的程式中。您還將了解 C 編譯器和鏈結器在幕後所做的工作,從而能夠撰寫更高效的程式,最大限度地利用有限的記憶體。最後,您將學習如何使用更複雜、佔用記憶體較多的 C 功能,例如動態記憶體、檔案 I/O 和浮點數。

- 基本程式建立過程
- 簡單的 GPIO 程式設計(閃爍 LED)
- 撰寫串行設備驅動程式
- C 鏈結器和預處理器
- 決策和控制語句
- 數字、陣列、指標、字串和複雜資料類型
- 區域變數和程序
- 動態記憶體
- 檔案和原始 I/O
- 浮點數
- 模組化程式設計


Steve Oualline wrote his first program when he was 11. It was for an
embedded system. He has been programming and designing
methodologies for reliable programming ever since. He has a Master of Science from USC and has written many books for both No Starch Press and O'Reilly.


Steve Oualline在11歲時寫下了他的第一個程式,那是為了一個嵌入式系統。從那時起,他一直從事程式設計和可靠程式設計方法的設計工作。他擁有南加州大學的碩士學位,並為No Starch Press和O'Reilly出版了許多書籍。