Modern C Up and Running: A Programmer's Guide to Finding Fluency and Bypassing the Quirks
暫譯: 現代 C 語言快速上手:程式設計師流暢運用與繞過怪癖的指南
Kalin, Martin
商品描述
Learn how to program in modern C, from the basics through the advanced topics required for proficiency. This book is the fastest path to C fluency for anyone experienced in a general-purpose programming language. From start to finish, code examples highlight the idioms and best practices behind efficient, robust programs in a variety of areas.
The book opens with a thorough coverage of syntax, built-in data types and operations, and program structure. C has quirks and presents challenges, which are covered in detail. The coverage of advanced features is what sets this book apart from others. Among the advanced topics covered are floating-point representation in the IEEE 754 standard; embedded assembly language in C code for overflow detection; regular expressions, assertions, and internationalization; WebAssembly through C; and software libraries for C and other clients.
Memory efficiency and safety are the two major challenges in C programming, and you'll explore these challenges through a series of C examples. Arrays and structures, which are the means to high-level data representation, are covered in connection with pointers, which provide efficiency. The book again uses code examples in covering networking and wire-level security; concurrency (multiprocessing and multithreading); instruction-level parallelism; and interprocess communication through shared memory and files, pipes, message queues, and signals.
Many books introduce C, but few also explain how to use it properly and optimally. Essential C does just that.
What You'll Learn- Accelerate your path to C mastery with this book for experienced programmers
- Refresh your approach to program structure and data types
- Dive into aggregates and pointers using modern C language
- Revisit storage classes and scope
- Dive into concurrency (multiprocessing and multithreading) and instruction-level parallelism
- Finish with regular expressions, assertions, signals, locales and more
Who This Book Is For
Professional programmers or software developers who has prior experience with C or in general wanting an accelerated learning guide to modern C programming language.商品描述(中文翻譯)
學習如何使用現代 C 語言進行程式設計,從基礎到進階主題,讓您能夠熟練掌握。這本書是任何有一般用途程式語言經驗的人通往 C 語言流利的最快途徑。從頭到尾,程式碼範例突顯了在各個領域中高效、穩健程式背後的慣用法和最佳實踐。
本書首先徹底介紹語法、內建資料類型和操作,以及程式結構。C 語言有其特性並且面臨挑戰,這些都會詳細說明。對於進階特性的介紹是本書與其他書籍的不同之處。涵蓋的進階主題包括 IEEE 754 標準中的浮點數表示;用於溢出檢測的 C 語言內嵌組合語言;正則表達式、斷言和國際化;通過 C 語言的 WebAssembly;以及 C 語言和其他客戶端的軟體庫。
記憶體效率和安全性是 C 語言程式設計中的兩大挑戰,您將通過一系列 C 語言範例來探索這些挑戰。陣列和結構是高階資料表示的手段,並與提供效率的指標相關聯。本書再次使用程式碼範例來涵蓋網路和線路級安全性;並行性(多處理和多執行緒);指令級並行性;以及通過共享記憶體和檔案、管道、訊息佇列和信號進行的進程間通信。
許多書籍介紹 C 語言,但很少有書籍能夠正確且最佳地解釋如何使用它。《Essential C》正是這樣一本書。
您將學到的內容:
- 透過這本書加速您對 C 語言的掌握,適合有經驗的程式設計師
- 刷新您對程式結構和資料類型的理解
- 使用現代 C 語言深入了解聚合和指標
- 重新檢視儲存類別和範圍
- 深入探討並行性(多處理和多執行緒)及指令級並行性
- 最後學習正則表達式、斷言、信號、區域設定等
本書適合對象:
專業程式設計師或軟體開發人員,具備 C 語言的先前經驗,或一般希望加速學習現代 C 程式語言的讀者。