• Complain

Marc Loy - Smaller C - Lean Code for Small Machines

Here you can read online Marc Loy - Smaller C - Lean Code for Small Machines full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: OReilly Media, Inc., genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Marc Loy Smaller C - Lean Code for Small Machines
  • Book:
    Smaller C - Lean Code for Small Machines
  • Author:
  • Publisher:
    OReilly Media, Inc.
  • Genre:
  • Year:
    2021
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Smaller C - Lean Code for Small Machines: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Smaller C - Lean Code for Small Machines" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Book Description----------------For makers looking to use the smallest micro-controllers 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 micro-controllers. Youll 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, youll 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 thats 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==========About the Author----------------Marc Loy caught the programming bug after learning 6808 assembly to program his schools HERO 1 in the 80s. He developed and delivered training classes on Java, Unix internals, and networking at Sun Microsystems back in the day and has continued training a (much) wider audience ever since. He now spends his days consulting and writing on technical and media topics. He has also caught the maker bug and is exploring the fast-growing world of embedded electronics and wearables.

Marc Loy: author's other books


Who wrote Smaller C - Lean Code for Small Machines? Find out the surname, the name of the author of the book and a list of all author's works by series.

Smaller C - Lean Code for Small Machines — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Smaller C - Lean Code for Small Machines" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Smaller C by Marc Loy Copyright 2021 Marc Loy All rights reserved Printed in - photo 1
Smaller C

by Marc Loy

Copyright 2021 Marc Loy. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Acquisitions Editor: Amanda Quinn
  • Development Editor: Amelia Blevins
  • Production Editor: Daniel Elfanbaum
  • Copyeditor: nSight, Inc.
  • Proofreader: Piper Editorial Consulting, LLC
  • Indexer: nSight, Inc.
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Kate Dullea
  • June 2021: First Edition
Revision History for the First Edition
  • 2021-05-27: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781098100339 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. Smaller C, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

The views expressed in this work are those of the author, and do not represent the publishers views. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-098-10033-9

[LSI]

Preface

In a world where new JavaScript frameworks come and go almost daily, whywould you dive into an aging, bare-bones language like C? Well, for one, if you hope tokeep up with all those framework fads (ouch, opinion alert), you might want a backgroundin just such aging, bare-bones technologies that provide a foundation for so manymodern languages. Did you look up popular programming languages on a site likeTIOBE and find C consistently at the top?Maybe youre interested in the amazinglyadvanced video cards and want to see how the software that drives them works.Or perhaps youre exploring newerand much smallergadgetslike Arduinos and heard that C is the right tool for the job.

No matter the reason, its great to have you here. All of those reasons are valid ones,by the way. C is a foundational language and understanding its syntax and quirks willgive you a very long-lived computer language literacy that will help you pick up newlanguages and styles more easily. C (and its cousin C++) are still widely used whenwriting low-level code for device drivers or operating systems. And the Internet ofThings is breathing new life into microcontrollers with limited resources. C is a greatfit for wringing the most of those tiny environments.

While Ill be focusing on that last idea of writing clean, tight code for tiny,limited machines, Ill still start with the basics of computer programming andcover a variety of rules and patterns that apply to C anywhere you might find it.

How to Use This Book

This book aims to cover all the basics of good C programming for any of thesituations mentioned above. Well look at control structures, operators,functions, and other elements of Cs syntax along with examples of alternatepatterns that can shave a few bytes off the size of your compiled program.Well also be looking at the Arduino environment as a great application forlean C code. To best enjoy the Arduino section, you should have some basic experiencewith building simple circuits and using components like LEDs and resistors.

Heres a preview of the chapters:

A brief look at the history of the C language and steps toset up your development environment.

An introduction to statements in C, including basic I/O,variables, and operators.

Here I cover branching and looping statements and go alittle deeper on variables and their scope.

A quick return to storing data. I show you Cs facilitiesfor manipulating individual bits and storing lots of bigger things in arrays.

Ill look at how to break up your code into manageable chunks.

Getting a little more advanced, I create more complexdata structures and learn how to pass them to, and return them from, functions.

Learn how to find and use popular bits of code that can help youwith common or intricate tasks.

The real fun begins! Well set up the Arduinodevelopment environment and make some LEDs blink.

Try out several electronic peripherals including sensors,buttons, and LCD displays with complete Arduino projects.

Learn some tricks for writing code especially designed tohelp small processors get the most out of their resources.

Build on your C library skills with tips and tricks forwriting friendly, well-documented libraries compatible with the Arduino IDE.

Try a quick Internet of Things project with a few parting thoughtsand some ideas for what to try next as you continue to improve your lean coding skills.

The appendices include a handy collection of links to the hardware and software Iuse, as well as information on downloading and configuring the C and Arduino examplesshown throughout the book.

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic

Indicates new terms, URLs, email addresses, filenames, and file extensions.

Constant width

Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

Constant width bold

Shows commands or other text that should be typed literally by the user.

Constant width italic

Shows text that should be replaced with user-supplied values or by values determined by context.

Tip

This element signifies a tip or suggestion.

Note

This element signifies a general note.

Warning

This element indicates a warning or caution.

Using Code Examples

Many of the code examples in this book are quite succinct, and youll often benefitfrom typing them in by hand. But that isnt always fun and sometimes you want to startwith a known, working copy and modify stuff. You can grab the source for all of the examplesfrom GitHub at has detailed instructionson downloading the code and setting up the files for use with your development environment.

If you have a technical question or a problem using the code examples, please send an email to .

This book is here to help you get your job done. In general, you may use the example code offered with this book in your programs and documentation. You do not need to contact us for permission unless youre reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing examples from OReilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission .

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Smaller C - Lean Code for Small Machines»

Look at similar books to Smaller C - Lean Code for Small Machines. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Smaller C - Lean Code for Small Machines»

Discussion, reviews of the book Smaller C - Lean Code for Small Machines and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.