1. In a computing device, a method comprising: identifying one or more variable-sized signals that can change size during execution of a first graphical model; and automatically generating code representing at least part of the first graphical model such that at least two variable-sized signals having a same size during execution share a size-vector in the generated code.