Dan Saks, Author at Embedded.com - Page 7 of 11

Dan Saks

Dan Saks is president of Saks & Associates, a C/C++ training and consulting company. For more information about Dan Saks, visit his website at www.dansaks.com. Dan also welcomes your feedback: e-mail him at dan@dansaks.com.

Why size_t matters

Using size_t appropriately can improve the portability, efficiency, or readability of your code. Maybe even all three. Numerous functions in the Standard C library accept…

Throw and catch

Exception handling in C++ provides the simplicity of error handling with longjmp, but without the leaks. In large, well-partitioned systems, error-detection code is often decoupled…

Modeling interrupt vectors

Just as you can often treat device registers as a memory-mapped struct, you can treat an interrupt vector as a memory-mapped array. In my last…

Cast with caution

It's almost impossible to write real programs, especially embedded ones, without using a cast here or there. Nonetheless, you should try to use casts as…

More ways to map memory

The most elegant and pleasing notation might not be the most efficient one . This is the third in a series of articles on accessing…