
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Practical Statecharts in C/C++: Quantum Programming for Embedded Systems with CDROM
- ISBN-101578201101
- ISBN-13978-1578201105
- PublisherCRC Press
- Publication dateJuly 1, 2002
- LanguageEnglish
- Dimensions7.25 x 1 x 9 inches
- Print length389 pages
There is a newer edition of this item:
Frequently purchased items with fast delivery
- C++ in Embedded Systems: A practical transition from C to modern C++Paperback55% offLimited time dealFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Friday, Aug 8
- C++ for Beginners: An Introduction to C++ Programming and Object Oriented Programming with Tutorials and Hands-On Examples (Programming for Beginners)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Friday, Aug 8
- Writing a C Compiler: Build a Real Programming Language from ScratchPaperbackFREE Shipping by AmazonGet it as soon as Friday, Aug 8
- The C# Programming Yellow Book: Learn to program in C# from first principlesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Friday, Aug 8
- Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded ProgrammingPaperbackFREE Shipping by AmazonGet it as soon as Friday, Aug 8
- Create GUI Applications with Python & Qt6 (PyQt6 Edition): The hands-on guide to making apps with PythonPaperbackFREE Shipping by AmazonGet it as soon as Friday, Aug 8
Editorial Reviews
Review
Beyond simply talking about concepts, Miro provides complete source code and code walkthroughs. -- Brian Schmidt, Sr. Design Engineer, Plexus Technology Group
About the Author
Product details
- Publisher : CRC Press
- Publication date : July 1, 2002
- Language : English
- Print length : 389 pages
- ISBN-10 : 1578201101
- ISBN-13 : 978-1578201105
- Item Weight : 1.85 pounds
- Dimensions : 7.25 x 1 x 9 inches
- Best Sellers Rank: #4,340,614 in Books (See Top 100 in Books)
- #517 in C Programming Language
- #530 in Computer Hardware Embedded Systems
- #912 in C++ Programming Language
- Customer Reviews:
About the author

Dr. Miro M. Samek is the creator of the open source QP real-time embedded frameworks and the freeware QM graphical model-based design tool. He is also the founder of Quantum Leaps (state-machine.com) -- the market leading provider of modern embedded software based on active objects and hierarchical state machines as well as tools for visual modeling, automatic code generation, unit testing and prototyping of deeply embedded software.
Miro teaches the popular "Modern Embedded Systems Programming" video course on YouTube (see https://www.youtube.com/c/StateMachineCOM )
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book's concept useful, with one mentioning it works well for regular applications. The state machine implementation receives positive feedback, with one customer highlighting how it demonstrates the power of state machines.
AI Generated from the text of customer reviews
Select to learn more
Customers find the book's concept useful, with one mentioning it works wonders for regular applications.
"...The concept is unique and quite interesting. However, it is useless as far as embedded system implementation...." Read more
"...State Machines, if implemented right, can work wonders for regular apps...." Read more
"...I think that this book is really useful and very interesting for each interesting in C++/C. And want write programs with HSM behind as behavior..." Read more
"Great tech..." Read more
Customers appreciate the state machine implementation in the book, with one customer highlighting its usefulness and another noting how it demonstrates the power of state machines.
"Well done. This book shows you the power of state machines. He takes the reader way beyond if/else and switch statements...." Read more
"...the Windows Workflow Foundation to be an excellent example of practical implementation of State Machines; it does have its limitations though and is..." Read more
"...State machines are useful and have a place, but there is no need for a whole book on the subject." Read more
"Looks like an excellent method for formalizing and standardizing state machines. This enables highly reactive systems with minimal OS requirements." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on November 22, 2006Since I saw quite a few excellent reviews on Amazon as well as on some other websites, I decided to purchase the book hoping it would give me some fresh new ideas in implementing FSM for real-time embedded system. I was quite disappointed when I received the book and had a chance to read it. Here are my own personal comments:
- The text is too verbose and quite disorganized. Reading this I had the feeling of listening to someone rambling on and on.
- The concept is unique and quite interesting. However, it is useless as far as embedded system implementation. Think of how you are going to debug this in a real-time environment. It would be a nightmare!
- Lots of the detailed codings are encapsulated by the house-keeping codes. This is a definitely NO-NO for embedded system application if one must know every single line of executable code. (You have to know if you want to do size and speed optimization.)
- It would be a nightmare to maintain an application written using this concept. It is just not consistent with the natural flow of thinking. Don't forget that the human element can never be detached from any application.
- Debugging the state machine written using this concept is extremely difficult. (Believe me! I tried.) The concept of simply returning to the parent state if no special handling is required can be very very misleading during real-time debugging.
Simply put, if you want to read some new interesting idea, this book is for you. But if you are looking for practical idea to apply to your SW development project, I suggest you look elsewhere. The 5-star rating is very very misleading. If you are still curious, you might want to check it out first at your local Barnes&Nobles or Border before buying.
(In case anyone wonders about my background, I've been doing software development & architecture since 1988.)
- Reviewed in the United States on March 2, 2013Well done.
This book shows you the power of state machines.
He takes the reader way beyond if/else and switch statements.
This book clearly shows how to map the problem space onto the solution space using statemachines
It also promotes reuse instead of ahoc statemachine design.
Via the state function pointers, and state objects and class inheritance a web of if/else are reduced and often elimated. My one reservation is usage of C++ macros may be a bit much cumbersome at times
One ofther quites sweet result is it show you how to make self describing code which is easily related to
high level state diagrams
Quite revoltionary.
If your thinking of employing a statemahine
I whole heartedly recommend this book.
- Reviewed in the United States on June 27, 2008I bought this book after reading some reviews which hinted that this book would be helpful for software developers of all systems and not just embedded ones. I have to admit I have almost no practical experience with C++, but I have substantial insights into OOD.
I think this book is singularly targeted towards embedded developers, especially the ones who are into the crux of critical systems. I'm into regular OOD for PC/Web applications, and except for the first 2-3 chapters, I thought the book was impractical in today's age of environments such as .NET and high-performance hardware. This is a highly theoretical book which demands a massive change and learning curve for traditional developers.
This, however, does not undermine State Machines. State Machines, if implemented right, can work wonders for regular apps. I found the Windows Workflow Foundation to be an excellent example of practical implementation of State Machines; it does have its limitations though and is meant for high-level processes. I am probably just going to stick to State Tables and such for a simplistic model with easy debugging capabilities.
I found the UML 2 for Dummies much more practical.
- Reviewed in the United States on January 18, 2013Completely derivative one trick approach to different problems. State machines are useful and have a place, but there is no need for a whole book on the subject.
- Reviewed in the United States on December 12, 2012Looks like an excellent method for formalizing and standardizing state machines. This enables highly reactive systems with minimal OS requirements.
Top reviews from other countries
-
isisReviewed in Japan on May 24, 2003
5.0 out of 5 stars 素晴らしい!ステート指向プログラミングの世界
UMLの静的な構造からJavaのクラスを自動生成できます、そんな売り文句に飽きた人。この本は新しい世界を切り開いています。それは、動的な振る舞いをあらわすステートチャート図を使い、そこからストレートに実装(プログラミング)にマッピングしようという試みです。ステートチャートに基づいてステートマシンを実装することは、決して新しいことはありませんが、効率よく、かつ、ステートをストレートにプログラミング上表現できるという点で、まったく画期的なものになっています。タイトルには組み込みシステム向けとありますが、イベント指向なフレームワークなどを作られているかたにも役に立つ内容です。