EMBEDDED TOOLKIT

SYSTEMS R&D // DEV_TOOLS SUITE

Tools (65)

cdecl pointers qualifiers

SYSTEM ONLINE

C/C++ Syntax (Cdecl)

Translation (Right-Left Rule)

English (cdecl)
In Polish (For Engineer)

📖 Type Qualifiers (Const & Volatile)

In embedded systems, reading definitions with asterisks requires the "Right-Left Rule". You start at the variable name, move right until you hit a parenthesis, then move left, reading pointers and qualifiers.

  • CONST: Protects a variable from modification. Placing const in a specific place determines whether the constant is the value pointed to by the pointer, or the pointer address itself. If you use both, the variable ends up permanently in FLASH memory.
  • VOLATILE: A lifesaver keyword in Embedded. It tells the compiler: "Never optimize reading this variable. Its value can change by hardware (externally) at any microsecond". Essential for mapping STM32 registers and global flags changed in interrupts (ISR).