Dan Saks, Author at Embedded.com - Page 8 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.

Mapping memory efficiently

How you define pointers to memory-mapped device registers can have an impact on the efficiency of your device drivers. Many processors use memory-mapped I/O ,…

Mapping memory

Memory-mapped I/O is something youcan do reasonably well in standard C and C++. Device drivers communicate with peripheral devices through device registers. A driver sends…

Getting it just right

Sometimes the only way to catch your coding mistakes is by thoughtful critique from others. In my last column (“How to Enforce Write-Only Access,” May…

More about C++ classes

Click here for reader response to this article Class constructors guarantee object initialization. Const member functions protect objects from spurious changes. An abstract type is…

C++ classes as abstractions

C++ classes use the keywords public and private to preserve the integrity of abstractions more effectively than anything you can do with structs in C….

Abstract types using C

Classes are the most useful feature that C++ offers over C. This month Dan shows you why this is so and how to approximate classes…