Book description
For makers looking to use the smallest microcontrollers or to wring the highest performance out of larger ones, the C language is still the best option. This practical book provides a solid grounding in C basics for anyone who tinkers with programming microcontrollers. You'll explore the many ways C enables developers and makers to get big results out of tiny devices.
Author Marc Loy shows you how to write clean, maintainable C code from scratch. This language and its cousin, C++, are still widely used to write low-level code for device drivers or operating systems. By understanding C syntax and its quirks, you'll gain an enduring computer language literacy that will help you pick up new languages and styles more easily.
- Learn C fundamentals, such as data types, flow control, and functions
- Explore memory management including how programs work on small devices
- Understand answers provided in online forums such as Reddit or Stack Overflow
- Write efficient, custom C code that's both readable and maintainable
- Analyze the performance of your code and weigh optimizations
- Evaluate third-party libraries for use in your own projects
- Create your own libraries to share with others
Publisher resources
Table of contents
- Preface
- 1. The ABCs of C
- 2. Storing and Stating
- 3. Flow of Control
- 4. Bits and (Many) Bytes
- 5. Functions
- 6. Pointers and References
- 7. Libraries
- 8. Real-World C With Arduino
- 9. Smaller Systems
- 10. Faster Code
- 11. Custom Libraries
- 12. Next Next Steps
- A. Hardware and Software
- B. printf() Format Specifier Details
- Index
Product information
- Title: Smaller C
- Author(s):
- Release date: May 2021
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098100285
You might also like
book
Computer Fundamentals and Programming in C (RMK)
Computer Fundamentals and Programming in C, with its abounding, extensive chapter-end questions and unique pedagogy, is …
book
Intermediate C Programming for the PIC Microcontroller: Simplifying Embedded Programming
Delve into the exciting world of embedded programming with PIC microcontrollers in C. The key to …
book
Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C
Now that you’ve built a few Arduino projects, and reused some pre-written sketches, it’s time to …
book
Intermediate C Programming
This text provides a stepping-stone for intermediate-level students to go from writing short programs to writing …