The set_directive_disaggregate command lets you deconstruct a struct variable into its individual elements. The number and type of elements created are determined by the contents of the struct itself.

IMPORTANT: Structs used as arguments to the top-level function are aggregated by default, and can not be disaggregated. To disaggregate a struct on the interface, you must manually code it as separate elements.


set_directive_disaggregate <location> <variable>
  • <location> is the location (in the format function[/label]) where the variable to disaggregate is found.
  • <variable> specifies the struct variable name.


This command has no options.


The following example shows the struct variable a in function foo_top will be disaggregated:

set_directive_disaggregate foo_top a

See Also