A critical tool when developing an embedded system in C is an understanding of how pointers work. Misunderstanding pointer fundamentals can result in long hours spent debugging a system or a hidden ...
Pointers — you either love them, or you haven’t fully understood them yet. But before you storm off to the comment section now, pointers are indeed a polarizing subject and are both C’s biggest ...
Delegates are type safe function pointers *with an optional this pointer* thus no need to pass one round yourself. Obviously their utility is much enhanced in contract to C++ by virtue of being part ...
So after a long painful journey tonight of trying to serialize a function pointer, I began to wonder. After seeing the code with a bunch of reinterpret_cast<>() calls, I got to wondering -- how does ...
As someone who has spent over two decades in the embedded systems industry, I’ve seen the vast evolution of technology—from 8-bit microcontrollers to today’s sophisticated, multicore systems. Yet, one ...
From our study of C++, it should be clear that, unlike class encapsulation and single inheritance, which were essentially free in C, polymorphism in C involves some complexity and overhead. In the ...
Embedded programming is a tricky task that looks straightforward to the uninitiated, but those with a few decades of experience know differently. Getting what you want to work predictably or even fit ...