Loading…
Attending this event?
Monday September 16, 2024 11:00 - 12:00 MDT
Using the volatile keyword correctly is vital when accessing hardware devices in C++. Unfortunately, the volatile keyword is among the most misunderstood aspects of the language. If you don’t use volatile appropriately, you may find the compiler generating code that’s very different from what you intended.

This session will help you write more robust device drivers that avoid common mistakes surrounding volatile. Step by step, it explains:

     
  • Why volatile is necessary

  •  
  • How volatile affects the code that the compiler generates

  •  
  • How you should place volatile in object declarations

  •  
  • Which statements the compiler is and isn’t allowed to reorder around accesses to volatile objects

  •  
  • How to avoid misusing volatile

  •  
  • How to avoid introducing inefficiencies when using volatile objects

Speakers
avatar for Ben Saks

Ben Saks

Chief Engineer, Ben Saks Consulting
Ben Saks is the chief engineer of Saks & Associates, which offers training and consulting in C and C++ and their use in developing embedded systems. Ben has represented Saks & Associates on the ISO C++ Standards committee as well as two of the committee’s study groups: SG14 (low-latency... Read More →
Monday September 16, 2024 11:00 - 12:00 MDT
Cottonwood 2/3
Log in to leave feedback.

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Share Modal

Share this link via

Or copy link