Real-Time Workshop Embedded Coder    

Ordering of Generated Storage Declarations

Variables, structs, and other declarations in the generated code are sorted

  1. Alphabetically by storage class
  2. Within storage class, alphabetically by variable name

See the code excerpts in the next section, Sample Code Excerpts for examples of how declarations are sorted.


  Code Generation with Custom Storage Classes Sample Code Excerpts